- Posts: 235
- Thank you received: 4
Select / exclude products for Google Shopping
- janvankuijk
-
Topic Author
- Offline
Less
More
11 years 6 months ago #196356
by janvankuijk
Select / exclude products for Google Shopping was created by janvankuijk
-- 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
-- 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 or Create an account to join the conversation.
11 years 6 months ago #196382
by Xavier
Replied by Xavier on topic Select / exclude products for Google Shopping
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:
Just before:
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.
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->quote('hide');
Code:
$db->setQuery($query);
$products = $db->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
Please Log in or Create an account to join the conversation.
- janvankuijk
-
Topic Author
- Offline
Less
More
- Posts: 235
- Thank you received: 4
11 years 5 months ago #196758
by janvankuijk
Replied by janvankuijk on topic Select / exclude products for Google Shopping
Will this be part of the standard Hikashop?
Would be great!
Jan
Would be great!
Jan
Please Log in or Create an account to join the conversation.
11 years 5 months ago #196768
by Xavier
Replied by Xavier on topic Select / exclude products for Google Shopping
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
), 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.
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
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 or Create an account to join the conversation.
- janvankuijk
-
Topic Author
- Offline
Less
More
- Posts: 235
- Thank you received: 4
11 years 5 months ago #196916
by janvankuijk
Replied by janvankuijk on topic Select / exclude products for Google Shopping
OK. Thanks!
Somebody has to be the first!
For now I will use the extra code.
Jan
Somebody has to be the first!
For now I will use the extra code.
Jan
Please Log in or Create an account to join the conversation.
Time to create page: 0.200 seconds