onDiscountRuleCreated( )


An event that is triggered when a discount rule is created.

The onDiscountRuleCreated() event handler runs when a discount rule is created. The DiscountRuleCreated object contains information about the discount rule that was created.

Note: Backend events don't work when previewing your site.

Method Declaration
Copy
Method Parameters
eventDiscountRuleCreated

Information about the discount rule that was created.

Did this help?