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

#   Editing an address creates a new address

##

- **[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 2 months ago [\#23971](#23971) by [lrazov](/forum/user/2532-lrazov "View lrazov's Profile")  *[Editing an address creates a new address](/forum/4-how-to/23971-editing-an-address-creates-a-new-address#23971 "Hi Nicolas,  Just found another issue :-(  When I click on edit an address button, an Address Information forms opens up in a new window. After I edit details in the form and hit Ok button, the new window doesn't close but instead redirects to my page where I am at and I can see in the little window that a new address is being added. When I close the little window and refresh my main window the two addresses appear. It looks like the edit button works exactly the same as the add new address button.  Any suggestion?  I hope you can help me to resolve this soon.  Thank you.  P.S. I am using hikashop v 1.5.2 and at this stage don't plan to upgrade it.")* was created by *[lrazov](/forum/user/2532-lrazov "View lrazov's Profile")*

Hi Nicolas,

Just found another issue ![:-(](/media/kunena/emoticons/4.png ":-(")

When I click on edit an address button, an Address Information forms opens up in a new window. After I edit details in the form and hit Ok button, the new window doesn't close but instead redirects to my page where I am at and I can see in the little window that a new address is being added. When I close the little window and refresh my main window the two addresses appear. It looks like the edit button works exactly the same as the add new address button.

Any suggestion?

I hope you can help me to resolve this soon.

Thank you.

P.S. I am using hikashop v 1.5.2 and at this stage don't plan to upgrade it.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzOTcxLWVkaXRpbmctYW4tYWRkcmVzcy1jcmVhdGVzLWEtbmV3LWFkZHJlc3M/dG1wbD1tYXJrZG93bg==) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86291
- Thank you received: 14269
-
-

15 years 2 months ago [\#23986](#23986) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Editing an address creates a new address](/forum/4-how-to/23971-editing-an-address-creates-a-new-address#23986 "Hi Nicolas,  Just found another issue :-(  When I click on edit an address button, an Address Information forms opens up in a new window. After I edit details in the form and hit Ok button, the new window doesn't close but instead redirects to my page where I am at and I can see in the little window that a new address is being added. When I close the little window and refresh my main window the two addresses appear. It looks like the edit button works exactly the same as the add new address button.  Any suggestion?  I hope you can help me to resolve this soon.  Thank you.  P.S. I am using hikashop v 1.5.2 and at this stage don't plan to upgrade it.")*

Hi,

I think that it's a problem we fixed with the 1.5.3 release.
Are you talking about the edit of addresses on the addresses management interface ? Or on the checkout ?
In any ways, the solution will probably be to update, at least the address view's files via FTP.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzOTcxLWVkaXRpbmctYW4tYWRkcmVzcy1jcmVhdGVzLWEtbmV3LWFkZHJlc3M/dG1wbD1tYXJrZG93bg==) 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 2 months ago [\#24013](#24013) by [lrazov](/forum/user/2532-lrazov "View lrazov's Profile")  Replied by *[lrazov](/forum/user/2532-lrazov "View lrazov's Profile")* on topic *[Re: Editing an address creates a new address](/forum/4-how-to/23971-editing-an-address-creates-a-new-address#24013 "Hi Nicolas,  Just found another issue :-(  When I click on edit an address button, an Address Information forms opens up in a new window. After I edit details in the form and hit Ok button, the new window doesn't close but instead redirects to my page where I am at and I can see in the little window that a new address is being added. When I close the little window and refresh my main window the two addresses appear. It looks like the edit button works exactly the same as the add new address button.  Any suggestion?  I hope you can help me to resolve this soon.  Thank you.  P.S. I am using hikashop v 1.5.2 and at this stage don't plan to upgrade it.")*

Hi,

Yes, I was refering to editing on checkout.

Could you be more specific - which files I need to upgrade and if possible which lines? As I can't upgrade the whole tool due to a number of modifications performed.

Thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzOTcxLWVkaXRpbmctYW4tYWRkcmVzcy1jcmVhdGVzLWEtbmV3LWFkZHJlc3M/dG1wbD1tYXJrZG93bg==) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86291
- Thank you received: 14269
-
-

15 years 2 months ago [\#24025](#24025) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Editing an address creates a new address](/forum/4-how-to/23971-editing-an-address-creates-a-new-address#24025 "Hi Nicolas,  Just found another issue :-(  When I click on edit an address button, an Address Information forms opens up in a new window. After I edit details in the form and hit Ok button, the new window doesn't close but instead redirects to my page where I am at and I can see in the little window that a new address is being added. When I close the little window and refresh my main window the two addresses appear. It looks like the edit button works exactly the same as the add new address button.  Any suggestion?  I hope you can help me to resolve this soon.  Thank you.  P.S. I am using hikashop v 1.5.2 and at this stage don't plan to upgrade it.")*

We can't provide a list of each change in each file for each functionality between each release. There's just too many of them, and I can't guarantee you that it will work. It might break other things which are related to that modification, even indirectly. That's why we STRONGLY recommend to not edit directly the files but use the overrides in place to do your modifications...

The modifications we had to make for the addresses edition on the front end are in the files:
components/com_hikashop/controllers/address.php
administrator/components/com_hikashop/classes/address.php
components/com_hikashop/views/address/view.html.php
components/com_hikashop/views/address/tmpl/form.php
components/com_hikashop/views/address/tmpl/listing.php
components/com_hikashop/views/checkout/view.html.php
components/com_hikashop/views/checkout/tmpl/address.php
components/com_hikashop/views/checkout/tmpl/address_view.php

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzOTcxLWVkaXRpbmctYW4tYWRkcmVzcy1jcmVhdGVzLWEtbmV3LWFkZHJlc3M/dG1wbD1tYXJrZG93bg==) 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 2 months ago [\#24078](#24078) by [lrazov](/forum/user/2532-lrazov "View lrazov's Profile")  Replied by *[lrazov](/forum/user/2532-lrazov "View lrazov's Profile")* on topic *[Re: Editing an address creates a new address](/forum/4-how-to/23971-editing-an-address-creates-a-new-address#24078 "Hi Nicolas,  Just found another issue :-(  When I click on edit an address button, an Address Information forms opens up in a new window. After I edit details in the form and hit Ok button, the new window doesn't close but instead redirects to my page where I am at and I can see in the little window that a new address is being added. When I close the little window and refresh my main window the two addresses appear. It looks like the edit button works exactly the same as the add new address button.  Any suggestion?  I hope you can help me to resolve this soon.  Thank you.  P.S. I am using hikashop v 1.5.2 and at this stage don't plan to upgrade it.")*

Thank you for the list. I was able to update all the files listed and the editing/creating issue looks fixed. ![:-)](/media/kunena/emoticons/9.png ":-)")

However, what happens now is...

For example I have two addresses A &amp; B under both billing and shipping respectively. If I select A under billing and B under shipping, then edit B under shipping and click OK, the page refreshes and now B becomes selected under billing. I want it to stay A as it was selected before.

The other suggestion of yours of adding the code below in the address_view.php file doesn't help as the same thing happens - when I add a new shipping address, after save and page refresh, the new address appears selected under billing.

else{
continue;
}

How can I separate the two?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzOTcxLWVkaXRpbmctYW4tYWRkcmVzcy1jcmVhdGVzLWEtbmV3LWFkZHJlc3M/dG1wbD1tYXJrZG93bg==) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86291
- Thank you received: 14269
-
-

15 years 2 months ago [\#24112](#24112) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Editing an address creates a new address](/forum/4-how-to/23971-editing-an-address-creates-a-new-address#24112 "Hi Nicolas,  Just found another issue :-(  When I click on edit an address button, an Address Information forms opens up in a new window. After I edit details in the form and hit Ok button, the new window doesn't close but instead redirects to my page where I am at and I can see in the little window that a new address is being added. When I close the little window and refresh my main window the two addresses appear. It looks like the edit button works exactly the same as the add new address button.  Any suggestion?  I hope you can help me to resolve this soon.  Thank you.  P.S. I am using hikashop v 1.5.2 and at this stage don't plan to upgrade it.")*

It's indeed how it's done. It's not a problem of the way you updated, as there is the same behaviour on our demo website. We'll have to look at that more in depth before we can provide a solution.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzOTcxLWVkaXRpbmctYW4tYWRkcmVzcy1jcmVhdGVzLWEtbmV3LWFkZHJlc3M/dG1wbD1tYXJrZG93bg==) 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 2 months ago [\#24129](#24129) by [lrazov](/forum/user/2532-lrazov "View lrazov's Profile")  Replied by *[lrazov](/forum/user/2532-lrazov "View lrazov's Profile")* on topic *[Re: Editing an address creates a new address](/forum/4-how-to/23971-editing-an-address-creates-a-new-address#24129 "Hi Nicolas,  Just found another issue :-(  When I click on edit an address button, an Address Information forms opens up in a new window. After I edit details in the form and hit Ok button, the new window doesn't close but instead redirects to my page where I am at and I can see in the little window that a new address is being added. When I close the little window and refresh my main window the two addresses appear. It looks like the edit button works exactly the same as the add new address button.  Any suggestion?  I hope you can help me to resolve this soon.  Thank you.  P.S. I am using hikashop v 1.5.2 and at this stage don't plan to upgrade it.")*

It would be awesome if you could separate the two addresses types. Looking forward to updates. I need it ASAP ![:-)](/media/kunena/emoticons/9.png ":-)")

Cheers.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzOTcxLWVkaXRpbmctYW4tYWRkcmVzcy1jcmVhdGVzLWEtbmV3LWFkZHJlc3M/dG1wbD1tYXJrZG93bg==) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86291
- Thank you received: 14269
-
-

15 years 2 months ago [\#24429](#24429) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Editing an address creates a new address](/forum/4-how-to/23971-editing-an-address-creates-a-new-address#24429 "Hi Nicolas,  Just found another issue :-(  When I click on edit an address button, an Address Information forms opens up in a new window. After I edit details in the form and hit Ok button, the new window doesn't close but instead redirects to my page where I am at and I can see in the little window that a new address is being added. When I close the little window and refresh my main window the two addresses appear. It looks like the edit button works exactly the same as the add new address button.  Any suggestion?  I hope you can help me to resolve this soon.  Thank you.  P.S. I am using hikashop v 1.5.2 and at this stage don't plan to upgrade it.")*

Hi,

Here is a fix.

You need to replace the files components/com_hikashop/controllers/address.php and components/com_hikashop/views/address/tmpl/form.php by the files in the zip.

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzOTcxLWVkaXRpbmctYW4tYWRkcmVzcy1jcmVhdGVzLWEtbmV3LWFkZHJlc3M/dG1wbD1tYXJrZG93bg==) 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 1 month ago [\#24842](#24842) by [lrazov](/forum/user/2532-lrazov "View lrazov's Profile")  Replied by *[lrazov](/forum/user/2532-lrazov "View lrazov's Profile")* on topic *[Re: Editing an address creates a new address](/forum/4-how-to/23971-editing-an-address-creates-a-new-address#24842 "Hi Nicolas,  Just found another issue :-(  When I click on edit an address button, an Address Information forms opens up in a new window. After I edit details in the form and hit Ok button, the new window doesn't close but instead redirects to my page where I am at and I can see in the little window that a new address is being added. When I close the little window and refresh my main window the two addresses appear. It looks like the edit button works exactly the same as the add new address button.  Any suggestion?  I hope you can help me to resolve this soon.  Thank you.  P.S. I am using hikashop v 1.5.2 and at this stage don't plan to upgrade it.")*

Hi Nicolas,

First of all - Thank you for the fix!
Secondly - Sorry for taking time to reply.

I have replaced the files as per you instructions. However, I haven't noticed any difference - the system works exactly the same as it was before. When I create a new shipping address and after the page reloads, the new address is being selected under the billing addresses as well as under shipping.

You must've tested the fix in your system before giving it to me. How does it work for you?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzOTcxLWVkaXRpbmctYW4tYWRkcmVzcy1jcmVhdGVzLWEtbmV3LWFkZHJlc3M/dG1wbD1tYXJrZG93bg==) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86291
- Thank you received: 14269
-
-

15 years 1 month ago [\#24846](#24846) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Editing an address creates a new address](/forum/4-how-to/23971-editing-an-address-creates-a-new-address#24846 "Hi Nicolas,  Just found another issue :-(  When I click on edit an address button, an Address Information forms opens up in a new window. After I edit details in the form and hit Ok button, the new window doesn't close but instead redirects to my page where I am at and I can see in the little window that a new address is being added. When I close the little window and refresh my main window the two addresses appear. It looks like the edit button works exactly the same as the add new address button.  Any suggestion?  I hope you can help me to resolve this soon.  Thank you.  P.S. I am using hikashop v 1.5.2 and at this stage don't plan to upgrade it.")*

The problem I corrected was that the billing address was changed when the shipping address was changed.
I didn't see that it was about the new addresses. And indeed, I can see what you're talking about. When creating a new address it adds it for both.

We'll look at that.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzOTcxLWVkaXRpbmctYW4tYWRkcmVzcy1jcmVhdGVzLWEtbmV3LWFkZHJlc3M/dG1wbD1tYXJrZG93bg==) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86291
- Thank you received: 14269
-
-

15 years 1 month ago [\#25692](#25692) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Editing an address creates a new address](/forum/4-how-to/23971-editing-an-address-creates-a-new-address#25692 "Hi Nicolas,  Just found another issue :-(  When I click on edit an address button, an Address Information forms opens up in a new window. After I edit details in the form and hit Ok button, the new window doesn't close but instead redirects to my page where I am at and I can see in the little window that a new address is being added. When I close the little window and refresh my main window the two addresses appear. It looks like the edit button works exactly the same as the add new address button.  Any suggestion?  I hope you can help me to resolve this soon.  Thank you.  P.S. I am using hikashop v 1.5.2 and at this stage don't plan to upgrade it.")*

Hi,

Here is a zip with the files components/com_hikashop/controllers/address.php components/com_hikashop/views/checkout/address_view.php and components/com_hikashop/views/checkout/view.html.php
The modifications fixes that problem on our end.

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

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

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

[](#top)
