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

#   States dropdown box are not shown

##

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

Less More

- Posts: 112
- Thank you received: 0
-
-

15 years 4 months ago [\#18515](#18515) by [lrazov](/forum/user/2532-lrazov "View lrazov's Profile")  *[States dropdown box are not shown](/forum/4-how-to/18515-states-dropdown-box-are-not-shown#18515 "Hi Support!  I came across an weird behavior of hikashop registration form. I use the same form on two pages: Checkout and Registration Form. On the Checkout page the States are not showing up, but on the Registration Form page they are. Please see a screenshot for details.  Any idea as to why this can be happening?  Thank you in advance.  &#91;file&#93;")* was created by *[lrazov](/forum/user/2532-lrazov "View lrazov's Profile")*

Hi Support!

I came across an weird behavior of hikashop registration form. I use the same form on two pages: Checkout and Registration Form.
On the Checkout page the States are not showing up, but on the Registration Form page they are. Please see a screenshot for details.

Any idea as to why this can be happening?

Thank you in advance.

####  *This attachment is hidden for guests.
Please log in or register to see it.*

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE4NTE1LXN0YXRlcy1kcm9wZG93bi1ib3gtYXJlLW5vdC1zaG93bj90bXBsPW1hcmtkb3du) 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: 86320
- Thank you received: 14279
-
-

