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

#   Shipping Method Post Code Restriction Bug

##

- **[3by400](/forum/user/6842-3by400 "View 3by400's Profile")**
- [![3by400's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6842.jpg)](/forum/user/6842-3by400 "View 3by400's Profile") Topic Author
- [ Offline](/forum/user/6842-3by400)

Less More

- Posts: 211
- Thank you received: 14
-
-
- [](https://3by400.com)
-

10 years 7 months ago [\#233759](#233759) by [3by400](/forum/user/6842-3by400 "View 3by400's Profile")  *[Shipping Method Post Code Restriction Bug](/forum/28-shipping-methods/883206-shipping-method-post-code-restriction-bug#233759 "-- HikaShop version -- : HikaShop Business: 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.31 -- Browser(s) name and version -- : Firefox 45 -- Error-message(debug-mod must be tuned on) -- : &quot;No shipping method found for your location&quot;  We've discovered that there may be an issue with the post code restrictions for shipping methods, and we believe this is a new issue that has presented itself in a recent Hikashop version.  U.S. zipcodes are most often used in a 5 digit format, however, the post office will use a 9 digit zip code for more accuracy in locations.  We have a shipping method, using the manual shipping plugin, restricted to post codes within the range of 20154 to 99999. If the customer's post code is entered as 20171, for example, the shipping method works correctly. However, if the customer uses the 9 digit post code like 20171-2986, the shipping method restriction excludes the post code as a valid value for the shipping method.  This may be a bug, or perhaps the max and min post code fields work differently in the latest version of Hikashop? The reason we believe that the function has changed is because we had a returning customer use their previously-saved address with the 9 digit zipcode and the shipping method error appeared.")* was created by *[3by400](/forum/user/6842-3by400 "View 3by400's Profile")*

-- HikaShop version -- : HikaShop Business: 2.6.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.5.31
-- Browser(s) name and version -- : Firefox 45
-- Error-message(debug-mod must be tuned on) -- : "No shipping method found for your location"

We've discovered that there may be an issue with the post code restrictions for shipping methods, and we believe this is a new issue that has presented itself in a recent Hikashop version.

U.S. zipcodes are most often used in a 5 digit format, however, the post office will use a 9 digit zip code for more accuracy in locations.

> "The basic format consists of five decimal numerical digits. An extended ZIP+4 code, introduced in 1983, includes the five digits of the ZIP code, a hyphen, and four additional digits that determine a more specific location within a given ZIP code."

We have a shipping method, using the manual shipping plugin, restricted to post codes within the range of 20154 to 99999. If the customer's post code is entered as 20171, for example, the shipping method works correctly. However, if the customer uses the 9 digit post code like 20171-2986, the shipping method restriction excludes the post code as a valid value for the shipping method.

This may be a bug, or perhaps the max and min post code fields work differently in the latest version of Hikashop? The reason we believe that the function has changed is because we had a returning customer use their previously-saved address with the 9 digit zipcode and the shipping method error appeared.

---

3by400, Inc.
[ 3by400.com](https://3by400.com)
Websites that Work, Marketing that Matters

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODgzMjA2LXNoaXBwaW5nLW1ldGhvZC1wb3N0LWNvZGUtcmVzdHJpY3Rpb24tYnVnP3RtcGw9bWFya2Rvd24=) 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: 86555
- Thank you received: 14304
-
-

10 years 7 months ago [\#233782](#233782) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Shipping Method Post Code Restriction Bug](/forum/28-shipping-methods/883206-shipping-method-post-code-restriction-bug#233782 "-- HikaShop version -- : HikaShop Business: 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.31 -- Browser(s) name and version -- : Firefox 45 -- Error-message(debug-mod must be tuned on) -- : &quot;No shipping method found for your location&quot;  We've discovered that there may be an issue with the post code restrictions for shipping methods, and we believe this is a new issue that has presented itself in a recent Hikashop version.  U.S. zipcodes are most often used in a 5 digit format, however, the post office will use a 9 digit zip code for more accuracy in locations.  We have a shipping method, using the manual shipping plugin, restricted to post codes within the range of 20154 to 99999. If the customer's post code is entered as 20171, for example, the shipping method works correctly. However, if the customer uses the 9 digit post code like 20171-2986, the shipping method restriction excludes the post code as a valid value for the shipping method.  This may be a bug, or perhaps the max and min post code fields work differently in the latest version of Hikashop? The reason we believe that the function has changed is because we had a returning customer use their previously-saved address with the 9 digit zipcode and the shipping method error appeared.")*

Hi,

What you're describing is normal.
20171-2986 is understood as 201712986
And since 201712986 is bigger than 99999, it is refused.
You would need a second shipping method for the range 201540000 - 999999999

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

- **[3by400](/forum/user/6842-3by400 "View 3by400's Profile")**
- [![3by400's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6842.jpg)](/forum/user/6842-3by400 "View 3by400's Profile") Topic Author
- [ Offline](/forum/user/6842-3by400)

Less More

- Posts: 211
- Thank you received: 14
-
-
- [](https://3by400.com)
-

10 years 7 months ago -  10 years 7 months ago [\#233851](#233851) by [3by400](/forum/user/6842-3by400 "View 3by400's Profile")  Replied by *[3by400](/forum/user/6842-3by400 "View 3by400's Profile")* on topic *[Shipping Method Post Code Restriction Bug](/forum/28-shipping-methods/883206-shipping-method-post-code-restriction-bug#233851 "-- HikaShop version -- : HikaShop Business: 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.31 -- Browser(s) name and version -- : Firefox 45 -- Error-message(debug-mod must be tuned on) -- : &quot;No shipping method found for your location&quot;  We've discovered that there may be an issue with the post code restrictions for shipping methods, and we believe this is a new issue that has presented itself in a recent Hikashop version.  U.S. zipcodes are most often used in a 5 digit format, however, the post office will use a 9 digit zip code for more accuracy in locations.  We have a shipping method, using the manual shipping plugin, restricted to post codes within the range of 20154 to 99999. If the customer's post code is entered as 20171, for example, the shipping method works correctly. However, if the customer uses the 9 digit post code like 20171-2986, the shipping method restriction excludes the post code as a valid value for the shipping method.  This may be a bug, or perhaps the max and min post code fields work differently in the latest version of Hikashop? The reason we believe that the function has changed is because we had a returning customer use their previously-saved address with the 9 digit zipcode and the shipping method error appeared.")*

Ok, however, technically 20171-2986 should not be understood as 201712986, but rather 20171-'subset'.

The +4 code is a 'subset' of the 5 digit zipcode, because it breaks down the area into smaller sub-areas. So, 20171-'anything' should be viewed as less than 20172.

If 20171-2986 is understood as 201712986 then that would mean two shipping methods would need to be created for each range, the 5 digit and the 5 + 4 digit, to be prepared for either customer entry.

As a quick fix, I've limited the address post code field to a max of 5 characters ... nip it in the bud!

---

3by400, Inc.
[ 3by400.com](https://3by400.com)
Websites that Work, Marketing that Matters

Last edit: 10 years 7 months ago by [3by400](/forum/user/6842-3by400 "View 3by400's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODgzMjA2LXNoaXBwaW5nLW1ldGhvZC1wb3N0LWNvZGUtcmVzdHJpY3Rpb24tYnVnP3RtcGw9bWFya2Rvd24=) 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: 86555
- Thank you received: 14304
-
-

10 years 7 months ago [\#233866](#233866) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Shipping Method Post Code Restriction Bug](/forum/28-shipping-methods/883206-shipping-method-post-code-restriction-bug#233866 "-- HikaShop version -- : HikaShop Business: 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.31 -- Browser(s) name and version -- : Firefox 45 -- Error-message(debug-mod must be tuned on) -- : &quot;No shipping method found for your location&quot;  We've discovered that there may be an issue with the post code restrictions for shipping methods, and we believe this is a new issue that has presented itself in a recent Hikashop version.  U.S. zipcodes are most often used in a 5 digit format, however, the post office will use a 9 digit zip code for more accuracy in locations.  We have a shipping method, using the manual shipping plugin, restricted to post codes within the range of 20154 to 99999. If the customer's post code is entered as 20171, for example, the shipping method works correctly. However, if the customer uses the 9 digit post code like 20171-2986, the shipping method restriction excludes the post code as a valid value for the shipping method.  This may be a bug, or perhaps the max and min post code fields work differently in the latest version of Hikashop? The reason we believe that the function has changed is because we had a returning customer use their previously-saved address with the 9 digit zipcode and the shipping method error appeared.")*

Hi,

Understanding dashes as subsets is a problem for other countries where post codes also use dashes, but not for subsets of areas.
That's why it simply removes the dashes and treat it as a big number.

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

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