[Skip to main content](#vessel-content)

#   Bug with Weight

##

- **[bassimbg](/forum/user/36592-bassimbg "View bassimbg's Profile")**
- [![bassimbg's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/36592-bassimbg "View bassimbg's Profile") Topic Author
- [ Offline](/forum/user/36592-bassimbg)

Less More

- Posts: 11
- Thank you received: 0
-
-

11 years 1 month ago [\#213926](#213926) by [bassimbg](/forum/user/36592-bassimbg "View bassimbg's Profile")  *[Bug with Weight](/forum/25-install-update/879230-bug-with-weight#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 ")* was created by *[bassimbg](/forum/user/36592-bassimbg "View bassimbg's Profile")*

-- 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 &lt;= and not &lt; only.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg3OTIzMC1idWctd2l0aC13ZWlnaHQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

11 years 1 month ago [\#213933](#213933) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Bug with Weight](/forum/25-install-update/879230-bug-with-weight#213933 "-- 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 ")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg3OTIzMC1idWctd2l0aC13ZWlnaHQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[bassimbg](/forum/user/36592-bassimbg "View bassimbg's Profile")**
- [![bassimbg's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/36592-bassimbg "View bassimbg's Profile") Topic Author
- [ Offline](/forum/user/36592-bassimbg)

Less More

- Posts: 11
- Thank you received: 0
-
-

11 years 1 month ago [\#214037](#214037) by [bassimbg](/forum/user/36592-bassimbg "View bassimbg's Profile")  Replied by *[bassimbg](/forum/user/36592-bassimbg "View bassimbg's Profile")* on topic *[Bug with Weight](/forum/25-install-update/879230-bug-with-weight#214037 "-- 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 ")*

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.

- [ ![wieght1.png](/forum/attachment/26419) ](/forum/attachment/26419 "wieght1.png") [ ](/forum/attachment/26419?download=1 "wieght1.png")
- [ ![one&#95;item.png](/forum/attachment/26420) ](/forum/attachment/26420 "one&#95;item.png") [ ](/forum/attachment/26420?download=1 "one&#95;item.png")
- [ ![two&#95;items.png](/forum/attachment/26421) ](/forum/attachment/26421 "two&#95;items.png") [ ](/forum/attachment/26421?download=1 "two&#95;items.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg3OTIzMC1idWctd2l0aC13ZWlnaHQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 1 month ago [\#214045](#214045) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Bug with Weight](/forum/25-install-update/879230-bug-with-weight#214045 "-- 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 ")*

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](http://take.ms/GmvU2)
- I configured a shipping method with a max eight of 1kg:
[ take.ms/HEthc](http://take.ms/HEthc)
- I see the shipping method on the checkout for 2 items of that product in the cart:
[ take.ms/a73YH](http://take.ms/a73YH)

And I've checked the code handling the comparison and it properly check with &lt;= and &gt;=, and not &lt; and &gt;
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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg3OTIzMC1idWctd2l0aC13ZWlnaHQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[bassimbg](/forum/user/36592-bassimbg "View bassimbg's Profile")**
- [![bassimbg's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/36592-bassimbg "View bassimbg's Profile") Topic Author
- [ Offline](/forum/user/36592-bassimbg)

Less More

- Posts: 11
- Thank you received: 0
-
-

11 years 1 month ago [\#214049](#214049) by [bassimbg](/forum/user/36592-bassimbg "View bassimbg's Profile")  Replied by *[bassimbg](/forum/user/36592-bassimbg "View bassimbg's Profile")* on topic *[Bug with Weight](/forum/25-install-update/879230-bug-with-weight#214049 "-- 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 ")*

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

Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg3OTIzMC1idWctd2l0aC13ZWlnaHQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 1 month ago [\#214053](#214053) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Bug with Weight](/forum/25-install-update/879230-bug-with-weight#214053 "-- 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 ")*

Hi,

See, it's as I said: [ take.ms/VwOp3](http://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](http://take.ms/WblLD)

The following user(s) said Thank You: [bassimbg](/forum/user/36592-bassimbg "View bassimbg's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg3OTIzMC1idWctd2l0aC13ZWlnaHQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[bassimbg](/forum/user/36592-bassimbg "View bassimbg's Profile")**
- [![bassimbg's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/36592-bassimbg "View bassimbg's Profile") Topic Author
- [ Offline](/forum/user/36592-bassimbg)

Less More

- Posts: 11
- Thank you received: 0
-
-

11 years 1 month ago [\#214073](#214073) by [bassimbg](/forum/user/36592-bassimbg "View bassimbg's Profile")  Replied by *[bassimbg](/forum/user/36592-bassimbg "View bassimbg's Profile")* on topic *[Bug with Weight](/forum/25-install-update/879230-bug-with-weight#214073 "-- 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 ")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg3OTIzMC1idWctd2l0aC13ZWlnaHQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.262 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
