Cannot add product if country has no state

  • Posts: 2143
  • Thank you received: 747
8 years 8 months ago #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) -- : "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

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!
(Don't forget to turn on "E-mail notification of new messages" )

Please Log in or Create an account to join the conversation.

  • Posts: 26008
  • Thank you received: 4004
  • MODERATOR
8 years 8 months ago #211072

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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: lousyfool

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.056 seconds
Powered by Kunena Forum