João Costa
João Costa

Reputation: 519

Remove option new address from checkout billing and shipping information

I'm trying to remove option add new address from checkout billing and shipping information from magento onepage checkout Also, would like to remove "change address" anchor from sidebar on checkout page. Any tips on how to accomplish? My customers are only able to change address via email request, and require approval from administrators.

Upvotes: 0

Views: 4154

Answers (1)

Suman Singh
Suman Singh

Reputation: 1377

To remove option add new address from checkout billing and shipping information from magento onepage checkout,

copy Abstract.php file from app\code\core\Mage\Checkout\Block\Onepage\Abstract.php to our local folder app\code\local\Mage\Checkout\Block\Onepage\Abstract.php and go to getAddressesHtmlSelect($type) method and comment below line:

$select->addOption('', Mage::helper('checkout')->__('New Address'));

To remove "change address" anchor from sidebar on checkout page, comment or remove below code

<span class="changelink"> <span class="separator">|</span> <a href="#billing" onclick="checkout.changeSection('opc-billing'); return false;"><?php echo $this->__('Change') ?></a></span>

from the below files:

app/design/frontend/YOUR_THEME_NAME/YOUR_TEMPLATE_NAME/template/checkout/onepage/progress/billing.phtml

app/design/frontend/YOUR_THEME_NAME/YOUR_TEMPLATE_NAME/template/checkout/onepage/progress/shipping.phtml

If you not able to find the file than you can copy them in your YOUR_THEME_NAME/YOUR_TEMPLATE_NAME from the base/default

Upvotes: 4

Related Questions