How to add Discount Code to Order Form and Ordering Rule

How to add Discount Code to Order Form and Ordering Rule

How to add Discount Code to Order Form: 
1) Under "Site" menu on the left side of Builder 
2) Select " Forms" 
3) Double Click "Order Form" 
4) Click "Elements" Tab on right side of Builder 
5) Click "+" at bottom of Builder 
6) Hover over "Input" and select "Editable" 
7) Heading "Discount Code" 
8) Hit the Down arrow on the right and add a Variable "Discount" (Can be called whatever you want)
9) Do not use "Use response for price" 
10) Once completed, Drag the new editable element above the security elements to where you would like it placed 


How to add Discount Code Ordering Rule: 
1) Under "Products" Menu on the left hand side of the Builder 
2) Select "Price Sets" 
3) Click "Ordering Rules" 
4) Click "+" button, at bottom of the Builder and select " Standard " 
5) Name ordering rule Discount Code 
6) Change Type to "Fee" 
7) Click "+" button, at bottom of the Builder and select "Condition" 
8) Select "Form Question" condition 
9) First box must match the Form Element name "Discount" (This is the Variable from before) 
10) Leave the middle box as "matches"
11) In the last box, type the code you wish the customer to enter to activate the discount 
12) Click "+" button, at bottom of the Builder and select "Calculation" 
13) Here you can select a fixed amount or percent. Make sure to add make it a negative amount or percent for discount. Example: "-20%" 

*This Discount Code will need matching ordering rules for each discount you choose to make, Example Discount Code "20DISCOUNT" will need to match the Ordering rule exactly to then have "-20%" off order.* ​