开发者

how can we get session of particular promotion rule using model

开发者 https://www.devze.com 2023-04-01 20:55 出处:网络
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

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

精彩评论

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