Example #1
0
 public function destroy()
 {
     // Run the standard CI_Cart function
     parent::destroy();
     // Fire an event to tell external modules that the cart has been destroyed
     Events::trigger('cart_destroyed');
 }
Example #2
0
 public function __construct($params = array())
 {
     parent::__construct();
     $this->CI =& get_instance();
     if (!isset($this->_cart_contents['order_total'])) {
         $this->_cart_contents['order_total'] = 0;
     }
     if (!isset($this->_cart_contents['delivery'])) {
         $this->_cart_contents['delivery'] = 0;
     }
     if (!isset($this->_cart_contents['coupon'])) {
         $this->_cart_contents['coupon'] = $this->coupon_array;
     }
     log_message('info', "Cart Class Initialized");
 }
Example #3
0
 function __construct($config = array())
 {
     parent::__construct($config);
 }
Example #4
0
 public function __construct()
 {
     parent::__construct();
 }
Example #5
0
 public function __construct()
 {
     parent::__construct();
     $this->product_name_rules = '\\S';
 }
Example #6
0
 function __construct()
 {
     parent::__construct();
     $this->product_name_rules = "\\.\\:\\-_ a-z0-9#Ññ'+´áéíóúÁÉÍÓÚ(),\\/";
 }
Example #7
0
 function __construct()
 {
     parent::__construct();
     $this->product_name_rules = '\\d\\D';
     // hack CI的购物车不支持中文的问题
 }