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)

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

Cheers :)


Popular posts from this blog

Magento Reindexing problem - take too long time

Magento Navigation menu of CMS pages

Script for to remove the cache - Magento