Skip to main content

Google products xml

More
3 years 1 month ago #354578 by DentalSpace
-- HikaShop version -- : 4.7.5
-- Joomla version -- : 4.3.3
-- PHP version -- : 8.1.20

Is it possible to hide "QantitY" column from the XML output by hikashop Google products plugin?

Please Log in or Create an account to join the conversation.

More
3 years 1 month ago #354581 by nicolas
Replied by nicolas on topic Google products xml
Hi,

If you set the quantity to unlimited in your products, the quantity will be removed in the XML file automatically.

Now, if you want to provide no quantity in the XML file while still having a quantity in HikaShop, you could either:
- if you run the plugin manually to retrieve the XML file before uploading it you Google, you could open the XML with notepad++ and run a search and replace regex to remove the tag for all the products.
- if you run the plugin automatically with a cron, you'll have to remove the code:
Code:
if($product->product_quantity != -1){ $xml .= "\t".'<g:quantity>'.$product->product_quantity.'</g:quantity>'."\n"; }
in the file plugins/hikashop/google_products/google_products.php
Note however that the modification will be reverted after each update of HikaShop, so you'll have to reapply it.

Please Log in or Create an account to join the conversation.

Time to create page: 0.127 seconds
Powered by Kunena Forum