15 years 4 months ago [\#18537](#18537) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: States dropdown box are not shown](/forum/4-how-to/18515-states-dropdown-box-are-not-shown#18537 "Hi Support!  I came across an weird behavior of hikashop registration form. I use the same form on two pages: Checkout and Registration Form. On the Checkout page the States are not showing up, but on the Registration Form page they are. Please see a screenshot for details.  Any idea as to why this can be happening?  Thank you in advance.  &#91;file&#93;")*

Could you give a link to your shop ?
I'm guessing it must be related to a javascript error...

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

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

Less More

- Posts: 112
- Thank you received: 0
-
-

15 years 4 months ago [\#18547](#18547) by [lrazov](/forum/user/2532-lrazov "View lrazov's Profile")  Replied by *[lrazov](/forum/user/2532-lrazov "View lrazov's Profile")* on topic *[Re: States dropdown box are not shown](/forum/4-how-to/18515-states-dropdown-box-are-not-shown#18547 "Hi Support!  I came across an weird behavior of hikashop registration form. I use the same form on two pages: Checkout and Registration Form. On the Checkout page the States are not showing up, but on the Registration Form page they are. Please see a screenshot for details.  Any idea as to why this can be happening?  Thank you in advance.  &#91;file&#93;")*

My website in not hosted and not published yet - it's all on my laptop. I'm not sure how to give you access to my private network. Do you have any suggestion?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE4NTE1LXN0YXRlcy1kcm9wZG93bi1ib3gtYXJlLW5vdC1zaG93bj90bXBsPW1hcmtkb3du) 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: 86320
- Thank you received: 14279
-
-

15 years 4 months ago [\#18548](#18548) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: States dropdown box are not shown](/forum/4-how-to/18515-states-dropdown-box-are-not-shown#18548 "Hi Support!  I came across an weird behavior of hikashop registration form. I use the same form on two pages: Checkout and Registration Form. On the Checkout page the States are not showing up, but on the Registration Form page they are. Please see a screenshot for details.  Any idea as to why this can be happening?  Thank you in advance.  &#91;file&#93;")*

So, look at the javascript error console of your browser while displaying the checkout page.
There is a good chance that there is a javascript error stopping the javascript process of the page and thus the state dropdown display. If you can copy/paste it here...
Also, if you can copy/paste the headers of the page, that would help as well.

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

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

Less More

- Posts: 112
- Thank you received: 0
-
-

15 years 4 months ago -  15 years 4 months ago [\#18549](#18549) by [lrazov](/forum/user/2532-lrazov "View lrazov's Profile")  Replied by *[lrazov](/forum/user/2532-lrazov "View lrazov's Profile")* on topic *[Re: States dropdown box are not shown](/forum/4-how-to/18515-states-dropdown-box-are-not-shown#18549 "Hi Support!  I came across an weird behavior of hikashop registration form. I use the same form on two pages: Checkout and Registration Form. On the Checkout page the States are not showing up, but on the Registration Form page they are. Please see a screenshot for details.  Any idea as to why this can be happening?  Thank you in advance.  &#91;file&#93;")*

I've tried in IE9 and Firefox and can't see any java-script errors while displaying the pages... unless I need to configure my browsers for it?

Here are the headers:

**Page where states work**:

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[ www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd](http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd)"&gt;

&lt;html xmlns="[ www.w3.org/1999/xhtml](http://www.w3.org/1999/xhtml)" xml:lang="en-gb" lang="en-gb"&gt;

&lt;head&gt;
&lt;script type="text/javascript"&gt;
var siteurl='/j16events2/';
var tmplurl='/j16events2/templates/ja_events/';
var isRTL = false;
&lt;/script&gt;

&lt;base href="http://localhost/j16events2/index.php/sign-up" /&gt;
&lt;meta http-equiv="content-type" content="text/html; charset=utf-8" /&gt;
&lt;meta name="robots" content="index, follow" /&gt;
&lt;meta name="keywords" content="" /&gt;

&lt;meta name="rights" content="" /&gt;
&lt;meta name="language" content="en-GB" /&gt;
&lt;meta name="generator" content="Joomla! 1.6 - Open Source Content Management" /&gt;
&lt;title&gt;Sign Up or Sign In&lt;/title&gt;
&lt;link rel="stylesheet" href="/j16events2/t3-assets/css06fdc.css?v=47" type="text/css" /&gt;
&lt;script type="text/javascript" src="/j16events2/t3-assets/js11fbe.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
&lt;!--
var hikashop=Array();
hikashop=Array();
hikashop=Array();
//--&gt;
&lt;!--

hikashop = Array('name','username','email','password','password2');
hikashop = Array('Please enter a value for the field name','Please enter a value for the field username','Please enter a value for the field email','Please enter a value for the field password','Please enter a value for the field password2');
hikashop = 'Passwords do not match';
hikashop = 'Please enter a valid e-mail address';
hikashop = Array('address_firstname','address_lastname','address_street','address_city','address_post_code','address_telephone','gender','yearofbirth');
hikashop = Array('Please enter a value for the field First name','Please enter a value for the field Last name','Please enter a value for the field Street','Please enter a value for the field City','Please enter a value for the field Post code','Please enter a value for the field Telephone','Please enter a value for the field Gender','Please enter a value for the field Year of Birth');
hikashop = 'Please enter a valid phone number';
//--&gt;
&lt;!--

function optionValueIndexOf(options,value) {
for (var i=0;i&lt;options.length;i++) {
if (options*.value == value) {
return i;
}
}
return -1;
}
function changeState(newvalue){
var defaultValInput = document.getElementById('state\_default\_value');
var defaultVal = '';
var namekey = false;
if(defaultValInput){
defaultVal = defaultValInput.value;
namekey = document.getElementById('state\_namekey').value;
}
if(namekey){
try{
new Ajax('/j16events2/index.php/sign-up/checkout/state/tmpl-component?field\_type=address&amp;field\_namekey=address\_state&amp;namekey='+newvalue, { method: 'get', onComplete: function(result) { old = window.document.getElementById('state\_dropdown'); if(old){ old.innerHTML = result;if(namekey) {var stateSelect = document.getElementById(namekey); if(stateSelect &amp;&amp; optionValueIndexOf(stateSelect.options, defaultVal) &gt;= 0) stateSelect.value=defaultVal;}}}}).request();
}catch(err){
new Request({url:'/j16events2/index.php/sign-up/checkout/state/tmpl-component?field\_type=address&amp;field\_namekey=address\_state&amp;namekey='+newvalue, method: 'get', onComplete: function(result) { old = window.document.getElementById('state\_dropdown'); if(old){ old.innerHTML = result;if(namekey) {var stateSelect = document.getElementById(namekey); if(stateSelect &amp;&amp; optionValueIndexOf(stateSelect.options, defaultVal) &gt;= 0) stateSelect.value=defaultVal;}}}}).send();
}
}
}
window.addEvent('domready', function(){ changeState(document.getElementById('address\_country').value); });

//--&gt;
function keepAlive() { var myAjax = new Request({method: "get", url: "index.php"}).send();} window.addEvent("domready", function(){ keepAlive.periodical(840000); });
&lt;/script&gt;

&lt;link href="/j16events2/plugins/system/jat3/jat3/base-themes/default/images/favicon.ico" rel="shortcut icon" type="image/x-icon" /&gt;

&lt;!--\[if IE 7.0\]&gt;
&lt;style&gt;
.clearfix { display: inline-block; } /\* IE7xhtml\*/
&lt;/style&gt;
&lt;!\[endif\]--&gt;
&lt;style type="text/css"&gt;
\#ja-mainnav .main-inner2 {width: 74%;}
&lt;/style&gt;

&lt;!-- width for left, right banner --&gt;
&lt;script type="text/javascript"&gt;
window.addEvent ('load', function () {
var w = $('ja-wrapper').offsetWidth;
if ($('ja-container') &amp;&amp; $('ja-container').getElement('.main')) w -= $('ja-container').getElement('.main').offsetWidth;
w /= 2;
if ($('ja-left-banner')) $('ja-left-banner').setStyle ('width', w);
if ($('ja-right-banner')) $('ja-right-banner').setStyle ('width', w);
//height for top-banner
if ($('ja-header') &amp;&amp; $('ja-top-banner')) $('ja-top-banner').setStyle ('height', $('ja-header').offsetHeight);
});
&lt;/script&gt;
&lt;style type="text/css"&gt;

/\*dynamic css\*/
body.bd .main {width: 960px;}
body.bd #ja-wrapper {min-width: 960px;}
&lt;/style&gt;&lt;/head&gt;

**Page where states don't work:**

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[ www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd](http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd)"&gt;

&lt;html xmlns="[ www.w3.org/1999/xhtml](http://www.w3.org/1999/xhtml)" xml:lang="en-gb" lang="en-gb"&gt;

&lt;head&gt;
&lt;script type="text/javascript"&gt;
var siteurl='/j16events2/';
var tmplurl='/j16events2/templates/ja\_events/';
var isRTL = false;
&lt;/script&gt;

&lt;base href="http://localhost/j16events2/index.php/hikashop" /&gt;
&lt;meta http-equiv="content-type" content="text/html; charset=utf-8" /&gt;
&lt;meta name="robots" content="index, follow" /&gt;
&lt;meta name="keywords" content="" /&gt;

&lt;meta name="rights" content="" /&gt;
&lt;meta name="language" content="en-GB" /&gt;
&lt;meta name="generator" content="Joomla! 1.6 - Open Source Content Management" /&gt;
&lt;title&gt;Hikashop&lt;/title&gt;
&lt;link rel="stylesheet" href="/j16events2/t3-assets/css06fdc.css?v=47" type="text/css" /&gt;
&lt;style type="text/css"&gt;

\#hikashop\_category\_information\_menu\_602 div.hikashop\_subcontainer {
background:#FFFFFF;
}
\#hikashop\_category\_information\_menu\_602 .hikashop\_rtop \*,#hikashop\_category\_information\_menu\_602 .hikashop\_rbottom \*{
background:#FFFFFF;
}

\#hikashop\_category\_information\_menu\_602 div.hikashop\_subcontainer {
text-align:center;
}
\#hikashop\_category\_information\_menu\_602 div.hikashop\_container {
text-align:center;
}

