function __construct($config = array()) { parent::__construct($config); // print_r(JRequest::get('post')); exit; // Register Extra tasks $this->registerTask('add', 'display'); $this->registerTask('edit', 'display'); $this->registerTask('apply', 'save'); }
public function __construct($config = array()) { parent::__construct($config); $this->tax = new K2StoreTax(); //language $language = JFactory::getLanguage(); /* Set the base directory for the language */ $base_dir = JPATH_SITE; /* Load the language. IMPORTANT Becase we use ajax to load cart */ $language->load('com_k2store', $base_dir, $language->getTag(), true); }
function __construct() { parent::__construct(); JFactory::getDocument()->setCharset('utf-8'); $this->params = JComponentHelper::getParams($this->option); // $this->defaultShippingMethod = $this->params->get('defaultShippingMethod', '1'); // create the order object $this->_order = JTable::getInstance('Orders', 'Table'); //initialise tax class $this->tax = new K2StoreTax(); //initialise the session object $this->session = JFactory::getSession(); //language $language = JFactory::getLanguage(); /* Set the base directory for the language */ $base_dir = JPATH_SITE; /* Load the language. IMPORTANT Becase we use ajax to load cart */ $language->load($this->option, $base_dir, $language->getTag(), true); }
function __construct() { parent::__construct(); }
/** * constructor */ function __construct() { parent::__construct(); $this->set('suffix', 'shipping'); }
function __construct() { JTable::addIncludePath(JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_k2store' . DS . 'tables'); parent::__construct(); }
function __construct($config = array()) { parent::__construct($config); }