📌  相关文章
📜  将商品添加到购物车 codeigniter - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:54.645000             🧑  作者: Mango

代码示例1
$data = array(
        'id'      => 'sku_123ABC',
        'qty'     => 1,
        'price'   => 39.95,
        'name'    => 'T-Shirt',
        'options' => array('Size' => 'L', 'Color' => 'Red')
);

$this->cart->insert($data);