\#hikashop\_category\_information\_menu\_602 div.hikashop\_container {
margin:10px 10px;
}
\#hikashop\_category\_information\_menu\_602 div.hikashop\_category,#hikashop\_category\_information\_menu\_602 div.hikashop\_product{
float:left;
width:100%;
}

\#hikashop\_category\_information\_menu\_602 .hikashop\_subcontainer {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-khtml-border-radius: 5px;
border-radius: 5px;
}

&lt;/style&gt;
&lt;script type="text/javascript" src="/j16events2/t3-assets/js11fbe.js"&gt;&lt;/script&gt;

&lt;script type="text/javascript"&gt;
&lt;!--

function hikashopModifyQuantity(id,obj,add,form){
if(add){
add='&amp;add=1';
}else{
add='';
}
if(obj){
qty=parseInt(obj.value);
}else{
qty=1;
}
if(form){
var varform = eval('document.'+form);
if(varform){
varform.submit();
}
}else{
try{
new Ajax('/j16events2/index.php/hikashop/product/updatecart/tmpl-component?product\_id='+id+'&amp;quantity='+qty+add+'&amp;Itemid=602&amp;return\_url=aHR0cDovL2xvY2FsaG9zdC9qMTZldmVudHMyL2luZGV4LnBocC9oaWthc2hvcA%3D%3D', { method: 'get', onComplete: function(result) { var hikaModule = window.document.getElementById('hikashop\_cart\_module'); if(hikaModule) hikaModule.innerHTML = result;window.location = 'http://localhost/j16events2/index.php/hikashop';}}).request();
}catch(err){
new Request({url:'/j16events2/index.php/hikashop/product/updatecart/tmpl-component?product\_id='+id+'&amp;quantity='+qty+add+'&amp;Itemid=602&amp;return\_url=aHR0cDovL2xvY2FsaG9zdC9qMTZldmVudHMyL2luZGV4LnBocC9oaWthc2hvcA%3D%3D', method: 'get', onComplete: function(result) { var hikaModule = window.document.getElementById('hikashop\_cart\_module'); if(hikaModule) hikaModule.innerHTML = result;window.location = 'http://localhost/j16events2/index.php/hikashop';}}).send();
}
}
return false;
}

