Shipping method not found after upgrade

  • Posts: 2
  • Thank you received: 0
10 years 1 month ago #198320

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.3.10

We recently upgraded this site to HikaShop 2.4.0. Before then everything had been working fine, but now when you try to checkout you get the message "Shipping method not found". There is only one shipping method and it is enabled, and it makes no difference if the selection is set to choose it automatically or not. We have been unable to see why it is not working.

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

  • Posts: 26232
  • Thank you received: 4035
  • MODERATOR
10 years 1 month ago #198326

Hi,

Would it be possible to have more details about your shipping method configuration ?
A screenshot of his configuration could be useful as a screenshot of your HikaShop configuration for the "shipping" section.

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.

  • Posts: 2
  • Thank you received: 0
10 years 1 month ago #198488

The system was using the Australia Post shipping plugin but we have found that the issue does not lie within it, but appears to be a twofold issue. The first was that it now requires dimensions, when none were needed before. Adding dummy dimensions brought up the shipping option. However, a second problem was that it was then adding weights and lengths multiple times, which we eventually found was due to product variants, in which the system is adding the weight (and length) of the product again for each variant found. It looks like this commenced in version 2.3.5 and has not been addressed in 2.4.0. It also seems to now require dimensions, even though before these were not required. We have had to put in dummy dimensions for each product, and have had to put in a very small weight for the main product (it would not accept a zero weight) and then add the correct weight to the variant. This seems to be a rather foolish way of doing things (especially since the variants are mainly colours and do not change the weight!). Once we have set dummy dimensions and set the weight in each variant (quite a job for hundreds of products) then the system would calculate freight correctly.

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

  • Posts: 26232
  • Thank you received: 4035
  • MODERATOR
10 years 1 month ago #198519

Hi,

Please edit the file "administrator/components/com_hikashop/helpers/helper.php" and replace the contents

		$ret = array('w' => 0, 'x' => 0, 'y' => 0, 'z' => 0);
		if(empty($order->products))
			return $ret;
By
		$ret = array();
		if(empty($order->products))
			return array('w' => 0, 'x' => 0, 'y' => 0, 'z' => 0);
And also the content:
			$qty = 1;
			if(!empty($product->cart_product_quantity))
				$qty = (int)$product->cart_product_quantity;
			if(!empty($product->order_product_quantity))
				$qty = (int)$product->order_product_quantity;
By
			$qty = 1;
			if(isset($product->cart_product_quantity))
				$qty = (int)$product->cart_product_quantity;
			if(isset($product->order_product_quantity))
				$qty = (int)$product->order_product_quantity;

			if($qty == 0)
				continue;

You can also replace
			} else {
				if(empty($this->weightHelper))
					$this->weightHelper = hikashop_get('helper.weight');
				$weight += ((float)$this->weightHelper->convert($product->product_weight, $product->product_weight_unit, $weight_unit));
			}
By
			} else {
				if(empty($this->weightHelper))
					$this->weightHelper = hikashop_get('helper.weight');
				$weight += ((float)$this->weightHelper->convert($product->product_weight, $product->product_weight_unit, $weight_unit));
			}

			if($weight == 0)
				continue;
to exclude virtual products.

It should, I thing, fix your issue.

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.

Time to create page: 0.046 seconds
Powered by Kunena Forum