Exemple #1
0
 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');
 }
Exemple #2
0
 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);
 }
Exemple #3
0
 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);
 }
Exemple #4
0
 function __construct()
 {
     parent::__construct();
 }
Exemple #5
0
 /**
  * constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->set('suffix', 'shipping');
 }
Exemple #6
0
 function __construct()
 {
     JTable::addIncludePath(JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_k2store' . DS . 'tables');
     parent::__construct();
 }
Exemple #7
0
 function __construct($config = array())
 {
     parent::__construct($config);
 }