//--&gt;
&lt;!--
function hikashopCheckCoupon(id){
var el = document.getElementById(id);
if(el){
if(el.value==''){
el.className = 'hikashop\_red\_border';
return false;
}
el.form.submit();
}
return false;
}
//--&gt;
&lt;!--
var hikashop=Array();
hikashop=Array();
hikashop=Array();
//--&gt;
&lt;!--

hikashop = Array('name','username','email','password','password2');
hikashop = Array('Please enter a value for the field name','Please enter a value for the field username','Please enter a value for the field email','Please enter a value for the field password','Please enter a value for the field password2');
hikashop = 'Passwords do not match';
hikashop = 'Please enter a valid e-mail address';
hikashop = Array('address\_firstname','address\_lastname','address\_street','address\_city','address\_post\_code','address\_telephone','gender','yearofbirth');
hikashop = Array('Please enter a value for the field First name','Please enter a value for the field Last name','Please enter a value for the field Street','Please enter a value for the field City','Please enter a value for the field Post code','Please enter a value for the field Telephone','Please enter a value for the field Gender','Please enter a value for the field Year of Birth');
hikashop = 'Please enter a valid phone number';
//--&gt;
&lt;!--

function moveOnMax(field,nextFieldID){
if(field.value.length &gt;= field.maxLength){
document.getElementById(nextFieldID).focus();
}
}
window.addEvent('domready', function(){var mySlide\_paypal\_2 = new Fx.Slide('hikashop\_credit\_card\_paypal\_2');
var hikashop\_last\_opened\_slide = mySlide\_paypal\_2;
$('radio\_paypal\_2').addEvent('click', function(e){
hikashop\_last\_opened\_slide.toggle();
mySlide\_paypal\_2.toggle();
hikashop\_last\_opened\_slide = mySlide\_paypal\_2;
}); });
var ccHikaErrors = new Array ()
ccHikaErrors \[3\] = 'Credit card number is invalid';
ccHikaErrors \[5\] = 'Credit card expired';

//--&gt;
window.addEvent('domready', function() {
$$('.hasTip').each(function(el) {
var title = el.get('title');
if (title) {
var parts = title.split('::', 2);
el.store('tip:title', parts\[0\]);
el.store('tip:text', parts\[1\]);
}
});
var JTooltips = new Tips($$('.hasTip'), { maxTitleChars: 50, fixed: false});
});
&lt;!--

hikashop = Array('name','username','email','password','password2');
hikashop = Array('Please enter a value for the field name','Please enter a value for the field username','Please enter a value for the field email','Please enter a value for the field password','Please enter a value for the field password2');
hikashop = 'Passwords do not match';
hikashop = 'Please enter a valid e-mail address';
hikashop = 'Please enter a valid phone number';
//--&gt;
&lt;!--

