我有一项人们按月付费的订阅服务,因此我设置了一个具有重复配置文件的“虚拟产品”。同时,我想拥有它,这样他们就可以添加不同的一次性产品。为实现这一点,我尝试创建一个包含所有不同一次性产品的“捆绑产品”,并将“虚拟产品”添加到该“捆绑产品”。
但是,当我去结账时,它说“标称商品只能单独购买。要继续,请从报价中删除其他项目。”我如何允许人们同时订阅服务和购买产品?
注意:我使用 Paypal Website Payment Pro 作为我的商家帐户。
最佳答案
这是来自 Magento 代码的注释:
/** * Temporary workaround for purchase process: it is too dangerous to purchase more than one nominal item * or a mixture of nominal and non-nominal items, although technically possible. * * The problem is that currently it is implemented as sequential submission of nominal items and order, by one click. * It makes logically impossible to make the process of the purchase failsafe. * Proper solution is to submit items one by one with customer confirmation each time. */
实际上你可以删除下面的代码:
if ($item->isNominal() && $this->hasItems() || $this->hasNominalItems()) {
Mage::throwException(Mage::helper('sales')->__('Nominal item can be purchased standalone only. To proceed please remove other items from the quote.'));
}
Magento 仍然处理多个标称产品,但是,您使用它需要您自担风险。
关于magento - 经常性配置文件和捆绑项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3320877/