2 vendors Shipping in checkout is broken

  • Posts: 57
  • Thank you received: 1
9 years 10 months ago #184550

-- HikaShop version -- : 2.3.5
-- HikaMarket version -- : 1.5.1
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.5.14-1

hi
after update hikashop to 2.3.5
2 vendors in checkout Shipping is broken see/test on your demo pages
Shipping is only under 1 vendor and whatever you choose in shipping
you get please select shipping method

Sorry wrong category - this is bug

Last edit: 9 years 10 months ago by 888.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 10 months ago #184568

Hi,

I made some tests and I found the issue in HikaShop.
Please edit the file : "administrator/components/com_hikashop/classes/shipping.php" and replace

	$order->shipping_warehouse_id = $key;
	$dispatcher->trigger('onShippingDisplay', array(&$order, &$rates_copy, &$group_usable_methods, &$errors));
	unset($order->shipping_warehouse_id);

	foreach($group_usable_methods as $method) {
		$group->shippings[] = $method->shipping_id;
		$method->shipping_warehouse_id = $key;
		$usable_methods[] = $method;
	}
By
	$order->shipping_warehouse_id = $key;
	$dispatcher->trigger('onShippingDisplay', array(&$order, &$rates_copy, &$group_usable_methods, &$errors));
	unset($order->shipping_warehouse_id);

	foreach($group_usable_methods as $method) {
		if(isset($method->shipping_warehouse_id) && $method->shipping_warehouse_id != $key)
			$method = clone($method);
		$group->shippings[] = $method->shipping_id;
		$method->shipping_warehouse_id = $key;
		$usable_methods[] = $method;
	}
I'll fix the issue.
I've also submit the fix to the HikaShop team ; they should update the package soon.

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