I'm sure this can be achieved in rules; however, I'm new to rules and still trying to figure this out, so I'd sincerely appreciate any assistance and this might be a possible default rule to include in a future release for others.

We offer percentage coupons, but cap the maximum possible value of the coupon. Can anyone help me with an example rule or some other way to do something similar to:
IF Commerce Coupon Granted amount > Max Value THEN Commerce Coupon Granted amount = Max Value

Where Max Value represents some new field we've created with the maximum dollar value of the coupon?

Comments

j_ten_man’s picture

I do not believe this is currently possible with this module. I was looking for the same thing but couldn't figure a way out to accomplish it. I wrote a workaround for it, so I'll try to get it posted here.

pcambra’s picture

This would be a fairly simple rule to implement on validation event for coupons checking the order total against a given number.

I'll be happy to add this to the module if someone wants to provide a patch.