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.
精彩评论