CUSTOM TABLES
|
Features and Details of Custom Subtotal Tables
The custom table code replaces the ##TP_Table## tag in the subtotal template. Below are the tags to use when replacing the ##TP_Table## with a custom table: ##TP_CUSTOM_TABLE## ( replaces ##TP_Table## in the subtotal template ). ##TP_CUSTOM_SUBTOTAL## ##TP_CUSTOM_SHIPPING## Custom Table Data File You must make a custom table data file that contains just the information for the ##TP_CUSTOM_TABLE## including the html tags to be around the values that are in the table. The custom table data file is simple plain text file (not an html page) you must name it by the same name as the corresponding subtotal template that the custom table is to be used on but you must add _tbl to the end of the file name. Example: if the subtotal name is subtotal.asp then the custom table data file would be called subtotal.asp_tbl Contents of the Custom Table Data File Within the Custom Table Data File you can include the following values once, several times repeating for each item or even decide not to include certain values. ##ITEMID_VAL## This will return the ID number of the item. ##ITEMID_DELTAG## Returns the ID number of the item in a linkable delitem.exe format so that when the item number is clicked the item is deleted from the cart. ##QUAN## Returns the quantity of the item for selected for purchase. Note: You can also use the additem or fillcart functions to allow the customer the ablity to update the quanity from the cart. If you wish to use this method click here for custom subtotal table quantity change example code. ##DESC## This is the Description of the product. ##PRICE## This is the price prior to tax and shipping. ##ITEMSUBTOTAL## This is the item subtotal which will total the price of the item times the quantity of that item. An example of all the text that might be in a Custom Table Data File:
<TABLE>
|