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

#   shipping by weigth - minimum weight g vs Kg

##

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

Less More

- Posts: 36
- Thank you received: 4
-
-

4 years 11 months ago [\#337686](#337686) by [hkeyzer](/forum/user/55622-hkeyzer "View hkeyzer's Profile")  *[shipping by weigth - minimum weight g vs Kg](/forum/28-shipping-methods/903613-shipping-by-weigth-minimum-weight-g-vs-kg#337686 "-- url of the page with the problem -- :   www.safka.co.nz/  -- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.21 -- PHP version -- : 7.3.25 -- Browser(s) name and version -- : firefox 91.0.2 -- Error-message(debug-mod must be tuned on) -- : When we set-up a new shipping method by weight. We enter maximum weight as 5kg. If we then enter the minimum weight as 0kg - the shipping selection works fine. However if we enter the minimum weight as 0g - we get the wrong shipping option.  Shouldn't minimum weight as 0g give same result as 0kg ?  Thanks  When we set-up a new shipping method by weight. We enter maximum weight as 5kg. If we then enter the minimum weight as 0kg - the shipping selection works fine. However if we enter the minimum weight as 0g - we get the wrong shipping option.  Shouldn't minimum weight as 0g give same result as 0kg ?  Thanks")* was created by *[hkeyzer](/forum/user/55622-hkeyzer "View hkeyzer's Profile")*

-- url of the page with the problem -- : [ www.safka.co.nz/](https://www.safka.co.nz/)
-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.21
-- PHP version -- : 7.3.25
-- Browser(s) name and version -- : firefox 91.0.2
-- Error-message(debug-mod must be tuned on) -- : When we set-up a new shipping method by weight. We enter maximum weight as 5kg.
If we then enter the minimum weight as 0kg - the shipping selection works fine.
However if we enter the minimum weight as 0g - we get the wrong shipping option.

Shouldn't minimum weight as 0g give same result as 0kg ?

Thanks

When we set-up a new shipping method by weight. We enter maximum weight as 5kg.
If we then enter the minimum weight as 0kg - the shipping selection works fine.
However if we enter the minimum weight as 0g - we get the wrong shipping option.

Shouldn't minimum weight as 0g give same result as 0kg ?

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvOTAzNjEzLXNoaXBwaW5nLWJ5LXdlaWd0aC1taW5pbXVtLXdlaWdodC1nLXZzLWtnP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

4 years 11 months ago [\#337701](#337701) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[shipping by weigth - minimum weight g vs Kg](/forum/28-shipping-methods/903613-shipping-by-weigth-minimum-weight-g-vs-kg#337701 "-- url of the page with the problem -- :   www.safka.co.nz/  -- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.21 -- PHP version -- : 7.3.25 -- Browser(s) name and version -- : firefox 91.0.2 -- Error-message(debug-mod must be tuned on) -- : When we set-up a new shipping method by weight. We enter maximum weight as 5kg. If we then enter the minimum weight as 0kg - the shipping selection works fine. However if we enter the minimum weight as 0g - we get the wrong shipping option.  Shouldn't minimum weight as 0g give same result as 0kg ?  Thanks  When we set-up a new shipping method by weight. We enter maximum weight as 5kg. If we then enter the minimum weight as 0kg - the shipping selection works fine. However if we enter the minimum weight as 0g - we get the wrong shipping option.  Shouldn't minimum weight as 0g give same result as 0kg ?  Thanks")*

Hi,

Well, it's a matter or floating point calculations in PHP and rounding.
The calculations don't always produce round numbers.
And when the result is 0.001 you might consider it as 0 if the unit is the gram, but if the unit is the ton, it means that it's 1kg and thus non negligeable.
So when you define min/max weights, it's better to use the same unit as your products weight.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvOTAzNjEzLXNoaXBwaW5nLWJ5LXdlaWd0aC1taW5pbXVtLXdlaWdodC1nLXZzLWtnP3RtcGw9bWFya2Rvd24=) 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.041 seconds

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