Magento: Get current active step in onepage checkout

magento

How can I get the active step in onepage checkout?

Thanks for help.

Best Answer

Active step section will have "active" class for it's LI tag.

It's done via the Accordion js class - method openSection (see js\varien\accordion.js). The Accordion itself is triggered by the Checkout js class - method gotoSection (file \skin\frontend\base\default\js\opcheckout.js).

Both Checkout and Accordion classes are instantiated in onepage.phtml template.

Related Topic