protected function _getStepCodes() { if (!Mage::helper('advancecheckout')->getHideShipping()) { return parent::_getStepCodes(); } return array_diff(parent::_getStepCodes(), array('shipping_method', 'shipping')); }
public function getActiveStep() { if (Mage::helper('skipstep1')->isSkipEnabled()) { return 'billing'; } else { return parent::getActiveStep(); } }
public function getActiveStep() { if (Mage::helper('ultcheck')->isUltcheckEnabled()) { return 'billing'; } else { return parent::getActiveStep(); } }
public function getSteps() { if (!Mage::getStoreConfig('carriers/wsaupsfreight/active')) { return parent::getSteps(); } $steps = array(); if (!$this->isCustomerLoggedIn()) { $steps['login'] = $this->getCheckout()->getStepData('login'); } if (Mage::helper('wsaupsfreight')->dontShowConwayFreight($this->getQuote()->getAllVisibleItems())) { $skipExtras = true; } else { $skipExtras = false; } $stepCodes = array('billing', 'shipping', 'shippingextra', 'shipping_method', 'payment', 'review'); foreach ($stepCodes as $step) { if ($skipExtras && $step == 'shippingextra') { continue; } $steps[$step] = $this->getCheckout()->getStepData($step); } return $steps; }
/** * Always skip 'login' step if module is enabled * - Override of Mage_Checkout_Block_Onepage::getActiveSteps() * * @return string */ public function getActiveStep() { return Mage::helper('forceguest')->isEnabled() ? 'billing' : parent::getActiveStep(); }
public function __construct() { parent::__construct(); }