Google products xml

  • Posts: 1
  • Thank you received: 0
  • Hikashop Essential
1 year 3 months ago #354578

-- 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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 3 months ago #354581

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:

				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.054 seconds
Powered by Kunena Forum