vendor calculation on multiple quanities

  • Posts: 377
  • Thank you received: 7
10 years 3 months ago #166495

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

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 3 months ago #166498

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

		$ret = 0.0;
		foreach($order_products as $order_product) {
			$ret += (float)hikamarket::toFloat($order_product->order_product_vendor_price);
		}
By
		$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.

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.060 seconds
Powered by Kunena Forum