google products plugin

  • Posts: 16
  • Thank you received: 2
2 years 11 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: 81361
  • Thank you received: 13035
  • MODERATOR
2 years 10 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
2 years 10 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
1 year 11 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: 81361
  • Thank you received: 13035
  • MODERATOR
1 year 11 months ago #340909

Hi,

Yes it can.

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

Time to create page: 0.073 seconds
Powered by Kunena Forum