DISPLAYING COMPLETE ORDER
THE TOTAL TEMPLATE
|
Features and Details of the Total Template
The Total Template You can start your total template 3 different ways:
Use ##TP_BeginForm## to start your return if you have SSL on your site. Use ##TP_BeginForm2## if you don't have SSL. The Form call is an optional method for ##TP_BeginForm##. ##TP_Table## or ##TP_CUSTOM_TABLE## The TP_Table tag is the second tag within the body of the Total form. You can use <center> or other formatting tags around the TP_Table tag to adjust it to your design. If you are using the custom table feature, you'll need to create a separate file that will be pulled in when the ##TP_CUSTOM_TABLE## tag is used: <input type="hidden" name="totaltable" value="\path\filename.htm"> Template Tag You'll need to specify a page that will be displayed once the Purchase button is clicked. You can either specify a generic nextpage which will thank your customer for their order, or process their transaction in real-time:
<input type="hidden" name="nextpage" value="/thankyou.htm"> ##TP_CUSTOM_SUBTOTAL## includes the Subtotal on the page. ##TP_CUSTOM_SHIPPING## displays total shipping charges on web page. <input type="hidden" name="ShipTotal" Value="##TP_CUSTOM_SHIPPING##"> Passes total shipping charges for the order forward to checkorder.exe.##TP_CUSTOM_TAX## displays total tax charges on web page. <input type="hidden" name="Tax" Value="##TP_CUSTOM_TAX##"> Passes total tax charges for the order forward to checkorder.exe.##TP_TOTAL## or ##TP_CUSTOM_TOTAL## displays total for order on web page. <input type="hidden" name="Total" Value="##TP_CUSTOM_TOTAL##"> Passes total charges for order forward to checkorder.exe.Tax & Shipping Values In order to pass the tax and shipping values that were specified by your customer on the subtotal page forward to the checkorder template, you will need the following lines of code:
<input type="hidden" name="TP_TAXDATA" value="##TAXDATA##"> There are several fields that allow you to capture almost any kind of data you can think of. Please see the List of Fieldnames in the Reference section for a complete listing of the fields available. These are the fields required by you that must be filled in by your customer in order to complete their order.
First Name: <input type="text" name="TP_FIRSTNAME"> The following code is example of how email might be activated. Be sure to change the email address to reflect the right destination. <input type="hidden" name="TP_SELLER" value="your_email_address@your_domain_name.com> For Buyer's email. They need to provide it so use the "text" type:<input type="text" name="TP_EMAIL" size="20"> The ##TP_Endform## tag must be the last tag within the body of the total template and ends the Total form.
|