No States Selection

  • Posts: 4
  • Thank you received: 0
12 years 1 month ago #75481

At the registration page (during the checkout process), I cannot get the United States "States" selection dropdown box to show up.

I know it's a script error.

I installed jQuery Easy to try to resolve the problem.

My site: bit.ly/Rr13nX

Last edit: 12 years 1 month ago by wsm.

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
12 years 1 month ago #75768

Hi,

You apparently changed the state custom field from a dropdown to a text field.
So that would be one reason that you don't have the dropdown.
On top of that, another one could be that you unpublished the USA states via the menu System->Zones.

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

  • Posts: 4
  • Thank you received: 0
12 years 1 month ago #75813

No, I added a custom text field called "State" so I could get the state entered manually by the customer. In the interim, the "real" one has been unpublished. Will publish it so perhaps you can take a look at it.

Thanks.

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
12 years 1 month ago #75978

Hi,

I see that you still have your added custom field for states and not the default one of HikaShop.

You might have javascript errors on your website which causes the dropdown to not be initialized.
If you update to the latest version of HikaShop, we have changed the system so that even if you have javascript errors on your pages, the dropdown of states still displays.

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

  • Posts: 4
  • Thank you received: 0
12 years 1 month ago #76074

I've sort of gotten it to work with the upgrade. However, isn't the state listing supposed to change if you select a different country?

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

  • Posts: 26165
  • Thank you received: 4029
  • MODERATOR
12 years 1 month ago #76230

Hi,

I don't know if your link is broken, if you're working on a test directory or directly on the website root but..

Your custom field named "state" is still a text custom field.
You have to change it into a state zone custom field if you want that dynamic switch works.

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.

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

  • Posts: 4
  • Thank you received: 0
12 years 1 month ago #76756

I put the text box there so that the customer would have a way of entering their state when they made a purchase.

The state drop-down box is enabled. It *should* be there. But it doesn't load. Were it to load, I'd have a state drop-down box AND a state text entry field.

Using the text box is an inelegant solution, and I'm hoping to set things aright as soon as possible.

Thanks.

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

  • Posts: 26165
  • Thank you received: 4029
  • MODERATOR
12 years 1 month ago #76839

Hi,

The state drop-down must replace your text box. It must have the "state" name.
After that, your drop-down have the name "address_state" and not "state". And there is a CSS rule which hide the entire tr line:

#hikashop_checkout_login_right_part .hikashop_registration_address_state_line, #hikashop_address_form_span_iframe .hikashop_address_address_state_line {
display: none;
}
That's why you don't see the drop-down and that's why the country drop-down generates a javascript error : the state drop-down doesn't have his right name.

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.

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

  • Posts: 10
  • Thank you received: 0
11 years 4 months ago #116587

Hi,
I have a similar problem. (Using Joomla 3, and HikaShop: 2.2.0)

I've renamed the STATE label to Province (as that what its called in our country)
And now I just get a * where the drop down box should be.

I've attached a screenshot of the Back end settings - as well as how it displays in the front end.

Thank you.

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
11 years 4 months ago #116594

Hi,

I think that you'll maybe find your answer there :

You need to go in the menu Display->Custom fields and edit the address_country field and save it so that the new default value becomes the one left published because otherwise, the default one is France. Because of that the system tries to load the states from France but since you unpublished all of them, you just don't get the dropdown.

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

  • Posts: 10
  • Thank you received: 0
11 years 4 months ago #116710

Hi,
Thank you for your quick reply.
I believe it is set like that already:
(attached screenshot)

oh yes - the problem is only on the "registration" piece. On the popup it shows fine

Attachments:
Last edit: 11 years 4 months ago by mab.

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

  • Posts: 12953
  • Thank you received: 1778
11 years 4 months ago #116723

Ok,
If it's just happening through your registration form I think that you should have either a JavaScript error on your website or you had edited one of the of the views of the registration area.

So you should probably :
1. Check your browser javascript error log for that page to see if you have any error.
2. Check that you didn't edited one of the files of the view"user or the file login of the view checkout through Hikashop->Display->Views.

The following user(s) said Thank You: mab

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

  • Posts: 10
  • Thank you received: 0
11 years 4 months ago #116755

Hi
You know - the funniest thing - I went in to check the JavaScript error - and it's suddenly working!
I know it wasn't earlier today.... but if it's working - I'm happy!
Thank you.

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

Time to create page: 0.105 seconds
Powered by Kunena Forum