Google Products plugin exports wrong prices

  • Posts: 1
  • Thank you received: 0
9 years 1 month ago #217908

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 1 month ago #217948

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:

$price = round($product->prices[0]->$price_name, 2)*$product->product_min_per_order;
to:
$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.059 seconds
Powered by Kunena Forum