2

我有一家 Magento 商店,它使用运输区域方法来计算运费。

它有效,但有一个小问题,如果用户多次将不同颜色的颜色添加到他的购物车中,我无法为同一产品提供数量折扣。每次添加产品时,都将其视为单独的产品。例如,运送 1 件产品 x(不考虑颜色)的费用为 20 美元,运送 4 件产品 x(不考虑颜色)的费用为 50 美元(即 30 美元数量折扣...更多数量减少每单位成本)

现在,如果客户选择 4 个黑色表,则运费正确计算为 50 美元,但如果客户选择 1 个背面、1 个白色、1 个绿色和 1 个红色,则计算错误为 80 美元。

我该如何解决这个问题,因为 magento 应该考虑 4 种相同产品的数量,而不是 4 种不同的产品/

4

1 回答 1

0

I don't think this is achievable with Shopping Cart Rules, particularly if you want your delivery costs to be separate to the product prices (from an accounting point of view you may want to keep track on delivery).

Hence...

...you need to write your own shipping module.

Here is the tutorial I have found to be of the most use:

http://www.excellencemagentoblog.com/magento-create-custom-shipping-method

Included in the tutorial are lots of examples of how to iterate over the cart and apply custom rules.

A module may seem a lot of work, however, once you have something you will be able to do a better job of shipping, for the customer, the company book keeper and the bottom line.

于 2012-02-20T14:54:17.157 回答