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

#   Cannot add product if country has no state

##

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

Less More

- Posts: 2143
- Thank you received: 746
-
- [](http://www.inphase.one)
-

11 years 3 months ago [\#211060](#211060) by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")  *[Cannot add product if country has no state](/forum/22-market-bug-report/878662-cannot-add-product-if-country-has-no-state#211060 "-- url of the page with the problem -- : local -- HikaShop version -- : 2.5.0 -- HikaMarket version -- : 1.6.5 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.3 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : &quot;Please complete the State field&quot; and &quot;VENDOR&#95;UNCOMPLETED&quot;  Hi Jerome,  Appreciate the &quot;Check Vendor Completion&quot; feature, but there seems to be a little problem with it:  A user has successfully registered as vendor, has filled all required address/profile fields, and he is in a country which has no states (e.g. Singapore). If he attempts to add a product, he gets redirected to the profile edition page, and the two error messages as mentioned here above are displayed. He is then stuck and there is nothing he can do because the country has no state he could select. Saving the profile again does not help.  Should be easy for you to reproduce: just create a vendor with an address in the country Singapore (or another country which has no states), then try to let him add a product.  For now, as a workaround I've set the field vendor&#95;address&#95;state to not required.  On the side, obviously the placeholder VENDOR&#95;UNCOMPLETED is not in the language file, yet. No problem, I added  to my language override.  Thanks for taking a look at this.")* was created by *[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")*

-- url of the page with the problem -- : local
-- HikaShop version -- : 2.5.0
-- HikaMarket version -- : 1.6.5
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.5.3
-- Browser(s) name and version -- : any
-- Error-message(debug-mod must be tuned on) -- : "Please complete the State field"
and
"VENDOR_UNCOMPLETED"

Hi Jerome,

Appreciate the "Check Vendor Completion" feature, but there seems to be a little problem with it:

A user has successfully registered as vendor, has filled all required address/profile fields, and he is in a country which has no states (e.g. Singapore). If he attempts to add a product, he gets redirected to the profile edition page, and the two error messages as mentioned here above are displayed.
He is then stuck and there is nothing he can do because the country has no state he could select. Saving the profile again does not help.

Should be easy for you to reproduce: just create a vendor with an address in the country Singapore (or another country which has no states), then try to let him add a product.

For now, as a workaround I've set the field vendor_address_state to not required.

On the side, obviously the placeholder VENDOR_UNCOMPLETED is not in the language file, yet. No problem, I added Code:

VENDOR_UNCOMPLETED="Please complete the required fields."

to my language override.

Thanks for taking a look at this.

---

Need help with customisations of layouts, style or other site development? [ PM me!](/component/uddeim/?task=new)
(Don't forget to turn on [ "E-mail notification of new messages"](/component/uddeim/?task=settings))

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 3 months ago [\#211072](#211072) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Cannot add product if country has no state](/forum/22-market-bug-report/878662-cannot-add-product-if-country-has-no-state#211072 "-- url of the page with the problem -- : local -- HikaShop version -- : 2.5.0 -- HikaMarket version -- : 1.6.5 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.3 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : &quot;Please complete the State field&quot; and &quot;VENDOR&#95;UNCOMPLETED&quot;  Hi Jerome,  Appreciate the &quot;Check Vendor Completion&quot; feature, but there seems to be a little problem with it:  A user has successfully registered as vendor, has filled all required address/profile fields, and he is in a country which has no states (e.g. Singapore). If he attempts to add a product, he gets redirected to the profile edition page, and the two error messages as mentioned here above are displayed. He is then stuck and there is nothing he can do because the country has no state he could select. Saving the profile again does not help.  Should be easy for you to reproduce: just create a vendor with an address in the country Singapore (or another country which has no states), then try to let him add a product.  For now, as a workaround I've set the field vendor&#95;address&#95;state to not required.  On the side, obviously the placeholder VENDOR&#95;UNCOMPLETED is not in the language file, yet. No problem, I added  to my language override.  Thanks for taking a look at this.")*

Hi,

Thanks for the report ; I created an issue ticket for that.
It won't be difficult to reproduce ; but I'll need to find a good way to check that even if the field is empty, it's good to go.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg3ODY2Mi1jYW5ub3QtYWRkLXByb2R1Y3QtaWYtY291bnRyeS1oYXMtbm8tc3RhdGU/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?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/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)
