[Skip to main content](#vessel-content)

#   google products plugin

##

- **[gennie007](/forum/user/56109-gennie007 "View gennie007's Profile")**
- [![gennie007's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/56109-gennie007 "View gennie007's Profile") Topic Author
- [ Offline](/forum/user/56109-gennie007)

Less More

- Posts: 16
- Thank you received: 2
-
-

5 years 6 months ago [\#332098](#332098) by [gennie007](/forum/user/56109-gennie007 "View gennie007's Profile")  *[google products plugin](/forum/30-integrations/902468-google-products-plugin#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.")* was created by *[gennie007](/forum/user/56109-gennie007 "View gennie007's Profile")*

-- url of the page with the problem -- : [ upthehighstreet.uk](https://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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDI0NjgtZ29vZ2xlLXByb2R1Y3RzLXBsdWdpbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86564
- Thank you received: 14311
-
-

5 years 6 months ago [\#332104](#332104) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[google products plugin](/forum/30-integrations/902468-google-products-plugin#332104 "-- 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.")*

Hi,

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

if($catId-&gt;category_id == XX) unset($products[$k]);

before the code: Code:

$products[$k]-&gt;categories_id[] = $catId-&gt;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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDI0NjgtZ29vZ2xlLXByb2R1Y3RzLXBsdWdpbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[gennie007](/forum/user/56109-gennie007 "View gennie007's Profile")**
- [![gennie007's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/56109-gennie007 "View gennie007's Profile") Topic Author
- [ Offline](/forum/user/56109-gennie007)

Less More

- Posts: 16
- Thank you received: 2
-
-

5 years 6 months ago [\#332140](#332140) by [gennie007](/forum/user/56109-gennie007 "View gennie007's Profile")  Replied by *[gennie007](/forum/user/56109-gennie007 "View gennie007's Profile")* on topic *[google products plugin](/forum/30-integrations/902468-google-products-plugin#332140 "-- 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.")*

Thank you,

i will try that.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDI0NjgtZ29vZ2xlLXByb2R1Y3RzLXBsdWdpbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[andreahill](/forum/user/5849-andreahill "View andreahill's Profile")**
- [![andreahill's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5849-andreahill "View andreahill's Profile")
- [ Offline](/forum/user/5849-andreahill)

Less More

- Posts: 20
- Thank you received: 1
-
-

4 years 7 months ago [\#340908](#340908) by [andreahill](/forum/user/5849-andreahill "View andreahill's Profile")  Replied by *[andreahill](/forum/user/5849-andreahill "View andreahill's Profile")* on topic *[google products plugin](/forum/30-integrations/902468-google-products-plugin#340908 "-- 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.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDI0NjgtZ29vZ2xlLXByb2R1Y3RzLXBsdWdpbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86564
- Thank you received: 14311
-
-

4 years 7 months ago [\#340909](#340909) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[google products plugin](/forum/30-integrations/902468-google-products-plugin#340909 "-- 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.")*

Hi,

Yes it can.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDI0NjgtZ29vZ2xlLXByb2R1Y3RzLXBsdWdpbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.056 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
