- Posts: 377
- Thank you received: 7
vendor calculation on multiple quanities
12 years 1 month ago #166495
by Dibben
vendor calculation on multiple quanities was created 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
-- 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 1 month ago #166498
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Replied by Jerome on topic vendor calculation on multiple quanities
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
By
Regards,
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);
}
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);
}
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
Moderators: Obsidev
Time to create page: 0.166 seconds