What is WebDNA

WebDNA is a scripting and database system designed to easily build web applications.

WebDNA and BioType

BioType service is a biometric keystroke dynamic system. It will be part of WebDNA 8.5

Download WebDNA

Download WebDNA freeware, try it and register later if you want.

WebDNA resources

The list of all WebDNA instructions.
WebDNA
Software Corporation
Search WebDNA Site
 Menu


HOME


DOWNLOADS


LEARN


EDUCATION


NEWS


COMMUNITY


STORE


SUPPORT


CONTACT

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 think that the messages on this list are finally starting to sink in, as I've managed to do the following without resorting to asking for help from you all :)* customers order software or merchandise from the site * 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 calculated surcharge. * Pressing submit then sends this value to invoice.tpl, where an [addlineitem] context looks up a sitelicense SKU in products.db and adds it to the 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 and they see no site license stuff.Everything works great, with one tiny little problem: none of the billing info entered in checkout.tpl is going to invoice.tpl. I fully realize why this is: sitelicense.tpl isn't passing it along. Normally, going right from checkout to invoice, the form variables are passed along and invoice handles setting the header.I've passed some variables along via hidden fields, both when posting back to sitelicense with my calculation, 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 this information? Should I do a [formvariables] loop at each stage of the game and keep passing them along? Or should I do the [setheader] at the top of sitelicense instead? Also, I've set up a number of math variables for doing the site license calculation... if I use [formvariables] will those be passed along too (they don'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 us newbies 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:

    
  1. Re[3]: Putting a page between checkout and invoice (Chris Vargas 1999)
  2. Re[2]: Putting a page between checkout and invoice (jpeacock@univpress.com 1999)
  3. Re: Putting a page between checkout and invoice (Chris Vargas 1999)
  4. Re: Putting a page between checkout and invoice (jpeacock@univpress.com 1999)
  5. Re: Putting a page between checkout and invoice (Kenneth Grome 1999)
  6. Putting a page between checkout and invoice (Chris Vargas 1999)
  7. Re: Putting a page between checkout and invoice (John Butler 1999)
WebCat 3.0.4 with WebMerchant on Web* 4.0I'm modifying a StoreBuilder-created store. I think that the messages on this list are finally starting to sink in, as I've managed to do the following without resorting to asking for help from you all :)* customers order software or merchandise from the site * 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 calculated surcharge. * Pressing submit then sends this value to invoice.tpl, where an [addlineitem] context looks up a sitelicense SKU in products.db and adds it to the 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 and they see no site license stuff.Everything works great, with one tiny little problem: none of the billing info entered in checkout.tpl is going to invoice.tpl. I fully realize why this is: sitelicense.tpl isn't passing it along. Normally, going right from checkout to invoice, the form variables are passed along and invoice handles setting the header.I've passed some variables along via hidden fields, both when posting back to sitelicense with my calculation, 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 this information? Should I do a [formvariables] loop at each stage of the game and keep passing them along? Or should I do the [setheader] at the top of sitelicense instead? Also, I've set up a number of math variables for doing the site license calculation... if I use [formvariables] will those be passed along too (they don'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 us newbies 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)