Skip to main content

google products plugin

5 years 6 months ago #332098 by gennie007
-- 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.

5 years 6 months ago #332104 by nicolas
Replied by nicolas on topic google products plugin
Hi,

There is no option for that.
What you can do is to add such code:
Code:
if($catId->category_id == XX) unset($products[$k]);
before the code:
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.

5 years 6 months ago #332140 by gennie007
Replied by gennie007 on topic google products plugin
Thank you,

i will try that.

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

4 years 7 months ago #340908 by andreahill
Replied by andreahill on topic google products plugin
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.

4 years 7 months ago #340909 by nicolas
Replied by nicolas on topic google products plugin
Hi,

Yes it can.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum