我工作的那家商店卖书桌。我们也卖钢笔。
如果你买了一张书桌,我想免费送你一支钢笔。任何你添加到你的篮子里的笔都需要付费。
目前,我有一个购物篮价格规则,说明如下:
CONDITIONS:
If an item is found in the cart with All of these conditions true:
Category is 3 (desk category)
Apply percent of product price discount: 100%
ACTIONS:
If All of these conditions are true:
SKU is one of pen1, pen2, pen3, etc...不过,我只想要购物篮里的一件免费商品。我几乎尝试了我能想到的所有条件组合,但简单的事实是Magento没有XOR或“只运行此操作一次”条件。
我甚至尝试设置了三个相同的价格规则,每支笔一个,并将“停止进一步的规则处理”设置为“是”。每个规则仍然轮流处理。
最接近的情况是添加了一个条件,即
If total quantity is 1 for a subselection of items in cart matching ANY of these conditions:
SKU is one of pen1, pen2, pen3此条件允许篮子中有一支空闲的笔,但如果将第二支笔添加到篮子中,则完全取消折扣。
你能改进这个规则吗?
发布于 2013-05-02 22:35:35
它不是完美的,但我有一些适合我的东西。
我正在为每个可用笔添加一个规则。每条规则都有一个排除条款,说明
If an item is NOT FOUND in the cart with ANY of these conditions true:
SKU is one of: pen1, pen2, pen3它需要一些尝试,而且对于任何真正复杂的促销来说都太复杂了,但它适用于简短、简单的促销。经过大量的研究,我诚实地认为这是在Magento中做这件事的最佳方式。
https://stackoverflow.com/questions/15360091
复制相似问题