1

我正在使用商业优惠券百分比测试模块。

我的客户只需要为选定的产品类型提供优惠券。

说衣服,配饰,而不是鞋子

我该如何实施?我可以写一条规则吗?怎么写?

谢谢

4

1 回答 1

0

You'll need to create a rule that reacts on the validate a coupon event. Since a coupon is applied to an order rather than an individual line item (when you add a product to the cart it isn't really a product anymore rather it is a line item) on an order, what you'll need to do is loop through each line item on the order and load the product via the product reference field on the line item. After loading the product you can check the product type and then set the coupon as invalid as needed.

Hope that helps :)

于 2013-04-16T21:04:26.373 回答