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