开发者

how can we get session of particular promotion rule using model

Is there any way to get session of salesrule using model? I have to get details of rule while it is being created.. for eg: i have to get apply_to_shipping and coupon_type while r开发者_如何学Cule is being created.


Add observer to salesrule_rule_save_before event. In your observer use $observer->getEvent()->getRule() to get sales rule object.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