One of the best things about having an engine process your HTML is that you can put conditions in the HTML, showing different information depending on previously supplied input.
Simply put the field name in an IF container, and the Transact e-commerce engine will only output the information if the condition is true. Here's an example:
<!-- IF "<!-- INPUT: Favorite_Color -->" == "BLUE" --> That's great! Blue is my favorite color too! <!-- /IF -->
That's cute, but how about a real example? Here you go:
<!-- IF "<!-- SESSION: Country -->" == "US" --> Shipping Method: <select name="Shipping_Method"> <option>USPS Priority Mail (3 day)</option> <option>USPS Express Mail (1 day)</option> </select><br> <!-- ELSE --> <INPUT type="hidden" name="Shipping_Method" value="Global Priority Mail"> Shipping Method: Global Priority Mail<br> <!-- /IF -->
If IF conditionals include equality, inequality, greater than, and less than. The following are all legal conditionals:
<!-- IF "<!-- SESSION: Country -->" == "US" --> <!-- IF "<!-- SESSION: City -->" != "Jacksonville" --> <!-- IF "<!-- CART: Items_Selected -->" != "5" --> <!-- IF "<!-- CART: Total_Price -->" < "50" --> <!-- IF "<!-- CART: Total_Price -->" > "50" -->
How about IF-ELSEIF-ELSE? Layer your IF statements.
<!-- IF "<!-- SESSION: Country -->" == "US" --> You're a US citizen. <!-- ELSE --> <!-- IF "<!-- SESSION: Country -->" == "CA" --> You're a Canadian citizen. <!-- ELSE --> You live on a different continent. <!-- /IF --> <!-- /IF -->