Beispiel #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');
 }
Beispiel #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");
 }
Beispiel #3
0
 function __construct($config = array())
 {
     parent::__construct($config);
 }
Beispiel #4
0
 public function __construct()
 {
     parent::__construct();
 }
Beispiel #5
0
 public function __construct()
 {
     parent::__construct();
     $this->product_name_rules = '\\S';
 }
Beispiel #6
0
 function __construct()
 {
     parent::__construct();
     $this->product_name_rules = "\\.\\:\\-_ a-z0-9#Ññ'+´áéíóúÁÉÍÓÚ(),\\/";
 }
Beispiel #7
0
 function __construct()
 {
     parent::__construct();
     $this->product_name_rules = '\\d\\D';
     // hack CI的购物车不支持中文的问题
 }