Randy Fay

Quick and Dirty Coupon with a Line Item Field and a Rule

by Randy Fay

Custom line items and rules are incredibly powerful together. Tonight I just needed a quick coupon for a store that had just one product. This is a one-time thing and didn't need the Commerce Coupon module. So I just did it quickly by adding a field to the line item and writing a rule.