Skip to main content

Google Products plugin exports wrong prices

More
10 years 11 months ago #217908 by paddor
-- HikaShop version -- : 2.6.0
-- Joomla version -- : 2.5.28
-- PHP version -- : 5.3
-- Browser(s) name and version -- : Chrome

Google Products export doesn't contain correct values for price per unit. We have a minimum order quantity of 500, and the plugin unfortunately exports the calculated price for 500 pieces. We want to submit the unit price to Google Products. If I select unit price in the plugin options however, it sends 0$ as we have not maintained a retail price (and don't want to do so as this should not been shown to the customers).

Philippe

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

More
10 years 11 months ago #217948 by nicolas
Hi,

It's works like that on purpose. Since you don't see the product by units but as a pack of 500, you're supposed to give the total price of the pack.
If you want to change that, you'll have to change the line:
Code:
$price = round($product->prices[0]->$price_name, 2)*$product->product_min_per_order;
to:
Code:
$price = round($product->prices[0]->$price_name, 2);
in the file plugins/hikashop/google_products/google_products.php

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

Time to create page: 0.139 seconds
Powered by Kunena Forum