- Posts: 1
- Thank you received: 0
Google Products plugin exports wrong prices
10 years 11 months ago #217908
by paddor
Google Products plugin exports wrong prices was created 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
-- 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.
10 years 11 months ago #217948
by nicolas
Replied by nicolas on topic Google Products plugin exports wrong prices
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:
to:
in the file plugins/hikashop/google_products/google_products.php
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;
Code:
$price = round($product->prices[0]->$price_name, 2);
Please Log in or Create an account to join the conversation.
Time to create page: 0.139 seconds