Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Separate billing/shipping addresses in magento?

Tags:

php

magento

One of customers contacted him to point out that he is not able to specify different billing and shipping addresses for his account. When he changes one address, the other automatically changes as well.

I logged into the Magento admin console to try and separate the addresses myself, but I didn’t find a way.

Any Idea!!!!

like image 909
Bhavesh Godhani Avatar asked Jan 02 '14 04:01

Bhavesh Godhani


1 Answers

I couldn’t fix the problem so I ended up just displaying a message to users. It only shows the message when they have one address in their address book.

To implement this fix using the default Magento theme, insert the code below in app/design/frontend/your-interface/your-theme/template/customer/address/edit.phtml

<?php if($this->isDefaultBilling() && $this->isDefaultShipping()): ?>
<ul>
    <li class="error-msg">Editing this address will update both your billing and shipping address. If you want to add an entirely new billing or shipping address click <a href="<?php echo $this->getBaseUrl();?>customer/address/new/" title="Create New Billing or Shipping Address">here</a>.</li>
</ul>
<?php endif; ?>

it's working..

like image 106
Bhavesh Godhani Avatar answered Sep 18 '22 12:09

Bhavesh Godhani