Thank you! I added a discount code column to the db. But since I'm not clear on how to do what I'm trying to do, I'm still trying to get things to work.
When I add the Discount column to ecart what is the correct out put type? Number? Text? Integer? Currency?
I've tried a bunch of different combinations, but I'm not any closer to making the discount work. My last effort was this combination which just resulted in an error in the php causing to page not to show:
On the Discount tab I have "number of items with a specific column value" and if the total number of items where Discount has a value of 1 is = a value 2
Calculation: Based on column subtotal
Subtotal of column Price minus 20
Any suggestion on what variables I should be using instead? Do I need to create a rule for each pair of classes the discount applies to?