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

#   Postal Code Formatting

##

- **[jukeboxjunkey](/forum/user/15117-jukeboxjunkey "View jukeboxjunkey's Profile")**
- [![jukeboxjunkey's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar15117.png)](/forum/user/15117-jukeboxjunkey "View jukeboxjunkey's Profile") Topic Author
- [ Offline](/forum/user/15117-jukeboxjunkey)

Less More

- Posts: 33
- Thank you received: 2
-
-
-
-

6 years 6 months ago -  6 years 6 months ago [\#318485](#318485) by [jukeboxjunkey](/forum/user/15117-jukeboxjunkey "View jukeboxjunkey's Profile")  *[Postal Code Formatting](/forum/28-shipping-methods/899741-postal-code-formatting#318485 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.9.18  Hello,  We are using the Canada Post Advanced plugin for shipping.  When someone enters the postal code in the following format (X0X0X0), the transaction processes correctly and includs the tax and shipping rate.  However, it is common in Canada for the postal code to use the following format (X0X 0X0) with a space between the third and forth characters. When this occurs, the order processes however the taxes and shipping are not added to the purchase.  Is there a way for the shipping plugin to accept either format? and or how can the postal code format field force a correct input?  Thanks.")* was created by *[jukeboxjunkey](/forum/user/15117-jukeboxjunkey "View jukeboxjunkey's Profile")*

-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.9.18

Hello,

We are using the Canada Post Advanced plugin for shipping.

When someone enters the postal code in the following format (X0X0X0), the transaction processes correctly and includs the tax and shipping rate.

However, it is common in Canada for the postal code to use the following format (X0X 0X0) with a space between the third and forth characters. When this occurs, the order processes however the taxes and shipping are not added to the purchase.

Is there a way for the shipping plugin to accept either format? and or how can the postal code format field force a correct input?

Thanks.

Last edit: 6 years 6 months ago by [jukeboxjunkey](/forum/user/15117-jukeboxjunkey "View jukeboxjunkey's Profile").

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

- **[jukeboxjunkey](/forum/user/15117-jukeboxjunkey "View jukeboxjunkey's Profile")**
- [![jukeboxjunkey's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar15117.png)](/forum/user/15117-jukeboxjunkey "View jukeboxjunkey's Profile") Topic Author
- [ Offline](/forum/user/15117-jukeboxjunkey)

Less More

- Posts: 33
- Thank you received: 2
-
-
-
-

6 years 6 months ago [\#318486](#318486) by [jukeboxjunkey](/forum/user/15117-jukeboxjunkey "View jukeboxjunkey's Profile")  Replied by *[jukeboxjunkey](/forum/user/15117-jukeboxjunkey "View jukeboxjunkey's Profile")* on topic *[Postal Code Formatting](/forum/28-shipping-methods/899741-postal-code-formatting#318486 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.9.18  Hello,  We are using the Canada Post Advanced plugin for shipping.  When someone enters the postal code in the following format (X0X0X0), the transaction processes correctly and includs the tax and shipping rate.  However, it is common in Canada for the postal code to use the following format (X0X 0X0) with a space between the third and forth characters. When this occurs, the order processes however the taxes and shipping are not added to the purchase.  Is there a way for the shipping plugin to accept either format? and or how can the postal code format field force a correct input?  Thanks.")*

Further to this. It appears that we have established a regular expression check with the correct formatting, however one recent purchase had the X0X 0X0 formatted postal code. We don't know how this could have occurred as we can not re-create the use of a postal code that doesn't meet the correct version.

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

- **[jukeboxjunkey](/forum/user/15117-jukeboxjunkey "View jukeboxjunkey's Profile")**
- [![jukeboxjunkey's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar15117.png)](/forum/user/15117-jukeboxjunkey "View jukeboxjunkey's Profile") Topic Author
- [ Offline](/forum/user/15117-jukeboxjunkey)

Less More

- Posts: 33
- Thank you received: 2
-
-
-
-

6 years 6 months ago [\#318487](#318487) by [jukeboxjunkey](/forum/user/15117-jukeboxjunkey "View jukeboxjunkey's Profile")  Replied by *[jukeboxjunkey](/forum/user/15117-jukeboxjunkey "View jukeboxjunkey's Profile")* on topic *[Postal Code Formatting](/forum/28-shipping-methods/899741-postal-code-formatting#318487 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.9.18  Hello,  We are using the Canada Post Advanced plugin for shipping.  When someone enters the postal code in the following format (X0X0X0), the transaction processes correctly and includs the tax and shipping rate.  However, it is common in Canada for the postal code to use the following format (X0X 0X0) with a space between the third and forth characters. When this occurs, the order processes however the taxes and shipping are not added to the purchase.  Is there a way for the shipping plugin to accept either format? and or how can the postal code format field force a correct input?  Thanks.")*

Further to this. I was unable to re-create the incorrect input of the postal code. So I did some digging. A couple of years ago (2018) we added the regular expression to deal with this issue, as the Canada Post plugin wouldn't function properly without the correct formatting. It appears that the issue at hand is a result of someone registering to the site using the incorrect postal code formatting prior to our regular expression configuration. That person hadn't ordered another product since the time they registered in early 2017.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODk5NzQxLXBvc3RhbC1jb2RlLWZvcm1hdHRpbmc/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14280
-
-

6 years 5 months ago [\#318507](#318507) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Postal Code Formatting](/forum/28-shipping-methods/899741-postal-code-formatting#318507 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.9.18  Hello,  We are using the Canada Post Advanced plugin for shipping.  When someone enters the postal code in the following format (X0X0X0), the transaction processes correctly and includs the tax and shipping rate.  However, it is common in Canada for the postal code to use the following format (X0X 0X0) with a space between the third and forth characters. When this occurs, the order processes however the taxes and shipping are not added to the purchase.  Is there a way for the shipping plugin to accept either format? and or how can the postal code format field force a correct input?  Thanks.")*

Hi,

Yes, I would indeed recommend using the regular expression check to avoid the issue.
And yes, the check was only done when the address was updated/created until the 4.3.0 when we added also the check of the address being used, as you can read on our change log:

> There is now a check to prevent someone from validating a checkout with an old address missing information in required custom fields that were not required when the user first entered his address.

[ www.hikashop.com/support/documentation/5...ashop-changelog.html](https://www.hikashop.com/support/documentation/56-hikashop-changelog.html)
Since you have an old version of HikaShop it's normal that this user, who registered before you had added that check was able to checkout with a post code not validating the regex check.

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

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