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

#   Shipping address without "State" is rejected

##

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

Less More

- Posts: 26
- Thank you received: 3
-
-

6 years 5 months ago [\#320811](#320811) by [multigeo](/forum/user/41399-multigeo "View multigeo's Profile")  *[Shipping address without "State" is rejected](/forum/27-checkout/900183-shipping-address-without-state-is-rejected#320811 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19 -- PHP version -- : 7.3 -- Browser(s) name and version -- : Firefox latest -- Error-message(debug-mod must be tuned on) -- : Shipping address incorrect, please edit  Hi Guys,  After the update to Hikashop (Buss) 4.3.0 an existing customer from Singapore could no longer complete the checkout process. The shipping address does not contain a &quot;State&quot; (Singapore does not have any states or provinces).  Customer tried to enter a new shipping address and reports (and we confirmed) that after selecting Singapore as a country the &quot;State&quot; label still shows, but the field itself disappears. After the AJAX does its thing a message appears saying that shipping is not possible to this address as some fields are missing and please edit.  When I checked there was for Singapore only the &quot;Country&quot; zone I circumvented the problem by creating extra zones for Singapore. I duplicated the &quot;Country&quot; zone for both &quot;State&quot; and &quot;Ship&quot; and added the State as subzone to the country. (ref. attachment) Now it works again. Since this issue may apply to other countries (without states or provinces) as well I would like to understand what is happening here. Did I miss something in the release notes? This was not a problem in the previous version of Hikashop.  What would currently be the correct way to set things up for countries where states or provinces do not apply?  Thank you so much for your insights.  Cheers, André")* was created by *[multigeo](/forum/user/41399-multigeo "View multigeo's Profile")*

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.19
-- PHP version -- : 7.3
-- Browser(s) name and version -- : Firefox latest
-- Error-message(debug-mod must be tuned on) -- : Shipping address incorrect, please edit

Hi Guys,

After the update to Hikashop (Buss) 4.3.0 an existing customer from Singapore could no longer complete the checkout process.
The shipping address does not contain a "State" (Singapore does not have any states or provinces).

Customer tried to enter a new shipping address and reports (and we confirmed) that after selecting Singapore as a country the "State" label still shows, but the field itself disappears.
After the AJAX does its thing a message appears saying that shipping is not possible to this address as some fields are missing and please edit.

When I checked there was for Singapore only the "Country" zone
I circumvented the problem by creating extra zones for Singapore. I duplicated the "Country" zone for both "State" and "Ship" and added the State as subzone to the country. (ref. attachment)
Now it works again.
Since this issue may apply to other countries (without states or provinces) as well I would like to understand what is happening here.
Did I miss something in the release notes?
This was not a problem in the previous version of Hikashop.

What would currently be the correct way to set things up for countries where states or provinces do not apply?

Thank you so much for your insights.

Cheers,
André

- [ ![Singapore&#95;zones.png](/forum/attachment/49739) ](/forum/attachment/49739 "...pore&#95;zones.png") [ ](/forum/attachment/49739?download=1 "...pore&#95;zones.png")

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

Less More

- Posts: 86587
- Thank you received: 14326
-
-

6 years 5 months ago [\#320827](#320827) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Shipping address without "State" is rejected](/forum/27-checkout/900183-shipping-address-without-state-is-rejected#320827 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19 -- PHP version -- : 7.3 -- Browser(s) name and version -- : Firefox latest -- Error-message(debug-mod must be tuned on) -- : Shipping address incorrect, please edit  Hi Guys,  After the update to Hikashop (Buss) 4.3.0 an existing customer from Singapore could no longer complete the checkout process. The shipping address does not contain a &quot;State&quot; (Singapore does not have any states or provinces).  Customer tried to enter a new shipping address and reports (and we confirmed) that after selecting Singapore as a country the &quot;State&quot; label still shows, but the field itself disappears. After the AJAX does its thing a message appears saying that shipping is not possible to this address as some fields are missing and please edit.  When I checked there was for Singapore only the &quot;Country&quot; zone I circumvented the problem by creating extra zones for Singapore. I duplicated the &quot;Country&quot; zone for both &quot;State&quot; and &quot;Ship&quot; and added the State as subzone to the country. (ref. attachment) Now it works again. Since this issue may apply to other countries (without states or provinces) as well I would like to understand what is happening here. Did I miss something in the release notes? This was not a problem in the previous version of Hikashop.  What would currently be the correct way to set things up for countries where states or provinces do not apply?  Thank you so much for your insights.  Cheers, André")*

Hi,

Thank you for your feedback.

This happens because of an improvement we made in the 4.3.0 so that if you activate the "required" setting of a custom address field, the system will check that the custom field is filled in when the address is selected as a billing or shipping address on the checkout. Before the system was allowing customers to checkout even without the field filled in as long as the address had been entered before the required option had been activated.
And we didn't think of the state custom field, which is by default required and there are by default some countries without states.
So I've added a patch so that if the country doesn't have any states, even if the "required" setting of the custom field is activated, it will still validate the address.
You can download the install package of HikaShop on our website and install it on yours to get the patch.
Note that you can also just turn off the "required" setting of the state field. Unless you have the "Add a 'Please select' value" setting activated in the field, having the required setting on or off is the same (besides that extra check that we need to do to skip the field when no states are in the country if the setting is turned on).

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

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