[include incs/header.html]
team faasst
online store
[orderfile cart=[cart]]
[showif [header1]=][SetHeader cart=[cart]&db=products.db]header1=co[/SetHeader][/showif]
[/orderfile]
[showif [action]=add]
[AddLineItem db=products.db&sku=[sku]&cart=[cart]][FORMVARIABLES][NAME]=[url][VALUE][/url]&[/FORMVARIABLES]password=password&price=[if "[textC]"^"%24"][then][math][grep search=([^0-9.])&replace=][Middle StartAfter=$&endbefore=][unurl][textC][/unurl][/middle][/grep]+[lookup db=products.db&lookInField=SKU&value=[sku]&returnField=price][/math][/then][else][lookup db=products.db&lookInField=SKU&value=[sku]&returnField=price][/else][/if][/AddLineItem]
[/showif]
[showif [action]=remove]
[RemoveLineitem db=products.db&index=[inItem]&cart=[cart]]
[/showif]
[showif [action]=updatestate]
[orderfile cart=[cart]]
[lineitems][math show=f]totalqty=[totalqty]+[quantity][/math][/lineitems]
[SetHeader cart=[cart]&db=products.db]header1=[shipstate][/SetHeader]
[/orderfile]
[/showif]
[showif [action]=updateqty]
[SetLineItem cart=[cart]&index=[lineindex]&db=products.db]quantity=[quantity][/SetLineItem]
[/showif]
[showif [action]=promocode]
[orderfile cart=[cart]]
[SetHeader cart=[cart]&db=products.db]header2=[promo][/SetHeader]
[/orderfile]
[/showif]
[orderfile cart=[cart]]
|
SHOPPING CART
YOUR SHOPPING CART CONTAINS THESE ITEMS:
|
| Product # |
Item Description |
Quantity |
Your Cost x QTY |
Remove |
[math show=f]myshippingTotal=0[/math]
[lineitems]
| [Lookup db=products.db&value=[sku]&lookinField=sku&returnField=SKU] |
[ConvertChars][Lookup db=products.db&value=[sku]&lookinField=sku&returnField=short_desc][/ConvertChars]
[hideif [textA]=][convertchars][textA][/ConvertChars] [/hideif][hideif [textB]=][convertchars][textB][/ConvertChars] [/hideif][hideif [textC]=][convertchars][unurl][textC][/unurl][/ConvertChars] [/hideif][hideif [textD]=][convertchars][textD][/ConvertChars] [/hideif][hideif [textE]=][convertchars][textE][/ConvertChars] [/hideif]
|
$[format thousands .2f][price][/format]x[quantity]=[format thousands .2f][math][price]*[quantity][/math][/format] |
Remove |
[if "[Lookup db=products.db&value=[sku]&lookinField=sku&returnField=OptionsE]"="Y"][then][math show=f]myshipping=0[/math][/then][else][math show=f]myshipping=[quantity]*4.99[/math][/else][/if]
[math show=f]myshippingTotal=[myshippingTotal]+[myshipping][/math]
[/lineitems]
|
|
| SUB-TOTAL: |
[if (("[header2]"="scca")|("[header2]"="nasa21")|("[header2]"="student"))]
[then][math show=f]mysubtotal=[subTotal]*.9[/math]
[text show=f]mydiscount= 10% Discount![/text]
[/then]
[else]
[math show=f]mysubtotal=[subTotal][/math]
[/else]
[/if]
$[format thousands .2f][mysubtotal][/format] USD [if "[mydiscount]"="[raw][mydiscount][/raw]"][then][/then][else][mydiscount][/else][/if] |
| Tax Total: |
$[if (("[header2]"="scca")|("[header2]"="nasa21")|("[header2]"="student"))]
[then][math show=f]mytaxtotal=[taxTotal]*.9[/math]
[/then]
[else]
[math show=f]mytaxtotal=[taxTotal][/math]
[/else]
[/if]
[format thousands .2f][mytaxtotal][/format] USD |
| Shipping: |
[if [myshippingTotal]>24.95]
[then][math show=f]myshippingTotal=24.95[/math][/then]
[else][/else]
[/if]
$[format thousands .2f][myshippingTotal][/format] USD |
| Grand Total |
[if (("[header2]"="scca")|("[header2]"="nasa21")|("[header2]"="student"))]
[then][math show=f]myGrandTotal=[GrandTotal][/math][/then]
[else][math show=f]myGrandTotal=[mysubtotal]+[myTaxTotal]+[myshippingTotal][/math][/else]
[/if]
$[format thousands .2f][myGrandTotal][/format] USD |
|
 |
|
[/orderfile]
|
[include incs/footer.html]