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

#   Duplicate Address form when adding New

##

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

Less More

- Posts: 45
- Thank you received: 0
-
-

15 years 9 months ago [\#7095](#7095) by [spoOx](/forum/user/964-spoox "View spoOx's Profile")  *[Duplicate Address form when adding New](/forum/3-bug-report/7095-duplicate-address-form-when-adding-new#7095 "Hi,  I see a duplicate address form when adding new address on checkout. I tried to replicate it on demo site but doesn't happen there. I am using Joomla 1.6 and demo is on 1.5 so don't know whether that is an issue or whether issue is from my side. below is a picture of what I'm seeing when I click New to add new address:")* was created by *[spoOx](/forum/user/964-spoox "View spoOx's Profile")*

Hi,

I see a duplicate address form when adding new address on checkout. I tried to replicate it on demo site but doesn't happen there. I am using Joomla 1.6 and demo is on 1.5 so don't know whether that is an issue or whether issue is from my side. below is a picture of what I'm seeing when I click New to add new address:

[ ![&#91;img](http://img713.imageshack.us/img713/4189/duplicateadd.jpg) ](http://img713.imageshack.us/img713/4189/duplicateadd.jpg "&#91;img")

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

15 years 9 months ago [\#7096](#7096) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Duplicate Address form when adding New](/forum/3-bug-report/7095-duplicate-address-form-when-adding-new#7096 "Hi,  I see a duplicate address form when adding new address on checkout. I tried to replicate it on demo site but doesn't happen there. I am using Joomla 1.6 and demo is on 1.5 so don't know whether that is an issue or whether issue is from my side. below is a picture of what I'm seeing when I click New to add new address:")*

It could be because of your template which tries to override the modal box of joomla.
I recall that another user using a rock(something) had a similar problem.
Is that the case on your website ?

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

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

Less More

- Posts: 45
- Thank you received: 0
-
-

15 years 9 months ago [\#7097](#7097) by [spoOx](/forum/user/964-spoox "View spoOx's Profile")  Replied by *[spoOx](/forum/user/964-spoox "View spoOx's Profile")* on topic *[Re: Duplicate Address form when adding New](/forum/3-bug-report/7095-duplicate-address-form-when-adding-new#7097 "Hi,  I see a duplicate address form when adding new address on checkout. I tried to replicate it on demo site but doesn't happen there. I am using Joomla 1.6 and demo is on 1.5 so don't know whether that is an issue or whether issue is from my side. below is a picture of what I'm seeing when I click New to add new address:")*

I don't think that was the issue but the thread you are referring to did help me find the answer. the code for the NEW button was originally:

&lt;span id="hikashop\_checkout\_&lt;?php echo $this-&gt;type;?&gt;\_address\_new" class="hikashop\_checkout\_&lt;?php echo $this-&gt;type;?&gt;\_address\_new"&gt;
&lt;a **class="modal" id="hikashop\_checkout\_**&lt;?php echo $this-&gt;type;?&gt;\_address\_new\_link" rel="{handler: 'iframe', size: {x: 450, y: 480}}" href="&lt;?php echo hikashop::completeLink('address&amp;redirect=checkout&amp;task=add&amp;step='.$this-&gt;step,true);?&gt;" onclick="SqueezeBox.fromElement(this,{parse: 'rel'});return false;"&gt;
&lt;?php echo $this-&gt;cart-&gt;displayButton(JText::\_('NEW'),'new',$this-&gt;params,'','var link = document.getElementById(\\'hikashop\_checkout\_'. $this-&gt;type.'\_address\_new\_link\\'); if(link) SqueezeBox.fromElement(link,{parse: \\'rel\\'});return false;'); ?&gt;
&lt;/a&gt;
&lt;/span&gt;

I had a look at the Edit button to try and find out what was different and I noticed it had no id= but rather class= whatever with a space in between and then the content from id so I changed the new button to be the same and it works now:

&lt;span id="hikashop\_checkout\_&lt;?php echo $this-&gt;type;?&gt;\_address\_new" class="hikashop\_checkout\_&lt;?php echo $this-&gt;type;?&gt;\_address\_new"&gt;
&lt;a **class="modal hikashop\_checkout\_**&lt;?php echo $this-&gt;type;?&gt;\_address\_new\_link" rel="{handler: 'iframe', size: {x: 450, y: 480}}" href="&lt;?php echo hikashop::completeLink('address&amp;redirect=checkout&amp;task=add&amp;step='.$this-&gt;step,true);?&gt;" onclick="SqueezeBox.fromElement(this,{parse: 'rel'});return false;"&gt;
&lt;?php echo $this-&gt;cart-&gt;displayButton(JText::\_('NEW'),'new',$this-&gt;params,'','var link = document.getElementById(\\'hikashop\_checkout\_'. $this-&gt;type.'\_address\_new\_link\\'); if(link) SqueezeBox.fromElement(link,{parse: \\'rel\\'});return false;'); ?&gt;
&lt;/a&gt;
&lt;/span&gt;

I hope what i've done will not break anything else?

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

15 years 9 months ago [\#7127](#7127) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Duplicate Address form when adding New](/forum/3-bug-report/7095-duplicate-address-form-when-adding-new#7127 "Hi,  I see a duplicate address form when adding new address on checkout. I tried to replicate it on demo site but doesn't happen there. I am using Joomla 1.6 and demo is on 1.5 so don't know whether that is an issue or whether issue is from my side. below is a picture of what I'm seeing when I click New to add new address:")*

We'll remove the class="modal" from that link in next release as we were able to reproduce the problem on our end with joomla 1.6

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

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