Bug with Weight

  • Posts: 11
  • Thank you received: 0
9 years 10 months ago #213926

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.1

I noticed there is bug in weight, if I put price in the zone min weight and max weight between 1kg and 2kg = x price and between 2kg and 3kg = y price, its works, BUT the problem if the weight becomes equal to 2 kg then price will disappear.
I mean the rule should be <= and not < only.

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

  • Posts: 12953
  • Thank you received: 1778
9 years 10 months ago #213933

Hello,
About which weight are you talking about ? Can you give me more information about it through some screenshots for example so that we can understand ?
Thanks.

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

  • Posts: 11
  • Thank you received: 0
9 years 10 months ago #214037

Here is an example:
I want to make shipping price as following (attached):
between 0 and 1 Kg= $10
between 1 and 2 Kg = $20
between 2 and 3 Kg = $30

if the total items in cart got a total of 1 kg or 2 kg exactly the shipping price disappears, but if its 1.99 it charges $10 and its 1.001 it charges $20, but if its 1 kg exactly it will charge $0.

hope this helps.

Attachments:

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

  • Posts: 84104
  • Thank you received: 13640
  • MODERATOR
9 years 10 months ago #214045

Hi,

I've tried to reproduce the problem on my end but it worked just fine:
- I configured a product with a weight of 0.5kg:
take.ms/GmvU2
- I configured a shipping method with a max eight of 1kg:
take.ms/HEthc
- I see the shipping method on the checkout for 2 items of that product in the cart:
take.ms/a73YH

And I've checked the code handling the comparison and it properly check with <= and >=, and not < and >
I've also checked and we've had it like that in HikaShop since at least two years.

So far, these were facts proving that the system works as it should on the weight check. Now, I'll make assumptions on your issue, as you didn't provide a link to the website nor screenshots of how your checkout is setup.
With your example, when you add a third element in the cart for that product, the second shipping method should appear with the $20 price mark if your hypothesis was correct. But I suppose it is not appearing when you do that.
This means that the issue is not what you think it is. The shipping price disappears from the cart because the shipping method selection is invalidated from the total weight change. Normally, a shipping method would be reselected automatically, but it's not done on your website because I suppose that you turned off the "auto select shipping and payment methods" setting of the HikaShop configuration. And thus, you have to go back to the shipping methods selection step of your checkout in order to reselect your shipping method after you changed the products in the cart. So you probably want to turn back on that setting if you turned it off.

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

  • Posts: 11
  • Thank you received: 0
9 years 10 months ago #214049

Hi Nicolas,
I will send you access in private please check.

Thank you

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

  • Posts: 84104
  • Thank you received: 13640
  • MODERATOR
9 years 10 months ago #214053

Hi,

See, it's as I said: take.ms/VwOp3
It's not a problem with the shipping methods weight rules since I'm still able to select that $10 shipping method with two products.
It's just a matter that the selection is removed and that it has to be added back manually.
Actually the issue is that your shipping methods weight limits are not correct for what you want to do. Because one shipping method maximum weight is the same as the minimum weight of the next one, in some cases, you have two shipping methods displayed and that's why you get that behavior as it doesn't know which one to pick and let you pick it yourself.
I've changed the weight limits for your shipping methods so that they don't overlap and it works just fine now:
take.ms/WblLD

The following user(s) said Thank You: bassimbg

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

  • Posts: 11
  • Thank you received: 0
9 years 10 months ago #214073

Thank you, this was the right way of doing it, not to overlap.
Since you have access you may please check sorting, I already opened a ticket for that.

Thank you again,

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

Time to create page: 0.061 seconds
Powered by Kunena Forum