Preselect "Ship to this address" in the billing section of checkout

Last modified by Andrej on Thu, June 24, 2010 17:09
Source|Old Revisions  

This is an old revision of the document!


Open “app/design/frontend/<yourtheme>/<yourtheme>/template/checkout/onepage/billing.phtml” and add before the line

<form id=”co-billing-form” action=”“>

the following lines:

<?php $session = Mage::getSingleton(’core/session’); if (intval($session→getPreselectedAddressOption()) !== 1) {

  $session->setPreselectedAddressOption('1');
  $this->getQuote()->getShippingAddress()->setSameAsBilling(true);

} ?>




 

Magento 2 GitHub Repository

Magento Job Board - Some sort of tag line goes here

Latest Posts| View all Jobs