- Posts: 16
- Thank you received: 2
google products plugin
5 years 6 months ago #332098
by gennie007
google products plugin was created 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.
-- 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:
before the code:
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.
There is no option for that.
What you can do is to add such code:
Code:
if($catId->category_id == XX) unset($products[$k]);
Code:
$products[$k]->categories_id[] = $catId->category_id;
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.
i will try that.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 20
- Thank you received: 1
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
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.
Yes it can.
Please Log in or Create an account to join the conversation.
Time to create page: 0.060 seconds