Skip to main content

vendor calculation on multiple quanities

12 years 3 months ago #166495 by Dibben
-- HikaShop version -- : 2.3.2
-- HikaMarket version -- : 1.4.1
-- Joomla version -- : 3.3.0
-- PHP version -- : 5.4
-- Error-message(debug-mod must be tuned on) -- : wrong amount on vendor calc

Hi Jerome,

Me again, for some reason HikaMarket is not calculating the price for the vendor in the back end when there are more than one product purchased It only sets the vendor amount to the price of one product minus commission and ignores the second. I know you have just released a new hika market which i need to buy to upgrade so it may be a known bug? Please see attached.

Kind regards

Alex

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

12 years 3 months ago #166498 by Jerome
Hi,

The bug is already fixed in HikaMarket 1.4.2.
You can edit the file "administrator/components/com_hikamarket/classes/order.php" and replace
Code:
$ret = 0.0; foreach($order_products as $order_product) { $ret += (float)hikamarket::toFloat($order_product->order_product_vendor_price); }
By
Code:
$ret = 0.0; foreach($order_products as $order_product) { $ret += (int)$order_product->order_product_quantity * (float)hikamarket::toFloat($order_product->order_product_vendor_price); }
Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

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

Moderators: Obsidev
Time to create page: 0.045 seconds
Powered by Kunena Forum