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

#   Google products plugin

##

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

Less More

- Posts: 75
- Thank you received: 4
-
-

2 years 8 months ago [\#360158](#360158) by [Petike1007](/forum/user/12229-petike1007 "View Petike1007's Profile")  *[Google products plugin](/forum/37-import-export-csv-xls/908001-google-products-plugin#360158 "-- HikaShop version -- : 5.0.3 -- Joomla version -- : 4.4.3 -- PHP version -- : 8.1  Is there any way to make an additional restriction on the google products plugin based on a custom field value (true-false checkbox)? There are some products which is not permitted to be in an advert (medicines) but no exact category for them so i cannot use the category filter.  Even a shipping methot would be a good filter as there products are not available with home delivery so I could filter all the product with home delivery and would be fine.  Thanks")* was created by *[Petike1007](/forum/user/12229-petike1007 "View Petike1007's Profile")*

-- HikaShop version -- : 5.0.3
-- Joomla version -- : 4.4.3
-- PHP version -- : 8.1

Is there any way to make an additional restriction on the google products plugin based on a custom field value (true-false checkbox)?
There are some products which is not permitted to be in an advert (medicines) but no exact category for them so i cannot use the category filter.

Even a shipping methot would be a good filter as there products are not available with home delivery so I could filter all the product with home delivery and would be fine.

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy85MDgwMDEtZ29vZ2xlLXByb2R1Y3RzLXBsdWdpbj90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

2 years 8 months ago [\#360162](#360162) 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/37-import-export-csv-xls/908001-google-products-plugin#360162 "-- HikaShop version -- : 5.0.3 -- Joomla version -- : 4.4.3 -- PHP version -- : 8.1  Is there any way to make an additional restriction on the google products plugin based on a custom field value (true-false checkbox)? There are some products which is not permitted to be in an advert (medicines) but no exact category for them so i cannot use the category filter.  Even a shipping methot would be a good filter as there products are not available with home delivery so I could filter all the product with home delivery and would be fine.  Thanks")*

Hi,

While there is no option for that, you could add a line like this:
if(!empty($product-&gt;skip_google_products)) continue;
after the line:
foreach($products as $product) {
in the file plugins/hikashop/google_products/google_products.php

Then, create a custom field of the table "product" and of the type "checkbox" with one value and with the column name "skip_google_products" so that when the checkbox of that custom filed is checked in the product, the product will be skipped by the Google products plugin.
Note however that this modification will be lost when you update HikaShop. So you'll have to reapply it after updates.

We'll look at doing something for this in a future release.

The following user(s) said Thank You: [Ketshweb](/forum/user/81078-ketshweb "View Ketshweb's Profile")

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

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

Less More

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

2 years 8 months ago [\#360168](#360168) by [Ketshweb](/forum/user/81078-ketshweb "View Ketshweb's Profile")  Replied by *[Ketshweb](/forum/user/81078-ketshweb "View Ketshweb's Profile")* on topic *[Google products plugin](/forum/37-import-export-csv-xls/908001-google-products-plugin#360168 "-- HikaShop version -- : 5.0.3 -- Joomla version -- : 4.4.3 -- PHP version -- : 8.1  Is there any way to make an additional restriction on the google products plugin based on a custom field value (true-false checkbox)? There are some products which is not permitted to be in an advert (medicines) but no exact category for them so i cannot use the category filter.  Even a shipping methot would be a good filter as there products are not available with home delivery so I could filter all the product with home delivery and would be fine.  Thanks")*

Works great.
Would be a great feature in the future
Thanks

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

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

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