To define discounts for large purchases, go to your website's admin tool (/admin).
Click on the folder tab, then choose Configure the Transact e-commerce.
Enter the Product Center, and pull down on Class tab. Discounts apply to purchases
which exceed dollar amounts you specify.
On following page (purchase.html or any page with "Action" set to "Purchase") have the following code:If you have a discount code, enter it here:
You could implement the same thing with an option for free shipping, by changing the last part to:<!-- IF "INPUT: Discount_Code" == "1234" --> You have received a 10% discount! <INPUT type="hidden" name="Discount" value="<-- CALCULATE "CART: Total_Product_Price" * "0.10" -->"> <!-- /IF -->
<!-- IF "INPUT: Discount_Code" == "1234" --> You have received a free shipping discount! <INPUT type="hidden" name="Discount" value="<-- CART: Total_Shipping -->"> <!-- /IF -->
In a surcharge situation, you may want to add the surcharge into the shipping and handling costs. It is common to use HTML like the following:Your Discount: <!-- CART: Discount -->
Handling Charge: <!-- CALCULATE "CART: Handling_Charge" - "CART: Discount" --> (subtract a negative number to add them together.)