Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Page 3 of 3
bug in Account (logged in) - billing /shipping addresses
 
sandrapthomas
Jr. Member
 
Total Posts:  2
Joined:  2012-04-09
 

creativedhyani’s idea is good. It works in most cases, but it didn’t work in my case. I have multiple addresses, but billing and shipping address were same.

So I modified this code as ...

Under <ol> add following
<?php

$billing = Mage::getSingleton('customer/session')->getCustomer()->getDefaultBilling();
$shipping = Mage::getSingleton('customer/session')->getCustomer()->getDefaultShipping();
if($billing==$shipping)
{
?>
<li class="item"><?php echo $this->__('Your default billing address and shipping address are same. %s to create new address.','<a href="'.$this->getAddAddressUrl().'">'.$this->__('Click here').'</a>') ?></li>
<?php
}
?>

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top
Page 3 of 3