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

#   hikashop 2.2.1 address edit popup problem

##

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

Less More

- Posts: 64
- Thank you received: 0
-
-

13 years 2 months ago [\#123420](#123420) by [irfanhanfi](/forum/user/23811-irfanhanfi "View irfanhanfi's Profile")  *[hikashop 2.2.1 address edit popup problem](/forum/25-install-update/861963-hikashop-2-2-1-address-edit-popup-problem#123420 "-- HikaShop version -- : 2.2.1 -- Joomla version -- : 3.0.4 Stable -- PHP version -- : 5.4.7 -- Browser(s) name and version -- : chrome 29.0.1547.66 -- Error-message(debug-mod must be tuned on) -- : Address edit popup does not populate correct state and country in drop down at back end. And at front problem is different, when we edit address it select the correct country and state but not of one which is selected.Like if there are more than one address if we select second one it populate state and country of first one.  Thanks, Irfan")* was created by *[irfanhanfi](/forum/user/23811-irfanhanfi "View irfanhanfi's Profile")*

-- HikaShop version -- : 2.2.1
-- Joomla version -- : 3.0.4 Stable
-- PHP version -- : 5.4.7
-- Browser(s) name and version -- : chrome 29.0.1547.66
-- Error-message(debug-mod must be tuned on) -- : Address edit popup does not populate correct state and country in drop down at back end. And at front problem is different, when we edit address it select the correct country and state but not of one which is selected.Like if there are more than one address if we select second one it populate state and country of first one.

Thanks,
Irfan
[ ![h4f948e8.JPG](/forum/attachment/12249) ](/forum/attachment/12249 "h4f948e8.JPG")

[ ![h26e7390.JPG](/forum/attachment/12250) ](/forum/attachment/12250 "h26e7390.JPG")

- [ ![h4f948e8.JPG](/forum/attachment/12249) ](/forum/attachment/12249 "h4f948e8.JPG") [ ](/forum/attachment/12249?download=1 "h4f948e8.JPG")
- [ ![h26e7390.JPG](/forum/attachment/12250) ](/forum/attachment/12250 "h26e7390.JPG") [ ](/forum/attachment/12250?download=1 "h26e7390.JPG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2MTk2My1oaWthc2hvcC0yLTItMS1hZGRyZXNzLWVkaXQtcG9wdXAtcHJvYmxlbT90bXBsPW1hcmtkb3du) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 2 months ago [\#123421](#123421) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[hikashop 2.2.1 address edit popup problem](/forum/25-install-update/861963-hikashop-2-2-1-address-edit-popup-problem#123421 "-- HikaShop version -- : 2.2.1 -- Joomla version -- : 3.0.4 Stable -- PHP version -- : 5.4.7 -- Browser(s) name and version -- : chrome 29.0.1547.66 -- Error-message(debug-mod must be tuned on) -- : Address edit popup does not populate correct state and country in drop down at back end. And at front problem is different, when we edit address it select the correct country and state but not of one which is selected.Like if there are more than one address if we select second one it populate state and country of first one.  Thanks, Irfan")*

Hi,

Please look at this post:
[ www.hikashop.com/forum/customers/861776-...possible.html#123326](http://www.hikashop.com/forum/customers/861776-address-change-on-account-page-not-possible.html#123326)

Regards,

---

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

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

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

Less More

- Posts: 64
- Thank you received: 0
-
-

13 years 2 months ago [\#123464](#123464) by [irfanhanfi](/forum/user/23811-irfanhanfi "View irfanhanfi's Profile")  Replied by *[irfanhanfi](/forum/user/23811-irfanhanfi "View irfanhanfi's Profile")* on topic *[hikashop 2.2.1 address edit popup problem](/forum/25-install-update/861963-hikashop-2-2-1-address-edit-popup-problem#123464 "-- HikaShop version -- : 2.2.1 -- Joomla version -- : 3.0.4 Stable -- PHP version -- : 5.4.7 -- Browser(s) name and version -- : chrome 29.0.1547.66 -- Error-message(debug-mod must be tuned on) -- : Address edit popup does not populate correct state and country in drop down at back end. And at front problem is different, when we edit address it select the correct country and state but not of one which is selected.Like if there are more than one address if we select second one it populate state and country of first one.  Thanks, Irfan")*

Thanks for the link.but that solution did not work for me.

I checked the file "administrator/components/com_hikashop/classes/field.php" which was mention in the link and found that changing the below code worked for me.But not sure where else will it affect.
Currently code is - Code:

foreach($field-&gt;field_value as $oneValue =&gt; $title){ if(isset($field-&gt;field_default) &amp;&amp; array_key_exists($field-&gt;field_default, $field-&gt;field_value)){ if($oneValue === $field-&gt;field_default){ $selected = (is_string($field-&gt;field_default) &amp;&amp; $oneValue === $field-&gt;field_default) &#124;&#124; is_array($field-&gt;field_default) &amp;&amp; in_array($oneValue,$field-&gt;field_default) ? 'selected="selected" ' : ''; }else{ $selected = ((int)$title-&gt;disabled &amp;&amp; !$admin) ? 'disabled="disabled" ' : ''; } }else{ $selected = ((int)$title-&gt;disabled &amp;&amp; !$admin) ? 'disabled="disabled" ' : ''; $selected .= ((is_numeric($value) &amp;&amp; is_numeric($oneValue) AND $oneValue == $value) &#124;&#124; (is_string($value) &amp;&amp; $oneValue === $value) &#124;&#124; is_array($value) &amp;&amp; in_array($oneValue,$value)) ? 'selected="selected" ' : ''; } $id = $this-&gt;prefix.$field-&gt;field_namekey.$this-&gt;suffix.'_'.$oneValue; $string .= '&lt;option value="'.$oneValue.'" id="'.$id.'" '.$selected.'&gt;'.$this-&gt;trans($title-&gt;value).'&lt;/option&gt;'; }

I have changed it to- Code:

foreach($field-&gt;field_value as $oneValue =&gt; $title){ $selected = ((int)$title-&gt;disabled &amp;&amp; !$admin) ? 'disabled="disabled" ' : ''; $selected .= ((is_numeric($value) &amp;&amp; is_numeric($oneValue) AND $oneValue == $value) &#124;&#124; (is_string($value) &amp;&amp; $oneValue === $value) &#124;&#124; is_array($value) &amp;&amp; in_array($oneValue,$value)) ? 'selected="selected" ' : ''; $id = $this-&gt;prefix.$field-&gt;field_namekey.$this-&gt;suffix.'_'.$oneValue; $string .= '&lt;option value="'.$oneValue.'" id="'.$id.'" '.$selected.'&gt;'.$this-&gt;trans($title-&gt;value).'&lt;/option&gt;'; }

Would be great if someone can tell me what is the appropriate replacement of the above code.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2MTk2My1oaWthc2hvcC0yLTItMS1hZGRyZXNzLWVkaXQtcG9wdXAtcHJvYmxlbT90bXBsPW1hcmtkb3du) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 2 months ago [\#123488](#123488) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[hikashop 2.2.1 address edit popup problem](/forum/25-install-update/861963-hikashop-2-2-1-address-edit-popup-problem#123488 "-- HikaShop version -- : 2.2.1 -- Joomla version -- : 3.0.4 Stable -- PHP version -- : 5.4.7 -- Browser(s) name and version -- : chrome 29.0.1547.66 -- Error-message(debug-mod must be tuned on) -- : Address edit popup does not populate correct state and country in drop down at back end. And at front problem is different, when we edit address it select the correct country and state but not of one which is selected.Like if there are more than one address if we select second one it populate state and country of first one.  Thanks, Irfan")*

Hi,

I don't understand your modification and why you did this.

Regards,

---

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

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

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

Less More

- Posts: 64
- Thank you received: 0
-
-

13 years 2 months ago [\#123514](#123514) by [irfanhanfi](/forum/user/23811-irfanhanfi "View irfanhanfi's Profile")  Replied by *[irfanhanfi](/forum/user/23811-irfanhanfi "View irfanhanfi's Profile")* on topic *[hikashop 2.2.1 address edit popup problem](/forum/25-install-update/861963-hikashop-2-2-1-address-edit-popup-problem#123514 "-- HikaShop version -- : 2.2.1 -- Joomla version -- : 3.0.4 Stable -- PHP version -- : 5.4.7 -- Browser(s) name and version -- : chrome 29.0.1547.66 -- Error-message(debug-mod must be tuned on) -- : Address edit popup does not populate correct state and country in drop down at back end. And at front problem is different, when we edit address it select the correct country and state but not of one which is selected.Like if there are more than one address if we select second one it populate state and country of first one.  Thanks, Irfan")*

Actually I was comparing the file with previous hika version in which address functionality was working properly.I replaced the code with working one.

Or Could you please help me what should be the solution for my problem?

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2MTk2My1oaWthc2hvcC0yLTItMS1hZGRyZXNzLWVkaXQtcG9wdXAtcHJvYmxlbT90bXBsPW1hcmtkb3du) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 2 months ago [\#123538](#123538) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[hikashop 2.2.1 address edit popup problem](/forum/25-install-update/861963-hikashop-2-2-1-address-edit-popup-problem#123538 "-- HikaShop version -- : 2.2.1 -- Joomla version -- : 3.0.4 Stable -- PHP version -- : 5.4.7 -- Browser(s) name and version -- : chrome 29.0.1547.66 -- Error-message(debug-mod must be tuned on) -- : Address edit popup does not populate correct state and country in drop down at back end. And at front problem is different, when we edit address it select the correct country and state but not of one which is selected.Like if there are more than one address if we select second one it populate state and country of first one.  Thanks, Irfan")*

Hi,

Okay, I understand ![:)](/media/kunena/emoticons/3.png ":)")
Please use this code instead: Code:

$isValue = !empty($value) &amp;&amp; isset($field-&gt;field_value[$value]); foreach($field-&gt;field_value as $oneValue =&gt; $title) { if(isset($field-&gt;field_default) &amp;&amp; !$isValue) { if(array_key_exists($field-&gt;field_default, $field-&gt;field_value)){ if($oneValue === $field-&gt;field_default){ $selected = (is_string($field-&gt;field_default) &amp;&amp; $oneValue === $field-&gt;field_default) &#124;&#124; is_array($field-&gt;field_default) &amp;&amp; in_array($oneValue,$field-&gt;field_default) ? 'selected="selected" ' : ''; }else{ $selected = ((int)$title-&gt;disabled &amp;&amp; !$admin) ? 'disabled="disabled" ' : ''; } } } else { $selected = ((int)$title-&gt;disabled &amp;&amp; !$admin) ? 'disabled="disabled" ' : ''; $selected .= ((is_numeric($value) &amp;&amp; is_numeric($oneValue) &amp;&amp; $oneValue == $value) &#124;&#124; (is_string($value) &amp;&amp; $oneValue === $value) &#124;&#124; is_array($value) &amp;&amp; in_array($oneValue,$value)) ? 'selected="selected" ' : ''; } $id = $this-&gt;prefix.$field-&gt;field_namekey.$this-&gt;suffix.'_'.$oneValue; $string .= '&lt;option value="'.$oneValue.'" id="'.$id.'" '.$selected.'&gt;'.$this-&gt;trans($title-&gt;value).'&lt;/option&gt;'; }

Regards,

---

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

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

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

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

Less More

- Posts: 64
- Thank you received: 0
-
-

13 years 2 months ago [\#123553](#123553) by [irfanhanfi](/forum/user/23811-irfanhanfi "View irfanhanfi's Profile")  Replied by *[irfanhanfi](/forum/user/23811-irfanhanfi "View irfanhanfi's Profile")* on topic *[hikashop 2.2.1 address edit popup problem](/forum/25-install-update/861963-hikashop-2-2-1-address-edit-popup-problem#123553 "-- HikaShop version -- : 2.2.1 -- Joomla version -- : 3.0.4 Stable -- PHP version -- : 5.4.7 -- Browser(s) name and version -- : chrome 29.0.1547.66 -- Error-message(debug-mod must be tuned on) -- : Address edit popup does not populate correct state and country in drop down at back end. And at front problem is different, when we edit address it select the correct country and state but not of one which is selected.Like if there are more than one address if we select second one it populate state and country of first one.  Thanks, Irfan")*

It works,thank you so much.

Also I would like to ask one more question.
Is there any reason to use Code:

window.top.hikashop.submitBox

Istead of Code:

window.parent.hikashop.submitBox

?

The reason of asking is, I am displaying site within iframe and there is an error Code:

Cannot call method 'submitBox' of undefined

.

Sorry ,if it does not make sense.

Thanks &amp; Regards,

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2MTk2My1oaWthc2hvcC0yLTItMS1hZGRyZXNzLWVkaXQtcG9wdXAtcHJvYmxlbT90bXBsPW1hcmtkb3du) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 2 months ago [\#123564](#123564) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[hikashop 2.2.1 address edit popup problem](/forum/25-install-update/861963-hikashop-2-2-1-address-edit-popup-problem#123564 "-- HikaShop version -- : 2.2.1 -- Joomla version -- : 3.0.4 Stable -- PHP version -- : 5.4.7 -- Browser(s) name and version -- : chrome 29.0.1547.66 -- Error-message(debug-mod must be tuned on) -- : Address edit popup does not populate correct state and country in drop down at back end. And at front problem is different, when we edit address it select the correct country and state but not of one which is selected.Like if there are more than one address if we select second one it populate state and country of first one.  Thanks, Irfan")*

Hi,

I have to ask you what you are talking about exactly because there is no such "submitBox" in the user address edition in the backend (and no more in the front-end).

Regards,

---

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

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

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

Less More

- Posts: 64
- Thank you received: 0
-
-

13 years 2 months ago [\#123567](#123567) by [irfanhanfi](/forum/user/23811-irfanhanfi "View irfanhanfi's Profile")  Replied by *[irfanhanfi](/forum/user/23811-irfanhanfi "View irfanhanfi's Profile")* on topic *[hikashop 2.2.1 address edit popup problem](/forum/25-install-update/861963-hikashop-2-2-1-address-edit-popup-problem#123567 "-- HikaShop version -- : 2.2.1 -- Joomla version -- : 3.0.4 Stable -- PHP version -- : 5.4.7 -- Browser(s) name and version -- : chrome 29.0.1547.66 -- Error-message(debug-mod must be tuned on) -- : Address edit popup does not populate correct state and country in drop down at back end. And at front problem is different, when we edit address it select the correct country and state but not of one which is selected.Like if there are more than one address if we select second one it populate state and country of first one.  Thanks, Irfan")*

The code I am referring to is in this file -
**administrator\\components\\com\_hikashop\\views\\order\\view.html.php**
line no. - 1154 Code:

if($closePopup) { hikashop_loadJslib('mootools'); $js = 'window.addEvent("domready", function(){window.top.hikashop.submitBox('.$data.');});'; $doc = JFactory::getDocument(); $doc-&gt;addScriptDeclaration($js); }

Also in **administrator\\components\\com\_hikashop\\views\\product\\view.html.php**

Please let me know if this is not clear.

Regards,

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2MTk2My1oaWthc2hvcC0yLTItMS1hZGRyZXNzLWVkaXQtcG9wdXAtcHJvYmxlbT90bXBsPW1hcmtkb3du) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 2 months ago [\#123586](#123586) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[hikashop 2.2.1 address edit popup problem](/forum/25-install-update/861963-hikashop-2-2-1-address-edit-popup-problem#123586 "-- HikaShop version -- : 2.2.1 -- Joomla version -- : 3.0.4 Stable -- PHP version -- : 5.4.7 -- Browser(s) name and version -- : chrome 29.0.1547.66 -- Error-message(debug-mod must be tuned on) -- : Address edit popup does not populate correct state and country in drop down at back end. And at front problem is different, when we edit address it select the correct country and state but not of one which is selected.Like if there are more than one address if we select second one it populate state and country of first one.  Thanks, Irfan")*

Hi,

Ok, the first is for the customer popup in the order and the second for a product selection (generic use).
I didn't understand the context modification, I though you were still on the address edition.

I know that there is an old reason for this "window.top" but we can hope that is reason is no more.
So we can see to change it to "window.parent".

Regards,

---

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

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

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

Less More

- Posts: 64
- Thank you received: 0
-
-

13 years 2 months ago [\#123588](#123588) by [irfanhanfi](/forum/user/23811-irfanhanfi "View irfanhanfi's Profile")  Replied by *[irfanhanfi](/forum/user/23811-irfanhanfi "View irfanhanfi's Profile")* on topic *[hikashop 2.2.1 address edit popup problem](/forum/25-install-update/861963-hikashop-2-2-1-address-edit-popup-problem#123588 "-- HikaShop version -- : 2.2.1 -- Joomla version -- : 3.0.4 Stable -- PHP version -- : 5.4.7 -- Browser(s) name and version -- : chrome 29.0.1547.66 -- Error-message(debug-mod must be tuned on) -- : Address edit popup does not populate correct state and country in drop down at back end. And at front problem is different, when we edit address it select the correct country and state but not of one which is selected.Like if there are more than one address if we select second one it populate state and country of first one.  Thanks, Irfan")*

Thanks for your quick help.

I hope these changes will be in the next update of hika.

Regards,

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

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