[!] [include file=nav.inc] Not needed in this page toprotect against already submitted carts [/!] | [!] This is where thecode dies all the time. [/!][!]Begin error checking code (worked fine before)[/!][text]flag=f[/text][ShowIf [__Company]=] Please go back one andfill in the Company field. [text]flag=t[/text][/ShowIf][ShowIf [__Name]=] Please go back one andfill in the Name field. [text]flag=t[/text][/ShowIf][ShowIf [__Email]=] Please go back one andfill in the Email field. [text]flag=t[/text][/ShowIf][ShowIf [__Address1]=] Please go back one andfill in the Address field. [text]flag=t[/text][/ShowIf][ShowIf [__City]=] Please go back one andfill in the City field. [text]flag=t[/text][/ShowIf][ShowIf [__Zip]=] Please go back one andfill in the Zip field. [text]flag=t[/text][/ShowIf][ShowIf [__State]=] Please go back one andselect a state. [text]flag=t[/text][/ShowIf][hideif [flag]=t][setheader cart=[cart]][formvariablesname=__&exact=F][getcharsstart=3][name][/getchars]=[url][value][/url]&[/formvariables][/setheader][!] Want to start hiding CC code here [/!][hideif [net30]=checkbox][orderfile cart=[cart]][setheader cart=[cart]]payMethod=CC[/setheader][math show=f]creditOK=1[/math][showif [validcard accountNum=[accountNum]&card=[listwordswords=[lookupdb=admin/prefs.db&lookinfield=pref&value=CREDIT_CARDS&returnfield=value]&delimiters=[url]+[/url]][lookupdb=admin/cards.db&lookinfield=CC_ID&value=[word]&returnfield=CC_ABRV]+[/listwords]]=F][math show=f]creditOK=0[/math]Please re-enter your creditcard number. The number you entered may have a mistypednumberor may be missing digits.
[/showif][/orderfile][/hideif] [!] End of the first [net30] hide [/!][!] Second [net30] hide [/!][hideif [net30]=checkbox][showif[math]creditOK[/math]=1][/hideif][orderfile cart=[cart]]Thanks For Purchasing
Your credit card will be charged at the time of shipment.You will be notified if there are any problems charging yourcard.
This page is your final receipt.[hideif [email]=] A copywill be emailed to [email].[/hideif]For a printed record use your web browsers 'print' command.Please note the order number on any correspondence. If youhave any questionsabout your order contact [lookupdb=./admin/prefs.db&lookinfield=pref&value=STORE_EMAIL&returnfield=value]. [!]Set the TextA-TextE fields[/!][text]shopcart=[cart][/text][lineitems][searchdb=./admin/carts.db&neCARTdatarq=find_all&rank=off][founditems][hideif [interpret][text[CART]][/interpret]=][searchdb=./admin/related.db&eqR_IDdatarq=[interpret][text[CART]][/interpret]][founditems][setlineitemdb=./admin/categories.db&index=[lineindex]&cart=[shopcart]]text[CART]=[url][R_NAME][/url][/setlineitem][/founditems][/search][/hideif][/founditems][/search][/lineitems] Order Number [cart] Ship To [shiptocompany] [shiptoname] [shiptoaddress1] [showif [shiptoaddress]!][shiptoaddress2] [/showif][shiptoCity], [shiptostate] [shiptozip] [showif [shiptoCountry]!][shiptoCountry] [/showif][showif [shiptoemail]!][shiptoemail][/showif]
Bill To
[company] [name] [address1] [showif [address]!][address2] [/showif][City], [state] [zip] [showif [Country]!][Country] [/showif][showif [email]!][email][/showif] SKU | Product | Qty | Price | Total | [lineItems][SKU] | [lookupdb=./admin/products.db&lookinfield=SKU&value=[url][sku][/url]&returnfield=TITLE] | [searchdb=./admin/carts.db&neCARTdatarq=find_all&rank=off][founditems][hideif [interpret][text[CART]][/interpret]=][searchdb=./admin/related.db&eqR_IDdatarq=[interpret][text[CART]][/interpret]][founditems][lookupdb=./admin/categories.db&lookinfield=C_ID&value=[R_CATEGORY]&returnfield=C_NAME]:[R_NAME][/founditems][/search][/hideif][/founditems][/search] | [quantity] | [lookupdb=./admin/prefs.db&lookinfield=pref&value=CURRENCY&returnfield=value][price] | [lookupdb=admin/prefs.db&lookinfield=pref&value=CURRENCY&returnfield=value][format.[lookupdb=./admin/prefs.db&lookinfield=pref&value=CURRENCY_ACCURACY&returnfield=value]f][math][quantity]*[price][/math][/format] | [/lineItems]Sub Total | $[subTotal] | [showif [lookupdb=./admin/prefs.db&lookinfield=pref&value=SHIP_TAX&returnfield=value¬found=F]=F]Tax Rate:[taxRate]%Tax | $[taxTotal] | Shipping &Handling | added | [/showif][showif [lookupdb=./admin/prefs.db&lookinfield=pref&value=SHIP_TAX&returnfield=value¬found=F]=T]Shipping &Handling | added | Tax Rate:[taxRate]%Tax | $[taxTotal] | [/showif]Grand Total | $[subTotal]+added | [!]--This sends the information via email if we were notusing WebMerchant--[/!][hideif [email]=][sendmail to=[url][email][/url]&from=[url][lookupdb=./admin/prefs.db&lookinfield=pref&value=STORE_EMAIL&returnfield=value][/url]&subject=WholesaleReceipt from Making Tracks Inc.]Order Number [cart]Ship To[shiptocompany][shiptoname][shiptoaddress1][shiptoaddress2][shiptoCity], [shiptostate] [shiptozip][shiptoCountry][shiptoemail]Bill To[company][name][address1][address2][City], [state] [zip][Country][email]SKU Product QtyPrice ($) Total ($)__________|________________________________________|______|__________|__________[lineItems][format 10s][sku][/format] [format 20s][lookupdb=./admin/products.db&lookinfield=SKU&value=[url][sku][/url]&returnfield=TITLE][/format][format20s][searchdb=./admin/carts.db&neCARTdatarq=find_all&rank=off][founditems][hideif[interpret][text[CART]][/interpret]=][searchdb=./admin/related.db&eqR_IDdatarq=[interpret][text[CART]][/interpret]][founditems][lookupdb=./admin/categories.db&lookinfield=C_ID&value=[R_CATEGORY]&returnfield=C_NAME]:[R_NAME][/founditems][/search][/hideif][/founditems][/search][/format][format 6.0f][quantity][/format] [format10.2f][price][/format] [format10.2f][math][quantity]*[price][/math][/format][/lineitems]________________________________________________________________________________Sub Total: [format 10.2f][subTotal][/format][showif[taxableshipping]=F]Tax Rate:[taxRate]% Tax: [format 10.2f][taxTotal][/format] Shipping &Handling: [format 10.2f]added[/format][/showif][showif[taxableshipping]=T]Shipping & Handling: [format 10.2f]added[/format] Tax Rate:[format 6.2f][taxRate][/format]% Tax: [format10.2f][taxTotal][/format][/showif]_______________________Grand Total: [subTotal]+added[/sendmail][/hideif][sendmail to=[url][lookupdb=./admin/prefs.db&lookinfield=pref&value=STORE_EMAIL&returnfield=value][/url]&from=[url][lookupdb=./admin/prefs.db&lookinfield=pref&value=STORE_EMAIL&returnfield=value][/url]&subject=WholesaleOrder]Order Number [cart]Ship To[shiptocompany][shiptoname][shiptoaddress1][shiptoaddress2][shiptoCity], [shiptostate] [shiptozip][shiptoCountry]Bill To[company][name][address1][address2][City], [state] [zip][Country]Credit CardDue to security please final process this order at:http://makingtracks.net/mktrackswhole/vieworder.tpl?cart=[cart]SKU Product QtyPrice ($) Total ($)__________|________________________________________|______|__________|__________[lineItems][format 10s][sku][/format] [format 20s][lookupdb=./admin/products.db&lookinfield=SKU&value=[url][sku][/url]&returnfield=TITLE][/format][format20s][searchdb=admin/carts.db&neCARTdatarq=find_all&rank=off][founditems][hideif[interpret][text[CART]][/interpret]=][searchdb=./admin/related.db&eqR_IDdatarq=[interpret][text[CART]][/interpret]][founditems][lookupdb=./admin/categories.db&lookinfield=C_ID&value=[R_CATEGORY]&returnfield=C_NAME]:[R_NAME][/founditems][/search][/hideif][/founditems][/search][/format][format 6.0f][quantity][/format] [format10.2f][price][/format] [format10.2f][math][quantity]*[price][/math][/format][/lineitems]________________________________________________________________________________Sub Total: [format 10.2f][subTotal][/format][showif[taxableshipping]=F]Tax Rate:[taxRate]% Tax: [format 10.2f][taxTotal][/format] Shipping &Handling: [format 10.2f]added[/format][/showif][showif[taxableshipping]=T]Shipping & Handling: [format 10.2f]added[/format] Tax Rate:[format 6.2f][taxRate][/format]% Tax: [format10.2f][taxTotal][/format][/showif]_______________________Grand Total: [subTotal]+added[/sendmail][/orderfile][purchase cart=[cart]][!] Have to hide this to match [showif[math]creditOK[/math]=1] above [/!][hideif [net30]=checkbox][/showif][/hideif]Returnto Making Tracks Inc. Wholesale Store. [!] error correction end [/hideif] [/!][/hideif] |