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

#   Manual shipping plugin displays wrong choices

##

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

Less More

- Posts: 10
- Thank you received: 1
-
-

14 years 1 month ago [\#66732](#66732) by [David54](/forum/user/9506-david54 "View David54's Profile")  *[Manual shipping plugin displays wrong choices](/forum/3-bug-report/66732-manual-shipping-plugin-displays-wrong-choices#66732 "I am trialling Hikashop Starter 1.6.0 + J2.5.6 on a localhost installation. I have set up the Manual Shipping plugin and defined a series of non-overlapping, mutually exclusive methods based only on...")* was created by *[David54](/forum/user/9506-david54 "View David54's Profile")*

I am trialling Hikashop Starter 1.6.0 + J2.5.6 on a localhost installation. I have set up the Manual Shipping plugin and defined a series of non-overlapping, mutually exclusive methods based only on weight i.e. 0-750g, 751-1000g, 1001-1250g, etc. The products have weights in the same units (g). If I add a product weighing 500g to the cart and then checkout, the shipping module correctly displays only one shipping option/price. However, if I add a product weighing 850g to the cart and then checkout, the shipping module displays both 0-750 and 751-1000g options. Storyboard attached. [If I add a product weighing 1200g I get the correct option plus the two invalid ones for lighter weights too.]

In reality, I am trying to set up a rather more complex set of choices (modelling the UK 1st and 2nd class packet charges), but even this simple implementation is causing problems so the project is on hold while this is resolved ![:(](/media/kunena/emoticons/22.png ":(")

Thanks in advance.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82NjczMi1tYW51YWwtc2hpcHBpbmctcGx1Z2luLWRpc3BsYXlzLXdyb25nLWNob2ljZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 10
- Thank you received: 1
-
-

14 years 1 month ago [\#66734](#66734) by [David54](/forum/user/9506-david54 "View David54's Profile")  Replied by *[David54](/forum/user/9506-david54 "View David54's Profile")* on topic *[Re: Manual shipping plugin displays wrong choices](/forum/3-bug-report/66732-manual-shipping-plugin-displays-wrong-choices#66734 "I am trialling Hikashop Starter 1.6.0 + J2.5.6 on a localhost installation. I have set up the Manual Shipping plugin and defined a series of non-overlapping, mutually exclusive methods based only on...")*

Attachment failed to upload - here it is (I hope!)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82NjczMi1tYW51YWwtc2hpcHBpbmctcGx1Z2luLWRpc3BsYXlzLXdyb25nLWNob2ljZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

14 years 1 month ago [\#67016](#67016) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Manual shipping plugin displays wrong choices](/forum/3-bug-report/66732-manual-shipping-plugin-displays-wrong-choices#67016 "I am trialling Hikashop Starter 1.6.0 + J2.5.6 on a localhost installation. I have set up the Manual Shipping plugin and defined a series of non-overlapping, mutually exclusive methods based only on...")*

Hi,

Can you check that your main weight unit (the first one) is also 'g' in the main tab of the configuration ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82NjczMi1tYW51YWwtc2hpcHBpbmctcGx1Z2luLWRpc3BsYXlzLXdyb25nLWNob2ljZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 10
- Thank you received: 1
-
-

14 years 1 month ago [\#67554](#67554) by [David54](/forum/user/9506-david54 "View David54's Profile")  Replied by *[David54](/forum/user/9506-david54 "View David54's Profile")* on topic *[Re: Manual shipping plugin displays wrong choices](/forum/3-bug-report/66732-manual-shipping-plugin-displays-wrong-choices#67554 "I am trialling Hikashop Starter 1.6.0 + J2.5.6 on a localhost installation. I have set up the Manual Shipping plugin and defined a series of non-overlapping, mutually exclusive methods based only on...")*

Hi

Thanks for the response. I tried setting "g" as the first entry and it made no difference.

I had a look at the raw data in the database (in the *_hika_shipping table) and while it didn't exactly leap off the page at me, I did discover that some of the weights defined in the shipping_params field had leading spaces. If you look very carefully at the screen shots I attached, you can see that this is so. To be on the safe side, all the weights were re-entered ensuring that only numeric data was input; after this data fix all worked as expected ![:)](/media/kunena/emoticons/3.png ":)")

In terms of closure comments, in terms of product enhancement it would seem to me that it would be useful if the input functions had some form of data validation. I have observed that these fields will take alphabetic characters, so my guess is that the conversion to a number (I presume that the final comparison operators are numeric based?) occurs late on in the overall process.

Incidentally, now I know what the problem is I can confirm that the ordering of the weights in the configuration was not relevant i.e. I reset kg as the first entry and everything was still OK.

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82NjczMi1tYW51YWwtc2hpcHBpbmctcGx1Z2luLWRpc3BsYXlzLXdyb25nLWNob2ljZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

14 years 1 month ago [\#67611](#67611) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Manual shipping plugin displays wrong choices](/forum/3-bug-report/66732-manual-shipping-plugin-displays-wrong-choices#67611 "I am trialling Hikashop Starter 1.6.0 + J2.5.6 on a localhost installation. I have set up the Manual Shipping plugin and defined a series of non-overlapping, mutually exclusive methods based only on...")*

That's a good idea. We'll add a check on these fields.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82NjczMi1tYW51YWwtc2hpcHBpbmctcGx1Z2luLWRpc3BsYXlzLXdyb25nLWNob2ljZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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.050 seconds

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