首页 文章

产品定制价格,显示在购物车中;未在“查看订单”页面中显示自定义价格 - 在多次装运结帐中

提问于
浏览
1

我陷入了困境, I want to add different categories of product in cart, For each product I have to bring additional 5$ for additional quantity. It may differ in different category.

For the above case I have successfully implemented. But issue is that the price is not showing as that in cart in review order while opting multiple address checkout option.

例如:产品1有两个产品1和产品1,对于额外的数量,我必须加上5美元/数量,不包括其原始价格,即;如果产品1的成本是10美元而我选择2个数量那么价格将是10 * 2($ 5 * 1)= 25 . 对于产品2,对于额外的数量,我必须加上10美元/数量,不包括其原价,即;如果产品1的成本是15并且我选择了2个数量那么价格将是$ 15 * 2($ 10 * 1)= 40 . 我已经实现了它 .

while proceeding with checkout option this price is showing fine. 但是当我选择多次发货时显示产品的原价,

无论如何,还要在审核订单中显示自定义价格 .

请帮我 .

提前致谢 .

1 回答

  • 1

    我找到了解决方案 . 显示在购物车中的产品的所有价格都在 Subtotal.php 中设置

    [magento root] /app/code/core/Mage/Sales/Model/Quote/Address/Total/Subtotal.php

    function _initItem($address, $item) 中,我使用自定义价格编辑产品的设定价格 .

    现在它的工作正常 .

    希望如果有人需要它会有帮助......

相关问题