By deafult selecting "Ship to this address" in billing section of checkout

Hi Guys,


In Magento, by default there is selecting "Ship to different address" in billing section. If you want to selecting "Ship to this address" by default then, you can done this by following way.. .

open the billing.phtml

path: app/design/frontend/themename/themename/template/checkout/onepage/billing.phtml
and put this before the form tag

$session = Mage::getSingleton('core/session');
if (intval($session->getPreselectedAddressOption()) !== 1)
{
$session->setPreselectedAddressOption('1');
$this->getQuote()->getShippingAddress()->setSameAsBilling(true);
}

In this way you make preselected "Ship to this address" in billing section of checkout.
without modifying in core file.

Cheers :)
Gaurav

Comments

Popular posts from this blog

Magento Reindexing problem - take too long time

Magento Navigation menu of CMS pages

Magento Admin login problem