Missing Width Message in Checkout

  • Posts: 20
  • Thank you received: 1
9 years 4 months ago #208874

-- HikaShop version -- : 2.50
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.6.10
-- Browser(s) name and version -- : Firfox 39.0

After upgrading to Hikashop 2.5.0 I get a warning message at the checkout after the product has been selected and the user has logged in saying, "The Width is missing for the product [the name of the product]." I have widths for all of my products and their variants. This message shows up for every product and I cannot figure out what it means.

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

  • Posts: 13201
  • Thank you received: 2322
9 years 4 months ago #208892

Hi,

Please give us more informations about the shipping method used when this error is displayed and provide a backend and a FTP access via our contact form with the url of that topic in your message :)

www.hikashop.com/support/contact-us.html

Last edit: 9 years 4 months ago by Xavier.

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

  • Posts: 12953
  • Thank you received: 1778
9 years 4 months ago #209058

Hello,
Your USPS shipping method seems to be correctly working, but the error message is still displayed, did you add some code customization ? to add for example the "Weight" option through your USPS shipping method ? If that the case can you test it without any code customization ?
Thanks.

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

  • Posts: 20
  • Thank you received: 1
9 years 4 months ago #209261

I removed all customization by removing the html override folder in my backend and front templates. and the usps.php file is from the original install and the error still appears. This did not appear until the recent upgrade.

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

  • Posts: 20
  • Thank you received: 1
9 years 4 months ago #209262

I just figured it out. I had a width and length for each product but no depth. When I added a depth the error went away. What is weird I only did this for the main product and not the variants even though it is one of the variant options in my shopping cart. Does this make sense? Is this the way it should be?

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

  • Posts: 12953
  • Thank you received: 1778
9 years 4 months ago #209278

Hello,
The USPS is correctly using the dimensions of your product variant, but your should correctly set each dimmensions / weight to be sure that it'll use it.

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

  • Posts: 157
  • Thank you received: 2
9 years 3 months ago #212282

Hello,

I have the same issue only from today (no changes made in the site)

Suddenly I began to have this error on check out:

"The Width is missing for the product [product name]
The Length is missing for the product [product name]
The Height is missing for the product [product name]"


If I added width, length and height in the product notifications, the error disappeared. I don't need dimensions in my products, so what can I do?
Thanks

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

  • Posts: 12953
  • Thank you received: 1778
9 years 3 months ago #212283

Hello,

If I added width, length and height in the product notifications, the error disappeared. I don't need dimensions in my products, so what can I do?

But you can't use the USPS shipping method without your product dimensions because the USPS shipping platform will need it and can't return the rates without it.
The solution can just be to add some dimensions or directly edit the code of the USPS shipping plugin.

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

  • Posts: 157
  • Thank you received: 2
9 years 3 months ago #212306

Hello

But you can't use the USPS shipping method without your product dimensions because the USPS shipping platform will need it and can't return the rates without it.


Add some dimensions to all products??? Everything was Ok until yesterday! What happened suddenly that I need to add dimensions?

directly edit the code of the USPS shipping plugin.


What do you mean?

Thank you

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

  • Posts: 12953
  • Thank you received: 1778
9 years 3 months ago #212319

Hi,
If you really want to use the USPS shipping method without dimensions you'll have to change that line :

$package = $this->getOrderPackage($order, array('weight_unit' => 'oz', 'volume_unit' => 'in', 'required_dimensions' => array('w','x','y','z')));
By :
$package = $this->getOrderPackage($order, array('weight_unit' => 'oz', 'volume_unit' => 'in', 'required_dimensions' => array('w')));
Through the "usps.php" file of your USPS shipping plugin.

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

  • Posts: 157
  • Thank you received: 2
9 years 3 months ago #212384

Thank you, you forgot to tell me to erase the follow:

$package['x'] = $package[0]['x'];
				$package['y'] = $package[0]['y'];
				$package['z'] = $package[0]['z'];

Now it works.

Someone can explain to me why I need to do this after 2 years that the site is working?

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

  • Posts: 12953
  • Thank you received: 1778
9 years 3 months ago #212396

Hi,

Someone can explain to me why I need to do this after 2 years that the site is working?

Sure, that's because the shipping platforms are returning rates which are more precise when we add the products dimensions.

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

  • Posts: 157
  • Thank you received: 2
9 years 3 months ago #212449

Yes but one week ago the shipping platforms was not the same? What was different before? The problem started few days ago and the site is working 2 years... That what I can't understand...?

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

  • Posts: 12953
  • Thank you received: 1778
9 years 3 months ago #212473

Hello,
The only reason, will be that your shipping method was working as you want with the old Hikashop shipping version, and that when you updated your hikashop version, the new dimension restriction was applied.

The following user(s) said Thank You: Carolek

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

  • Posts: 157
  • Thank you received: 2
9 years 3 weeks ago #219085

Hello again,

I think that because the last update of Hikashop, the problem is back. I tried to change the code like you told me to do but it's not changing anything. Any idea?

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

  • Posts: 82909
  • Thank you received: 13379
  • MODERATOR
9 years 3 weeks ago #219567

Hi,

Mohamed is in holiday for the whole week. He'll answer you next week when he comes back as he is the on in charge of shipping plugins and knows them best than anyone else.

Thank you for your understanding.

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

  • Posts: 82909
  • Thank you received: 13379
  • MODERATOR
9 years 3 weeks ago #219568

Hi,

Note however, it would be great if you could provide a screenshot of your shipping method settings, the weight/dimensions of one product which has that problem and the shipping address you used for your test.
That way, Mohamed would be able to better understand your situation without loosing time with back and forth until he is able to reproduce the problem.

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

  • Posts: 157
  • Thank you received: 2
9 years 2 weeks ago #220143

This happened with all the products. I get this warning (screenshot 6) when I go to checkout.
I attached the dimension of the product and the shipping method settings.
Thank you

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
9 years 2 weeks ago #220171

Hello,
It should work with the customization that we previously added (you should test it again with the modification and with your cache cleared), you didn't attached the warning, can you do it so that I can directly check it ?
Thanks.

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

  • Posts: 157
  • Thank you received: 2
9 years 2 weeks ago #220209

Hello

Sorry for that. Here the attachment with the error.
I tried the previous customization. I'll try again and clear my cache.

Thank

Attachments:

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

Time to create page: 0.131 seconds
Powered by Kunena Forum