function optionValueIndexOf(options,value) {
for (var i=0;i&lt;options.length;i++) {
if (options*.value == value) {
return i;
}
}
return -1;
}
function changeState(newvalue){
var defaultValInput = document.getElementById('state\_default\_value');
var defaultVal = '';
var namekey = false;
if(defaultValInput){
defaultVal = defaultValInput.value;
namekey = document.getElementById('state\_namekey').value;
}
if(namekey){
try{
new Ajax('/j16events2/index.php/hikashop/checkout/state/tmpl-component?field\_type=address&amp;field\_namekey=address\_state&amp;namekey='+newvalue, { method: 'get', onComplete: function(result) { old = window.document.getElementById('state\_dropdown'); if(old){ old.innerHTML = result;if(namekey) {var stateSelect = document.getElementById(namekey); if(stateSelect &amp;&amp; optionValueIndexOf(stateSelect.options, defaultVal) &gt;= 0) stateSelect.value=defaultVal;}}}}).request();
}catch(err){
new Request({url:'/j16events2/index.php/hikashop/checkout/state/tmpl-component?field\_type=address&amp;field\_namekey=address\_state&amp;namekey='+newvalue, method: 'get', onComplete: function(result) { old = window.document.getElementById('state\_dropdown'); if(old){ old.innerHTML = result;if(namekey) {var stateSelect = document.getElementById(namekey); if(stateSelect &amp;&amp; optionValueIndexOf(stateSelect.options, defaultVal) &gt;= 0) stateSelect.value=defaultVal;}}}}).send();
}
}
}
window.addEvent('domready', function(){ changeState(document.getElementById('address\_country').value); });

//--&gt;

&lt;/script&gt;

&lt;link href="/j16events2/plugins/system/jat3/jat3/base-themes/default/images/favicon.ico" rel="shortcut icon" type="image/x-icon" /&gt;

&lt;!--\[if IE 7.0\]&gt;
&lt;style&gt;
.clearfix { display: inline-block; } /\* IE7xhtml\*/
&lt;/style&gt;
&lt;!\[endif\]--&gt;
&lt;style type="text/css"&gt;
\#ja-mainnav .main-inner2 {width: 74%;}
&lt;/style&gt;

&lt;!-- width for left, right banner --&gt;
&lt;script type="text/javascript"&gt;
window.addEvent ('load', function () {
var w = $('ja-wrapper').offsetWidth;
if ($('ja-container') &amp;&amp; $('ja-container').getElement('.main')) w -= $('ja-container').getElement('.main').offsetWidth;
w /= 2;
if ($('ja-left-banner')) $('ja-left-banner').setStyle ('width', w);
if ($('ja-right-banner')) $('ja-right-banner').setStyle ('width', w);
//height for top-banner
if ($('ja-header') &amp;&amp; $('ja-top-banner')) $('ja-top-banner').setStyle ('height', $('ja-header').offsetHeight);
});

&lt;/script&gt;
&lt;style type="text/css"&gt;

/\*dynamic css\*/
body.bd .main {width: 960px;}
body.bd #ja-wrapper {min-width: 960px;}
&lt;/style&gt;&lt;/head&gt;**

