摘要: 我们其实参照的是后台创建订单的代码位于:app/code/core/Mage/Adminhtml/Model/Sales/Order/Create.php主要代码: if (empty($info['action']) || !empty($info['configured'])) { $item- 阅读全文
posted @ 2021-04-14 14:41 ec04 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 1、向购物车中添加产品 $params = array(); $product = Mage::getModel('catalog/product')->load($productid); $params['qty'] = 1; $cart = Mage::getSingleton('checkou 阅读全文
posted @ 2021-04-14 14:18 ec04 阅读(49) 评论(0) 推荐(0) 编辑
摘要: <?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package i 阅读全文
posted @ 2021-04-14 14:09 ec04 阅读(85) 评论(0) 推荐(0) 编辑