[if:(response_filepath) >> (PSS_File: -file = 'thanks')][else]
[/if] [if: (var: 'smallimage') == 'true'][/if] [if: (var: 'PartNum') == 'true'][/if] [if: (var: 'detaillink') == 'true'][/if] [if: (var: 'showname') == 'true'][/if] [if: (var: 'attributes') == 'true'][/if] [if: (var: 'category') == 'true'][/if] [if: (var: 'shortdescription') == 'true'][/if] [if: (var: 'Stock') == 'True'][/if] [if: (var: 'leadtime') == 'true'][/if] [if: (var: 'showcartfields') >> 'quantity'][/if] [if: (var: 'viewcart') == 'true'] [else] [/if] [PSS_DIV][var: 'CategoryList' = ''] [if: (var: 'smallimage') == 'true'][/if] [if: (var: 'PartNum') == 'true'][/if] [if: (var: 'detaillink') == 'true'][/if] [if: (var: 'showname') == 'true'][/if] [if: (var: 'attributes') == 'true'][/if] [if: (var: 'category') == 'true'][/if] [if: (var: 'shortdescription') == 'true'][/if] [if: (var: 'stock') == 'true'][/if] [if: (var: 'leadtime') == 'true'][/if] [if: (var: 'showcartfields') >> 'Quantity'] [/if] [if: (var: 'viewcart') == 'true'][/if] [PSS_DIV] [if: (var: 'viewcart') == 'true'][/if] [if: (var: 'showcartfields') >> 'Promotion Code'] [if: (var: 'viewcart') == 'true'][/if] [/if] [if: (var: 'storewidesale') != 'off'] [if: (var: 'viewcart') == 'true'][/if] [/if] [if: (var: 'showtax') == 'true'] [if: (var: 'viewcart') == 'true'][/if] [/if] [if: (var: 'showshipping') == 'true'] [if: (var: 'viewcart') == 'true'][/if] [/if] [if: (var: 'viewcart') == 'true'][/if] [if: (var: 'showcartfields') >> 'Estimate Ship'] [if: (var: 'viewcart') == 'true'][/if] [/if] [if: (var: 'showcartfields') >> 'Comments'] [if: (var: 'viewcart') == 'true'][/if] [/if]
 SKU Name CategoryDescriptionStockLeadtimePriceQuantityTotal  
[if: (field: 'smallimage') == 'xxnonexx' || (field: 'smallimage') == ''] [else][if: (var: 'detailimage') == 'true'][/if][if: (var: 'detailimage') == 'true'][/if][/if][field: 'sku']Details[field: 'name'] [var: 'att1'] [var: 'att2'] [var: 'att3'] [var: 'att4'] [var: 'att5'] [var: 'att6'] [var: 'att7'] [var: 'att8'] [var: 'att9'] [var: 'att10']  [var: 'CategoryList' = (string: (field: 'category'))->(split: '\r')][var: 'FirstTime' = 'True'][loop: $CategoryList->size][var: 'catid' = $CategoryList->(get: (loop_count))][var: 'catid' = (string_getfield:-fieldnumber = '1', -delimiter=':', (var: 'catid'))][if: (var: 'catid') != ''][if: (var: 'FirstTime') != 'True'], [else][var: 'FirstTime' = 'False'][/if][var: (var: 'catid')][if: (repetition) == '5']
[/if][/if][/loop]
 [field: 'shortDescription', -encodenone] [if: (field: 'useinventory') == '1'][if: (field: 'stock') >= 1][Field: 'stock', -encodenone][else]Back Ordered[/if][/if][field: 'leadtime'] day[if: (field: 'leadtime') > '1']s[/if][if: (field: 'quantityasprice') == '1'][else][money: (var: 'unitprice')][/if][if: (field: 'quantityasprice') != '1'][if:(field: 'NoQuantity') == '1']1[else: (var: 'confirm') != ''][field: 'quantity'][else][/if][/if] [money: (var: 'itemprice')][if: (var: 'deleteimage') != 'xxNONExx'][else]Delete Item[/if]
Subtotal: [money: (var: 'firstsubtotal')] 
Promotion Code: [money: (math_sub: (var: 'newsubtotal'), (var: 'OldSubtotal'))] [if: (var: 'applymessage') != '']
[/if][var: 'ApplyMessage']
 
Store Wide Sale [var: 'storewidesale']% off! [money: (math_mult: '-1', (var: 'percentoff'))] 
Tax: [money: (var: 'tax')][html_comment]Tax States: [var: 'taxablestates'] - Located in: [var: 'shipstate'] - Viewcart: [var: 'viewcart'] - Taxable Total: [var: 'taxabletotal'] - Tax %[var: 'taxpercent'][/Html_comment] 
Shipping: [money: (var: 'shipprice')] 
Total: [money: (var: 'finaltotal')] 
Estimated Shipdate: [date_add: (server_date), -day = (var: 'maxleadtime')] 
Special Notes:  
[if: (var: 'viewcart') == 'true'] [if: (var: 'updateimage') != 'xxNONExx'][else][/if] [if: (var: 'showcartfields') >> 'Checkout'][ezbutton: -button = 'checkoutcart', -encodenone][/if]
[else: (var: 'confirm') != 'complete'] [var: 'ordernumber' = (unique)] [inline: (PSS_Result: -request = 'username'), -Database = (var: 'ordersdbname'),-table = (var: 'ordertable'),-keyfield = 'customerid',-keyvalue = (var: 'customerid'), 'ordernumber' = (var: 'ordernumber'), -update] [/inline] [if: (var: 'PaymentGateway') == 'xxNonexx' || (var: 'paymentgateway') == '']
[else: (var: 'PaymentGateway') == 'xxPayPalxx'] [include: ($PS_Cart_Link->(find: 'paypalgateway.txt'))] [else: (var: 'PaymentGateway') == 'xxAuthorizeNetxx'] [include: ($PS_Cart_Link->(find: 'authorizenet.txt'))] [else: (var: 'PaymentGateway') == 'xxSignioxx'] [include: ($PS_Cart_Link->(find: 'signiopayflowlink.txt'))] [else] [include: 'html/' + (var: 'paymentgateway')] [/if] [/if]