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

#   Payment and delevery adress

##

- **[Nowweb](/forum/user/14680-nowweb "View Nowweb's Profile")**
- [![Nowweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar14680.png)](/forum/user/14680-nowweb "View Nowweb's Profile") Topic Author
- [ Offline](/forum/user/14680-nowweb)

Less More

- Posts: 145
- Thank you received: 1
-
-
- [](http://www.nowweb.dk)
-

11 years 4 months ago [\#204992](#204992) by [Nowweb](/forum/user/14680-nowweb "View Nowweb's Profile")  *[Payment and delevery adress](/forum/27-checkout/877571-payment-and-delevery-adress#204992 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.10  HI there  How come, when i change my deleveryadress is come in the payment section to?  How do i do so it will not do that?  Best regards Brian")* was created by *[Nowweb](/forum/user/14680-nowweb "View Nowweb's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.3.10

HI there

How come, when i change my deleveryadress is come in the payment section to?

How do i do so it will not do that?

Best regards
Brian

---

Best regards
Brian

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 4 months ago [\#204999](#204999) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Payment and delevery adress](/forum/27-checkout/877571-payment-and-delevery-adress#204999 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.10  HI there  How come, when i change my deleveryadress is come in the payment section to?  How do i do so it will not do that?  Best regards Brian")*

Hi,

Yes indeed, when adding an address in the billing or in the shipping address part it adds the address to the other address type.
This is the way the system is working. To change this behavior it will require custom code, or you can potentially play with the address display settings and some css rules.

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

- **[Nowweb](/forum/user/14680-nowweb "View Nowweb's Profile")**
- [![Nowweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar14680.png)](/forum/user/14680-nowweb "View Nowweb's Profile") Topic Author
- [ Offline](/forum/user/14680-nowweb)

Less More

- Posts: 145
- Thank you received: 1
-
-
- [](http://www.nowweb.dk)
-

11 years 4 months ago [\#205106](#205106) by [Nowweb](/forum/user/14680-nowweb "View Nowweb's Profile")  Replied by *[Nowweb](/forum/user/14680-nowweb "View Nowweb's Profile")* on topic *[Payment and delevery adress](/forum/27-checkout/877571-payment-and-delevery-adress#205106 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.10  HI there  How come, when i change my deleveryadress is come in the payment section to?  How do i do so it will not do that?  Best regards Brian")*

Thanks Xavier

I get to dig into the code.

---

Best regards
Brian

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

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

Less More

- Posts: 250
- Thank you received: 7
- [](http://www.estm.co.uk)
-

11 years 4 months ago [\#205881](#205881) by [iedwards](/forum/user/12400-iedwards "View iedwards's Profile")  Replied by *[iedwards](/forum/user/12400-iedwards "View iedwards's Profile")* on topic *[Payment and delevery adress](/forum/27-checkout/877571-payment-and-delevery-adress#205881 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.10  HI there  How come, when i change my deleveryadress is come in the payment section to?  How do i do so it will not do that?  Best regards Brian")*

I've just run up against this one. I want my customers to be able to add alternative delivery addresses but they shouldn't be offered that as an alternative billing address. I don't think I've ever come across a shopping cart that offers alternative billing addresses, it's a security issue surely?

The way I expected it to work ...

- The billing address is the address the customer registered with and it should only be possible to change this by changing your registration.
- Optional delivery addresses can be added and selected at checkout.

How can this be done?

Thanks,

Ian

---

[ Ian Edwards Film Sound Recording](https://estm.co.uk)
[ Alveley Mining Heritage](https://alveleyminingheritage.org)
[ Mary Edwards-Porter - Author](https://www.mary-edwards-porter.co.uk)

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

Less More

- Posts: 86541
- Thank you received: 14304
-
-

11 years 4 months ago [\#205953](#205953) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Payment and delevery adress](/forum/27-checkout/877571-payment-and-delevery-adress#205953 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.10  HI there  How come, when i change my deleveryadress is come in the payment section to?  How do i do so it will not do that?  Best regards Brian")*

Hi,

I don't see why it would be a security issue.
Moving to another place and having a new billing address is a security issue ?
Or having two houses and changing the billing address based on where you want to be billed is a security issue ?

But why not. Edit the file "address_select" and add the code:
if($this-&gt;type=='billing') $this-&gt;addresses = array(reset($this-&gt;addresses));
before the first instance of the code:
foreach($this-&gt;addresses as $address) {
and that should do it if you're using the "list" address selector (as it is by default).

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

- **[Nowweb](/forum/user/14680-nowweb "View Nowweb's Profile")**
- [![Nowweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar14680.png)](/forum/user/14680-nowweb "View Nowweb's Profile") Topic Author
- [ Offline](/forum/user/14680-nowweb)

Less More

- Posts: 145
- Thank you received: 1
-
-
- [](http://www.nowweb.dk)
-

11 years 4 months ago [\#206007](#206007) by [Nowweb](/forum/user/14680-nowweb "View Nowweb's Profile")  Replied by *[Nowweb](/forum/user/14680-nowweb "View Nowweb's Profile")* on topic *[Payment and delevery adress](/forum/27-checkout/877571-payment-and-delevery-adress#206007 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.10  HI there  How come, when i change my deleveryadress is come in the payment section to?  How do i do so it will not do that?  Best regards Brian")*

Will this code be in the next update of Hikashop?

---

Best regards
Brian

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

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

Less More

- Posts: 250
- Thank you received: 7
- [](http://www.estm.co.uk)
-

11 years 4 months ago [\#206012](#206012) by [iedwards](/forum/user/12400-iedwards "View iedwards's Profile")  Replied by *[iedwards](/forum/user/12400-iedwards "View iedwards's Profile")* on topic *[Payment and delevery adress](/forum/27-checkout/877571-payment-and-delevery-adress#206012 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.10  HI there  How come, when i change my deleveryadress is come in the payment section to?  How do i do so it will not do that?  Best regards Brian")*

Hi Nicolas,

It's generally considered a security risk if billing and delivery addresses are different, if someone got hold of your credit card details they could use your card and address but have goods delivered to themselves at another address. However there are circumstances where having a different delivery address is necessary, we have customers who order from their business, at one address, but request goods be delivered to a studio they are using.

Also the billing address has to be the same as your bank account address when paying by card, otherwise the bank security checks will fail, so it shouldn't be possible to randomly change the billing address.

If a customer moves address then they edit their account details and change their registered address.

I'll try the code you suggest, if that limits the billing address to just the registered address it will do what I need.

Thanks,

Ian

---

[ Ian Edwards Film Sound Recording](https://estm.co.uk)
[ Alveley Mining Heritage](https://alveleyminingheritage.org)
[ Mary Edwards-Porter - Author](https://www.mary-edwards-porter.co.uk)

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

- **[Nowweb](/forum/user/14680-nowweb "View Nowweb's Profile")**
- [![Nowweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar14680.png)](/forum/user/14680-nowweb "View Nowweb's Profile") Topic Author
- [ Offline](/forum/user/14680-nowweb)

Less More

- Posts: 145
- Thank you received: 1
-
-
- [](http://www.nowweb.dk)
-

11 years 4 months ago [\#206016](#206016) by [Nowweb](/forum/user/14680-nowweb "View Nowweb's Profile")  Replied by *[Nowweb](/forum/user/14680-nowweb "View Nowweb's Profile")* on topic *[Payment and delevery adress](/forum/27-checkout/877571-payment-and-delevery-adress#206016 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.10  HI there  How come, when i change my deleveryadress is come in the payment section to?  How do i do so it will not do that?  Best regards Brian")*

I have tryed this and it do not work.
Where is the code wrong?
It is in the file checkout / address_select.php

if($address_selector == 1) {
if(!empty($this-&gt;addresses)) {
if($this-&gt;type=='billing') $this-&gt;addresses = array(reset($this-&gt;addresses)); /*Added 2015 jun 24 */
foreach($this-&gt;addresses as $address) {
$checked = '';
if($address-&gt;address_id == $current)
$checked = ' checked="checked"';
if($config-&gt;get('auto_submit_methods', 1) &amp;&amp; empty($checked))
$checked = ' onclick="this.form.submit();return false;"';

---

Best regards
Brian

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

Less More

- Posts: 86541
- Thank you received: 14304
-
-

11 years 4 months ago [\#206030](#206030) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Payment and delevery adress](/forum/27-checkout/877571-payment-and-delevery-adress#206030 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.10  HI there  How come, when i change my deleveryadress is come in the payment section to?  How do i do so it will not do that?  Best regards Brian")*

Hi,

As it is a view override, you won't loose it when you update so it should not be a problem for you.

As I said in my previous message, the code to change is for when you're using the "list" address selector. If you use another selector (to be configured in the Checkout tab of the HikaShop configuration) you won't see the change. Also, you need to edit the view for the correct template you're using on your frontend.

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

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

Less More

- Posts: 250
- Thank you received: 7
- [](http://www.estm.co.uk)
-

11 years 4 months ago [\#206090](#206090) by [iedwards](/forum/user/12400-iedwards "View iedwards's Profile")  Replied by *[iedwards](/forum/user/12400-iedwards "View iedwards's Profile")* on topic *[Payment and delevery adress](/forum/27-checkout/877571-payment-and-delevery-adress#206090 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.10  HI there  How come, when i change my deleveryadress is come in the payment section to?  How do i do so it will not do that?  Best regards Brian")*

That code change didn't work for me either, using the list setting.

The nearest I can get to how I'd like it to work is by using the drop down list address selection and hiding the drop down for the billing address (using display:none) so the billing address can't be changed. It also means I don't get a "New" button under the billing address which would be confusing.

The only slight issue I have is that when I add a new address on the delivery side using the drop down I can save it, but it isn't selected, I have to go back into the drop down to select the address I've just entered. I can see customers thinking the address they've entered has just disappeared.

Ian

---

[ Ian Edwards Film Sound Recording](https://estm.co.uk)
[ Alveley Mining Heritage](https://alveleyminingheritage.org)
[ Mary Edwards-Porter - Author](https://www.mary-edwards-porter.co.uk)

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

- **[Nowweb](/forum/user/14680-nowweb "View Nowweb's Profile")**
- [![Nowweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar14680.png)](/forum/user/14680-nowweb "View Nowweb's Profile") Topic Author
- [ Offline](/forum/user/14680-nowweb)

Less More

- Posts: 145
- Thank you received: 1
-
-
- [](http://www.nowweb.dk)
-

11 years 4 months ago [\#206122](#206122) by [Nowweb](/forum/user/14680-nowweb "View Nowweb's Profile")  Replied by *[Nowweb](/forum/user/14680-nowweb "View Nowweb's Profile")* on topic *[Payment and delevery adress](/forum/27-checkout/877571-payment-and-delevery-adress#206122 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.10  HI there  How come, when i change my deleveryadress is come in the payment section to?  How do i do so it will not do that?  Best regards Brian")*

I am using the "List" setting, unforturnally is not doing the work.

---

Best regards
Brian

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

11 years 3 months ago [\#210323](#210323) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Payment and delevery adress](/forum/27-checkout/877571-payment-and-delevery-adress#210323 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.10  HI there  How come, when i change my deleveryadress is come in the payment section to?  How do i do so it will not do that?  Best regards Brian")*

Hi,

The Nicolas' patch should work.
Now if you don't explain what exactly "is not doing the work" means ; what is your result, etc ; it is more than difficult to understand and to propose you something else ; like forcing to display only the selected address and skip the others.
But for my point of view I don't understand the goal of such kind of patch because the user can still manage his addresses in his user control panel and define his default address (which will be selected by default for his new orders). So removing the selection of the billing address means that you force the users to go in the user control panel if he want to have a different billing address.

About the point

> Will this code be in the next update of Hikashop?

No, we can't add such kind of modification in the HikaShop core because it will generate issue for all other HikaShop users ; like explained just before.

Regards,

---

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

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

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