* obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <*****@*****.**> * @copyright 2007-2011 PrestaShop SA * @version Release: $Revision: 6823 $ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ ControllerFactory::includeController('ParentOrderController'); class OrderControllerCore extends ParentOrderController { public $step; public function init() { parent::init(); $this->step = (int) Tools::getValue('step'); if (!$this->nbProducts) { $this->step = -1; } } public function preProcess() { global $isVirtualCart, $orderTotal; parent::preProcess();
public static function getController($className, $auth = false, $ssl = false) { ControllerFactory::includeController($className); return new $className($auth, $ssl); }
public static function getController($className, $folder = '') { ControllerFactory::includeController($className, $folder); $class = $folder . '\\' . $className; return new $class(); }