google products plugin

  • Posts: 16
  • Thank you received: 2
3 years 6 months ago #332098

-- url of the page with the problem -- : upthehighstreet.uk
-- HikaShop version -- : 4.4.2
-- Joomla version -- : 3.9.26
-- PHP version -- : 7.3.27
-- Browser(s) name and version -- : firefox

Hi
i use the google products plugin for facebook shop integration. Because i have alcohol on my website. facebook doesn't allow for the sale or advertising of alcohol. How can i exclude this category bering added to the xml file produced by the plugin.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 6 months ago #332104

Hi,

There is no option for that.
What you can do is to add such code:

if($catId->category_id == XX) unset($products[$k]);
before the code:
$products[$k]->categories_id[] = $catId->category_id;
in the file plugins/hikashop/google_products.php
This should exclude the products directly linked to the category with the id XX to be added to the XML.

Please Log in or Create an account to join the conversation.

  • Posts: 16
  • Thank you received: 2
3 years 6 months ago #332140

Thank you,

i will try that.

Please Log in or Create an account to join the conversation.

  • Posts: 20
  • Thank you received: 1
  • Hikashop Multisite
2 years 7 months ago #340908

Hi, sorry for the necro. Can the XML generated by the Google Products plugin be directly imported on a Facebook shop without modifications? I can't test this right now.

Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 7 months ago #340909

Hi,

Yes it can.

Please Log in or Create an account to join the conversation.

Time to create page: 0.065 seconds
Powered by Kunena Forum