Thursday, 15 May 2014

Magento checkout : By default on page load set Billing Information as the active accordion -



Magento checkout : By default on page load set Billing Information as the active accordion -

on magento checkout page on load of page default active accordion "checkout method" want billing info active accordion on load.

i checked accordion.js file did not how alter on load of accordion.

please help me asap.

this magento's default checkout

you can via overriding modules first. reference file see below.

go to:

app/code/core/mage/checkout/block/onepage.php

change line

$stepcodes = array('billing', 'shipping', 'shipping_method', 'payment', 'review');

to whatever order desire

important note: if using magento 1.7 version, these step codes in

app/code/core/mage/checkout/block/onepage/abstract.php

protected function _getstepcodes() { homecoming array('login', 'billing', 'shipping', 'shipping_method', 'payment', 'review'); }

and alter per need.

i believe may need alter steps in javascript file

skin/frontend/base/default/js/opcheckout.js

it's improve create new js file in default/default.

you may require lot of js , template changes needed.

to test code first, go

app/code/core/mage/checkout/block/onepage/abstract.php

and alter function

protected function _getstepcodes() { //return array('login', 'billing', 'shipping', 'shipping_method', 'payment', 'review'); //default code commented homecoming array('login', 'shipping', 'billing', 'shipping_method', 'payment', 'review'); //this show shipping first , billing on next step }

magento magento-1.8

No comments:

Post a Comment