Ship To/Bill To addresses

  • Posts: 112
  • Thank you received: 0
13 years 4 months ago #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.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
13 years 4 months ago #20935

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->$varname==$address->address_id)||(empty($address->address_id) && !$done)){
$checked = 'checked="checked"';
$done = true;
}

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

Please Log in or Create an account to join the conversation.

Time to create page: 0.047 seconds
Powered by Kunena Forum