Exemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
     require_once JPATH_SITE . DS . 'components' . DS . 'com_onepage' . DS . 'helpers' . DS . 'config.php';
     $enabled = OPCconfig::getValue('xmlexport_config', 'xml_general_enable', 0, false);
     if (empty($enabled)) {
         die('XML Export not enabled');
     }
     $this->enabled = $enabled;
 }
Exemplo n.º 2
0
 /**
  * Construct the cart
  *
  * @access public
  * @author Max Milbers
  */
 public function __construct()
 {
     parent::__construct();
     if (!defined('JPATH_OPC')) {
         define('JPATH_OPC', JPATH_SITE . DS . 'components' . DS . 'com_onepage');
     }
     if (!class_exists('VirtueMartCart')) {
         require JPATH_VM_SITE . DS . 'helpers' . DS . 'cart.php';
     }
     if (!class_exists('calculationHelper')) {
         require JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'calculationh.php';
     }
 }