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

#   Ship To/Bill To addresses

##

- **[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 3 months ago [\#20927](#20927) by [lrazov](/forum/user/2532-lrazov "View lrazov's Profile")  *[Ship To/Bill To addresses](/forum/4-how-to/20927-ship-to-bill-to-addresses#20927 "Hi,  I'm wondering if you could help me with the following.  In my shop I need to be able to differentiate between bill to and ship to addresses.  During the checkout process at the address step a user can specify a different address for ship to address. How can I make that when a new ship to address is added it only appears under ship to addresses and not under both: bill to and ship to.  So, what I'd like to be able to do is when a new ship to address is being added it only appears under ship to addresses, and not under bill to. And visa versa, when a new bill to address is added, it only appers under bill to.  I was thinking of using custom field as radio buttons with two options. However, I don't want users to see them, I want this to be hidden.  Any suggestions would be much appreciated.")* was created by *[lrazov](/forum/user/2532-lrazov "View lrazov's Profile")*

Hi,

I'm wondering if you could help me with the following.

In my shop I need to be able to differentiate between bill to and ship to addresses.

During the checkout process at the address step a user can specify a different address for ship to address. How can I make that when a new ship to address is added it only appears under ship to addresses and not under both: bill to and ship to.

So, what I'd like to be able to do is when a new ship to address is being added it only appears under ship to addresses, and not under bill to. And visa versa, when a new bill to address is added, it only appers under bill to.

I was thinking of using custom field as radio buttons with two options. However, I don't want users to see them, I want this to be hidden.

Any suggestions would be much appreciated.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIwOTI3LXNoaXAtdG9iaWxsLXRvLWFkZHJlc3Nlcz90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86315
- Thank you received: 14276
-
-

15 years 3 months ago [\#20935](#20935) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Ship To/Bill To addresses](/forum/4-how-to/20927-ship-to-bill-to-addresses#20935 "Hi,  I'm wondering if you could help me with the following.  In my shop I need to be able to differentiate between bill to and ship to addresses.  During the checkout process at the address step a user can specify a different address for ship to address. How can I make that when a new ship to address is added it only appears under ship to addresses and not under both: bill to and ship to.  So, what I'd like to be able to do is when a new ship to address is being added it only appears under ship to addresses, and not under bill to. And visa versa, when a new bill to address is added, it only appers under bill to.  I was thinking of using custom field as radio buttons with two options. However, I don't want users to see them, I want this to be hidden.  Any suggestions would be much appreciated.")*

Hi,

The easiest is to just skip addresses not selected on that view. Try to add the code:
else{
continue;
}

after the code:
if(($this-&gt;$varname==$address-&gt;address_id)&#124;&#124;(empty($address-&gt;address_id) &amp;&amp; !$done)){
$checked = 'checked="checked"';
$done = true;
}

in the file address_view of the view checkout via the menu Display-&gt;Views for your template.

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

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

[](#top)