Last edit: 15 years 4 months ago by [lrazov](/forum/user/2532-lrazov "View lrazov's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE4NTE1LXN0YXRlcy1kcm9wZG93bi1ib3gtYXJlLW5vdC1zaG93bj90bXBsPW1hcmtkb3du) 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: 86320
- Thank you received: 14279
-
-

15 years 4 months ago [\#18550](#18550) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: States dropdown box are not shown](/forum/4-how-to/18515-states-dropdown-box-are-not-shown#18550 "Hi Support!  I came across an weird behavior of hikashop registration form. I use the same form on two pages: Checkout and Registration Form. On the Checkout page the States are not showing up, but on the Registration Form page they are. Please see a screenshot for details.  Any idea as to why this can be happening?  Thank you in advance.  &#91;file&#93;")*

It seems that you have a problem with the joomla 1.6 js cache like in that thread: [ www.hikashop.com/fr/support/forum/5-supp...de-ventes.html#18151](http://www.hikashop.com/fr/support/forum/5-support-en-francais-french-support-/18122-affichage-des-conditions-generales-de-ventes.html#18151)
Please try to deactivate the joomla cache (in the configuration and in the cache plugin) and try again.

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

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

Less More

- Posts: 112
- Thank you received: 0
-
-

15 years 4 months ago [\#18553](#18553) by [lrazov](/forum/user/2532-lrazov "View lrazov's Profile")  Replied by *[lrazov](/forum/user/2532-lrazov "View lrazov's Profile")* on topic *[Re: States dropdown box are not shown](/forum/4-how-to/18515-states-dropdown-box-are-not-shown#18553 "Hi Support!  I came across an weird behavior of hikashop registration form. I use the same form on two pages: Checkout and Registration Form. On the Checkout page the States are not showing up, but on the Registration Form page they are. Please see a screenshot for details.  Any idea as to why this can be happening?  Thank you in advance.  &#91;file&#93;")*

Both Joomla cache and the plugin cache were off.

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

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

Less More

- Posts: 112
- Thank you received: 0
-
-

15 years 4 months ago [\#18554](#18554) by [lrazov](/forum/user/2532-lrazov "View lrazov's Profile")  Replied by *[lrazov](/forum/user/2532-lrazov "View lrazov's Profile")* on topic *[Re: States dropdown box are not shown](/forum/4-how-to/18515-states-dropdown-box-are-not-shown#18554 "Hi Support!  I came across an weird behavior of hikashop registration form. I use the same form on two pages: Checkout and Registration Form. On the Checkout page the States are not showing up, but on the Registration Form page they are. Please see a screenshot for details.  Any idea as to why this can be happening?  Thank you in advance.  &#91;file&#93;")*

I have modified the changeState js function to alert 2 messages out. When I open the Sign Up page, the 2 alerts are being called. When I go onto Checkout page, no alerts are called at all. This tells me that the changeState js function is being called at all.

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

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

Less More

- Posts: 112
- Thank you received: 0
-
-

15 years 4 months ago [\#18555](#18555) by [lrazov](/forum/user/2532-lrazov "View lrazov's Profile")  Replied by *[lrazov](/forum/user/2532-lrazov "View lrazov's Profile")* on topic *[Re: States dropdown box are not shown](/forum/4-how-to/18515-states-dropdown-box-are-not-shown#18555 "Hi Support!  I came across an weird behavior of hikashop registration form. I use the same form on two pages: Checkout and Registration Form. On the Checkout page the States are not showing up, but on the Registration Form page they are. Please see a screenshot for details.  Any idea as to why this can be happening?  Thank you in advance.  &#91;file&#93;")*

Did more testing - when one country is enabled hence one country in the Country dropdpwn box, the States dropdown box doesn't show up, when I enabled one more country and changed the value in the country dropdown, the States dropdown box appeared. As soon as I disable the second country so that there is only one country in the box, the States disappear. AS I said before this only happens on checkout page.

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

15 years 4 months ago [\#18556](#18556) by [Webguy](/forum/user/2887-webguy "View Webguy's Profile")  Replied by *[Webguy](/forum/user/2887-webguy "View Webguy's Profile")* on topic *[Re: States dropdown box are not shown](/forum/4-how-to/18515-states-dropdown-box-are-not-shown#18556 "Hi Support!  I came across an weird behavior of hikashop registration form. I use the same form on two pages: Checkout and Registration Form. On the Checkout page the States are not showing up, but on the Registration Form page they are. Please see a screenshot for details.  Any idea as to why this can be happening?  Thank you in advance.  &#91;file&#93;")*

I have this exact same problem, we ONLY want to allow shipping to one country, I have disabled all other countries except Australia, I have checked that the states for Australia are published, but no drop down box appears on checkout when you wish to add a billing address etc.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE4NTE1LXN0YXRlcy1kcm9wZG93bi1ib3gtYXJlLW5vdC1zaG93bj90bXBsPW1hcmtkb3du) 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: 86320
- Thank you received: 14279
-
-

15 years 4 months ago [\#18560](#18560) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: States dropdown box are not shown](/forum/4-how-to/18515-states-dropdown-box-are-not-shown#18560 "Hi Support!  I came across an weird behavior of hikashop registration form. I use the same form on two pages: Checkout and Registration Form. On the Checkout page the States are not showing up, but on the Registration Form page they are. Please see a screenshot for details.  Any idea as to why this can be happening?  Thank you in advance.  &#91;file&#93;")*

Did you change the default country and the default state in the custom fields address_country and address_state ? Because if that's not the same country as the one you have published, it might create such problem...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE4NTE1LXN0YXRlcy1kcm9wZG93bi1ib3gtYXJlLW5vdC1zaG93bj90bXBsPW1hcmtkb3du) 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: 86320
- Thank you received: 14279
-
-

15 years 4 months ago [\#18561](#18561) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: States dropdown box are not shown](/forum/4-how-to/18515-states-dropdown-box-are-not-shown#18561 "Hi Support!  I came across an weird behavior of hikashop registration form. I use the same form on two pages: Checkout and Registration Form. On the Checkout page the States are not showing up, but on the Registration Form page they are. Please see a screenshot for details.  Any idea as to why this can be happening?  Thank you in advance.  &#91;file&#93;")*

By the way, custom fields are to be found in the menu Display-&gt;Custom fields.

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

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

Less More

- Posts: 112
- Thank you received: 0
-
-

15 years 4 months ago [\#18581](#18581) by [lrazov](/forum/user/2532-lrazov "View lrazov's Profile")  Replied by *[lrazov](/forum/user/2532-lrazov "View lrazov's Profile")* on topic *[Re: States dropdown box are not shown](/forum/4-how-to/18515-states-dropdown-box-are-not-shown#18581 "Hi Support!  I came across an weird behavior of hikashop registration form. I use the same form on two pages: Checkout and Registration Form. On the Checkout page the States are not showing up, but on the Registration Form page they are. Please see a screenshot for details.  Any idea as to why this can be happening?  Thank you in advance.  &#91;file&#93;")*

Yes, the default country is set to Australia (that's the only country I have enabled) and the state is set to Victoria.

Please remember the States box works on one page and doesn't work on another.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE4NTE1LXN0YXRlcy1kcm9wZG93bi1ib3gtYXJlLW5vdC1zaG93bj90bXBsPW1hcmtkb3du) 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: 86320
- Thank you received: 14279
-
-

15 years 4 months ago [\#18592](#18592) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: States dropdown box are not shown](/forum/4-how-to/18515-states-dropdown-box-are-not-shown#18592 "Hi Support!  I came across an weird behavior of hikashop registration form. I use the same form on two pages: Checkout and Registration Form. On the Checkout page the States are not showing up, but on the Registration Form page they are. Please see a screenshot for details.  Any idea as to why this can be happening?  Thank you in advance.  &#91;file&#93;")*

Please try to switch to the default template and see if that works. If so that it must be related to the template, else, it comes from something else. Probably a system plugin.

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

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

Less More

- Posts: 112
- Thank you received: 0
-
-

15 years 4 months ago [\#18602](#18602) by [lrazov](/forum/user/2532-lrazov "View lrazov's Profile")  Replied by *[lrazov](/forum/user/2532-lrazov "View lrazov's Profile")* on topic *[Re: States dropdown box are not shown](/forum/4-how-to/18515-states-dropdown-box-are-not-shown#18602 "Hi Support!  I came across an weird behavior of hikashop registration form. I use the same form on two pages: Checkout and Registration Form. On the Checkout page the States are not showing up, but on the Registration Form page they are. Please see a screenshot for details.  Any idea as to why this can be happening?  Thank you in advance.  &#91;file&#93;")*

I tried in default template - the issue persists.

Is there a way to modify the code so that the states box is populated statically, I mean not using javascript?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE4NTE1LXN0YXRlcy1kcm9wZG93bi1ib3gtYXJlLW5vdC1zaG93bj90bXBsPW1hcmtkb3du) 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: 86320
- Thank you received: 14279
-
-

15 years 4 months ago [\#18609](#18609) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: States dropdown box are not shown](/forum/4-how-to/18515-states-dropdown-box-are-not-shown#18609 "Hi Support!  I came across an weird behavior of hikashop registration form. I use the same form on two pages: Checkout and Registration Form. On the Checkout page the States are not showing up, but on the Registration Form page they are. Please see a screenshot for details.  Any idea as to why this can be happening?  Thank you in advance.  &#91;file&#93;")*

You can try to change the code:
echo $this-&gt;fieldsClass-&gt;display($oneExtraField,$this-&gt;$type-&gt;$fieldName,'data');
by:
echo $this-&gt;fieldsClass-&gt;display($oneExtraField,$this-&gt;$type-&gt;$fieldName,'data',false,'',true);
in the file custom_fields of the view user via the menu Display-&gt;Views.
That should deactivate the state field javascript and display it statically.

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

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

Less More

- Posts: 112
- Thank you received: 0
-
-

15 years 4 months ago [\#18699](#18699) by [lrazov](/forum/user/2532-lrazov "View lrazov's Profile")  Replied by *[lrazov](/forum/user/2532-lrazov "View lrazov's Profile")* on topic *[Re: States dropdown box are not shown](/forum/4-how-to/18515-states-dropdown-box-are-not-shown#18699 "Hi Support!  I came across an weird behavior of hikashop registration form. I use the same form on two pages: Checkout and Registration Form. On the Checkout page the States are not showing up, but on the Registration Form page they are. Please see a screenshot for details.  Any idea as to why this can be happening?  Thank you in advance.  &#91;file&#93;")*

Thank you for the code.

I've tried changing it as per your suggestion. Now, I can see the drop down box, but it's empty, on both pages.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE4NTE1LXN0YXRlcy1kcm9wZG93bi1ib3gtYXJlLW5vdC1zaG93bj90bXBsPW1hcmtkb3du) 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: 86320
- Thank you received: 14279
-
-

15 years 4 months ago [\#18718](#18718) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: States dropdown box are not shown](/forum/4-how-to/18515-states-dropdown-box-are-not-shown#18718 "Hi Support!  I came across an weird behavior of hikashop registration form. I use the same form on two pages: Checkout and Registration Form. On the Checkout page the States are not showing up, but on the Registration Form page they are. Please see a screenshot for details.  Any idea as to why this can be happening?  Thank you in advance.  &#91;file&#93;")*

What do you mean by "it's empty" ?

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

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

Less More

- Posts: 112
- Thank you received: 0
-
-

15 years 4 months ago [\#18721](#18721) by [lrazov](/forum/user/2532-lrazov "View lrazov's Profile")  Replied by *[lrazov](/forum/user/2532-lrazov "View lrazov's Profile")* on topic *[Re: States dropdown box are not shown](/forum/4-how-to/18515-states-dropdown-box-are-not-shown#18721 "Hi Support!  I came across an weird behavior of hikashop registration form. I use the same form on two pages: Checkout and Registration Form. On the Checkout page the States are not showing up, but on the Registration Form page they are. Please see a screenshot for details.  Any idea as to why this can be happening?  Thank you in advance.  &#91;file&#93;")*

Sorry, the states drop down box is empty - no values in the drop down box, pls see the screenshot attached.

####  *This attachment is hidden for guests.
Please log in or register to see it.*

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE4NTE1LXN0YXRlcy1kcm9wZG93bi1ib3gtYXJlLW5vdC1zaG93bj90bXBsPW1hcmtkb3du) 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: 86320
- Thank you received: 14279
-
-

15 years 4 months ago [\#18736](#18736) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: States dropdown box are not shown](/forum/4-how-to/18515-states-dropdown-box-are-not-shown#18736 "Hi Support!  I came across an weird behavior of hikashop registration form. I use the same form on two pages: Checkout and Registration Form. On the Checkout page the States are not showing up, but on the Registration Form page they are. Please see a screenshot for details.  Any idea as to why this can be happening?  Thank you in advance.  &#91;file&#93;")*

Mmm. I'm running out of ideas there. Would you be able to put your website online and give us an access to your back end so that we can look at your settings and see the problem directly ?

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

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

[](#top)
