- Posts: 26
- Thank you received: 0
Checkout-Form IE and FireFox differences
we've a problem within the checkout - user registration form. If one have used the IE 8.x, after selection of country, the state drop-down field does not show any state automatically. It left blank, until you click it and make a selection of the state manually.
In FireFox 3.6.x: If you select a country within the registration form, the state drop-down box updates itself instantly.
Where does it come from? Do you see a chance to solve this behavior?
Thanks
Andreas
Please Log in or Create an account to join the conversation.
Do you have the same problem on our demo website ?
Please Log in or Create an account to join the conversation.
the link is: joomla2.amocol.com
Please make a deal as anonymous customer, go to checkout and click in the registration form country, Germany and see that IE doesn't refresh the state drop-down box.
The same procedure with FireFox will refresh the state drop-down box.
The problem is, if the customer isn't aware of it, later there is no shipping method available.
In this case I like to ask you this: is it possible to track only the country to figure out the shipping method and price if state isn't available or empty? I reviewed already some forum topics for this but sorry no answer did really help.
Thanks
Andreas
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
if it's to complicated to figure it out... I can give you access via TeamViewer to my screen to inspect the configuration.
Andreas
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I double checked it as you suggested. Every setup seemed correctly but I saved the values for sure. And now the state refreshes under IE for country Germany.
But, if you change the country to another name, i.e. to France, the state field in checkout - register form is blank again. This is not really the big problem, but if it is blank i.e. no shipping method is displayed. What can we change that HikaShop only takes the country into account to filter the shipping method?
Thanks,
Andreas
Please Log in or Create an account to join the conversation.
If you set a state, it will apply to a state, if you set it to a country it will apply to a country...
Please Log in or Create an account to join the conversation.
I work with an_0815 on that problem so I hope I can give you more information about the bug we found:
Default values are Germany (as example) with Country and State. When you start the checkout you will see Country and State set with default values. When you change the country to any other value, the state box will refresh with the depending states.
BUT(!) in FF you will see the first entry of states for that country whil IE will show an empty state field. You have to select in the state field the value you want. When the user did not recognize that the field is empty and moves on with the next step he will not be informed about the empty state field. The Shipping and tax will fail because it looks like the IE sends any data the hikashop work with and fails to resolve the correct tax and shipping to the country.
We tried to remove state but than we have the same issue in FF also.
Please Log in or Create an account to join the conversation.
It seems that IE doesn't use the first option of a select as default value if none is selected like all the other browsers do.
Could you try to edit the file administrator/components/com_hikashop/classes/field.php and replace the code:
Please Log in or Create an account to join the conversation.
Thank you!
Please Log in or Create an account to join the conversation.

I'm sorry to tell you that the last reply was too fast and the problem was just moved forward. Adress worked well but when it is time to tell you the shipping options it fails again. So I did it the other way around:
/administrator/components/com_hikashop/classes/user.php
This will check if the state field is empty and prints an error message. Register will fail in this case and jumps back to registration site. The STATE_NOT_VALID message is set in the language file.
Please Log in or Create an account to join the conversation.
Indeed we tested our modification and it didn't solve the problem. We made an additional modification to the file. It now works on our end.
Please try to replace the file administrator/components/com_hikashop/classes/field.php with the file in the archive enclosed.
This attachment is hidden for guests.
Please log in or register to see it.
Please Log in or Create an account to join the conversation.
Thank you!
Please Log in or Create an account to join the conversation.