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

#   Select / exclude products for Google Shopping

##

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

Less More

- Posts: 235
- Thank you received: 4
-
-

11 years 8 months ago [\#196356](#196356) by [janvankuijk](/forum/user/6080-janvankuijk "View janvankuijk's Profile")  *[Select / exclude products for Google Shopping](/forum/30-integrations/875992-select-exclude-products-for-google-shopping#196356 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : all -- PHP version -- : all -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : Google Shopping  Is it possible to select or exclude products for the Google Shopping xml-file creation?  I don't want all the products to advertize on Google.  Jan")* was created by *[janvankuijk](/forum/user/6080-janvankuijk "View janvankuijk's Profile")*

-- HikaShop version -- : 3.4.0
-- Joomla version -- : all
-- PHP version -- : all
-- Browser(s) name and version -- : all
-- Error-message(debug-mod must be tuned on) -- : Google Shopping

Is it possible to select or exclude products for the Google Shopping xml-file creation?

I don't want all the products to advertize on Google.

Jan

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 8 months ago [\#196382](#196382) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Select / exclude products for Google Shopping](/forum/30-integrations/875992-select-exclude-products-for-google-shopping#196382 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : all -- PHP version -- : all -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : Google Shopping  Is it possible to select or exclude products for the Google Shopping xml-file creation?  I don't want all the products to advertize on Google.  Jan")*

Hi,

I think that this will require a small edition in the plugin "plugins/hikashop/google_products/google_products.php" function "generateXML()", here you can add: Code:

$query .= ' AND google_product != '.$db-&gt;quote('hide');

Just before: Code:

$db-&gt;setQuery($query); $products = $db-&gt;loadObjectList();

And create a custom product field named google_product, then in the product edition page of the products which ust not appear in google shopping set the value "hide" for the google_product field.

The following user(s) said Thank You: [janvankuijk](/forum/user/6080-janvankuijk "View janvankuijk's Profile")

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

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

Less More

- Posts: 235
- Thank you received: 4
-
-

11 years 7 months ago [\#196758](#196758) by [janvankuijk](/forum/user/6080-janvankuijk "View janvankuijk's Profile")  Replied by *[janvankuijk](/forum/user/6080-janvankuijk "View janvankuijk's Profile")* on topic *[Select / exclude products for Google Shopping](/forum/30-integrations/875992-select-exclude-products-for-google-shopping#196758 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : all -- PHP version -- : all -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : Google Shopping  Is it possible to select or exclude products for the Google Shopping xml-file creation?  I don't want all the products to advertize on Google.  Jan")*

Will this be part of the standard Hikashop?

Would be great!

Jan

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 7 months ago [\#196768](#196768) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Select / exclude products for Google Shopping](/forum/30-integrations/875992-select-exclude-products-for-google-shopping#196768 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : all -- PHP version -- : all -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : Google Shopping  Is it possible to select or exclude products for the Google Shopping xml-file creation?  I don't want all the products to advertize on Google.  Jan")*

Hi,

We will discuss about it, but using the custom fields and this simple edition seems to be the best way for now.
Because we can't really add a column in the product table by default in HikaShop for that feature as it is not frequently asked (as I know you are the only one for now ![;)](/media/kunena/emoticons/24.png ";)") ), and if I add the code for the check in the plugin directly, I will have to do a request to check if the column exist or not, so it will add a query for everybody even if a small percent use this feature.

At this time, it don't seem to be a good thing to add it directly in HikaShop, it is better to do this little modification.

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

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

Less More

- Posts: 235
- Thank you received: 4
-
-

11 years 7 months ago [\#196916](#196916) by [janvankuijk](/forum/user/6080-janvankuijk "View janvankuijk's Profile")  Replied by *[janvankuijk](/forum/user/6080-janvankuijk "View janvankuijk's Profile")* on topic *[Select / exclude products for Google Shopping](/forum/30-integrations/875992-select-exclude-products-for-google-shopping#196916 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : all -- PHP version -- : all -- Browser(s) name and version -- : all -- Error-message(debug-mod must be tuned on) -- : Google Shopping  Is it possible to select or exclude products for the Google Shopping xml-file creation?  I don't want all the products to advertize on Google.  Jan")*

OK. Thanks!

Somebody has to be the first!
For now I will use the extra code.

Jan

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84NzU5OTItc2VsZWN0LWV4Y2x1ZGUtcHJvZHVjdHMtZm9yLWdvb2dsZS1zaG9wcGluZz90bXBsPW1hcmtkb3du) 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.058 seconds

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