Putting a page between checkout and invoice
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 25502
interpreted = N
texte = WebCat 3.0.4 with WebMerchant on Web* 4.0I'm modifying a StoreBuilder-created store. I thinkthat the messages on this list are finally starting tosink in, as I've managed to do the following withoutresorting to asking for help from you all :)* customers order software or merchandise from thesite* they go to checkout.tpl to enter their shipping info* pressing submit on the form takes them to a sitelicense.tpl page I created instead of directly to invoice.tpl* On this page I have a [lineitems] context that loops through all ordered products and totals up the price of software ordered (if any)* If that total is >0, it shows them site licensing legalese, and asks for # of CPUs & # of printers* User posts that value; the form posts back to sitelicense.tpl and displays the calculatedsurcharge.* Pressing submit then sends this value to invoice.tpl, where an [addlineitem] context looks up a sitelicense SKU in products.db and adds it tothe order with a modified price (it's 0 in the db).* If no software is in [lineitems] and total=0, a [redirect] bounces them right to invoice.tpl andthey see no site license stuff.Everything works great, with one tiny little problem:none of the billing info entered in checkout.tpl isgoing to invoice.tpl. I fully realize why this is:sitelicense.tpl isn't passing it along. Normally,going right from checkout to invoice, the formvariables are passed along and invoice handles settingthe header.I've passed some variables along via hidden fields,both when posting back to sitelicense with mycalculation, and when continuing on to invoice.tpl.(I've had to do it as a URL when redirecting,however).So the question is, what is the best way to pass thisinformation? Should I do a [formvariables] loop ateach stage of the game and keep passing them along? Orshould I do the [setheader] at the top of sitelicenseinstead? Also, I've set up a number of math variablesfor doing the site license calculation... if I use[formvariables] will those be passed along too (theydon't need to, so I don't want them to)?I guess I'm looking for general plan of attack here;actually writing the code will be my homework.Thanks for all the assistance. Obviously many of usnewbies would be sunk without all of your help.=====-- Chris Vargas Grant me the strength to change
the things I can, the grace to accept the things I cannot, and a great big bag of money. http://www.chrisandmaria.com/__________________________________________________Do You Yahoo!?Thousands of Stores. Millions of Products. All in one place.Yahoo! Shopping: http://shopping.yahoo.com-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
Associated Messages, from the most recent to the oldest:
WebCat 3.0.4 with WebMerchant on Web* 4.0I'm modifying a StoreBuilder-created store. I thinkthat the messages on this list are finally starting tosink in, as I've managed to do the following withoutresorting to asking for help from you all :)* customers order software or merchandise from thesite* they go to checkout.tpl to enter their shipping info* pressing submit on the form takes them to a sitelicense.tpl page I created instead of directly to invoice.tpl* On this page I have a [lineitems] context that loops through all ordered products and totals up the price of software ordered (if any)* If that total is >0, it shows them site licensing legalese, and asks for # of CPUs & # of printers* User posts that value; the form posts back to sitelicense.tpl and displays the calculatedsurcharge.* Pressing submit then sends this value to invoice.tpl, where an [addlineitem] context looks up a sitelicense SKU in products.db and adds it tothe order with a modified price (it's 0 in the db).* If no software is in [lineitems] and total=0, a [redirect] bounces them right to invoice.tpl andthey see no site license stuff.Everything works great, with one tiny little problem:none of the billing info entered in checkout.tpl isgoing to invoice.tpl. I fully realize why this is:sitelicense.tpl isn't passing it along. Normally,going right from checkout to invoice, the formvariables are passed along and invoice handles settingthe header.I've passed some variables along via hidden fields,both when posting back to sitelicense with mycalculation, and when continuing on to invoice.tpl.(I've had to do it as a URL when redirecting,however).So the question is, what is the best way to pass thisinformation? Should I do a [formvariables] loop ateach stage of the game and keep passing them along? Orshould I do the [setheader] at the top of sitelicenseinstead? Also, I've set up a number of math variablesfor doing the site license calculation... if I use[formvariables] will those be passed along too (theydon't need to, so I don't want them to)?I guess I'm looking for general plan of attack here;actually writing the code will be my homework.Thanks for all the assistance. Obviously many of usnewbies would be sunk without all of your help.=====-- Chris Vargas Grant me the strength to change the things I can, the grace to accept the things I cannot, and a great big bag of money. http://www.chrisandmaria.com/__________________________________________________Do You Yahoo!?Thousands of Stores. Millions of Products. All in one place.Yahoo! Shopping: http://shopping.yahoo.com-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
Chris Vargas
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
[format 40s]text[/format] doesn't work (1997)
Ok here is a question? (1997)
WC2b12: Yes, Formulas.db is for real (1997)
Max Record length restated as maybe bug (1997)
Bug Report, maybe (1997)
[showif] problem (1999)
access denied problem (1997)
searchable list archive (1997)
WebCat2.0 [format thousands .0f] no go (1997)
Sort order (1998)
[shownext] stumps me every 3-4 months !@%*#! (2000)
Protect groups and delete command (2000)
Cart Number sequence (1997)
[WriteFile] problems (1997)
oops private message leaked into talk list (1997)
Email truncation in Eudora. (1998)
New user...how do I create URLs from form fields? (2000)
P1: How to make webcatalog more stable. - LONG (1999)
WebCatalog Features (1997)
combine search (1998)