- Posts: 112
- Thank you received: 0
Ship To/Bill To addresses
15 years 2 months ago #20927
by lrazov
Ship To/Bill To addresses was created by lrazov
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.
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.
15 years 2 months ago #20935
by nicolas
Replied by nicolas on topic Re: Ship To/Bill To addresses
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.
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.170 seconds