在Magento中操纵多个购物车规则 [英] Manipulating multiple shopping cart rules in Magento

查看:121
本文介绍了在Magento中操纵多个购物车规则的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我上次在本文中遇到困难时,曾问过如何处理购物车规则.现在,我在购物车规则中添加了更多条件.

I have previously asked how to manipulate shopping cart rules when I had difficulty with it last time in this article. Now, I have added further conditions to my shopping cart rules.

为进一步说明,我有2条购物车规则(每5项商品可获得5%的折扣,每10项商品可获得10%的折扣),并且我添加了2条对应于每个购物车规则的yes/no属性.基本思路是这样的:

To further explain, I have 2 shopping cart rules (get 5% off for every 5 items and get 10% off for every 10 items) and I have added 2 yes/no attributes corresponding to each shopping cart rule. The basic idea's like this:

购物车规则1 =是/否属性1

Shopping Cart Rule 1 = Yes/No Attribute 1

购物车规则2 =是/否属性2

Shopping Cart Rule 2 = Yes/No Attribute 2

如果yes/no属性设置为yes,则应应用相应的购物车规则.要注意的是,如果我开始混合使用购物车规则,则只有5%的折扣适用.因此,如果我启用了规则1和规则2,则只有规则1才能正常工作,而当我购买10件商品时,规则2可以工作,但是如果我购买了更多商品,折扣就会消失.

If the yes/no attribute is set to yes, then the corresponding shopping cart rule should apply. The catch is, if I start mixing the cart rules, only the 5% discount applies properly. So if I enabled rule 1 and rule 2, only rule 1 would work properly rule 2 works when I buy 10 items but if I buy more, the discount disappears.

我不能百分百确定自己的条件是否合适,但这是我如何设置的想法:

I'm not 100% certain if my conditions are right but here's the idea of how I've set it:

购物车规则1:

Cart Rule 1:

如果是/否1为是并且是/否2为是并且数量> = 5并且数量<= 9,则应用购物车规则;如果是/否1为是并且是/否2为否,则应用购物车规则数量是> = 5

Apply cart rule if Yes/No 1 is Yes and Yes/No 2 is Yes and quantity >= 5 and quantity <= 9 or apply cart rule if Yes/No 1 is Yes and Yes/No 2 is No and quantity is >= 5

购物车规则2:

如果是/否2"是是"且数量> = 10,则应用购物车规则

Apply cart rule if Yes/No 2 is Yes and quantity >= 10

所以我的问题是,如何混合使用购物车规则以使其相互配合?我打算添加更多规则.请指教.

So my question is, how can I mix the cart rules to work well with each other? I'm planning to add more rules. Please advice.

推荐答案

我认为在购物车规则2中,您还应该提到这样的条件:

I think in Cart rule 2 also , you should mention the condition like this :

如果是/否1"为否"并且是/否2"为是"且数量> = 10,则应用购物车规则.

Apply cart rule if Yes/No 1 is No and Yes/No 2 is Yes and quantity >=10 .

我认为这会起作用.试一试.

I think this will work. Just give a try.

或者,请查看此链接: http://www.magentocommerce.com/knowledge-base/entry/what-are-shopping-cart-price-rules-and-how-do-i-use-them

Alternatively, please have a look at this link : http://www.magentocommerce.com/knowledge-base/entry/what-are-shopping-cart-price-rules-and-how-do-i-use-them

或者,您可以借助Magento的扩展程序:MageTitan简化您的工作. 这是一个链接: http://www.magentocommerce.com/magento -connect/magetitan-s-ultimate-cart-rules-7657.html

Or you can make your work easy with the help of Magento's extension : MageTitan. Here's a link for that : http://www.magentocommerce.com/magento-connect/magetitan-s-ultimate-cart-rules-7657.html

谢谢, Sweet72

Thanks, Sweet72

这篇关于在Magento中操纵多个购物车规则的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