Dav*_*ani 0 oop e-commerce opencart
我正在使用硬编码解决方案在opencart网站上开发集成,用于根据高度宽度和数量以及其他一些隐藏值等输入计算产品成本.
所以
我正在尝试编辑购物车的添加操作,以管理此特定情况下的小计.
所以我在/catalog/controller/checkout/cart.php中找到了这个方法:
$this->cart->add($this->request->post['product_id'], $this->request->post['quantity'], $option);
Run Code Online (Sandbox Code Playgroud)
此操作在购物车控制器页面,索引和更新中都有,但是"添加"方法在哪里?谢谢