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:

Bug? (1997) Error 11 (1996) Cart questions (1997) Locking up with WebCatalog... (1997) textarea inputs and returns (1999) Install Webcat 4.01 - Server Hard Freeze (2000) f2 download problems (1997) [include ...] behavior (1997) Trouble with Category search (2000) [ShowNext] (1997) Forcing price recalculation in shopping cart (1998) access denied problem (1997) Multiple prices (1997) writing orders to a db (1997) FW: 2.01 upgrade problems (1997) Database and Log file merged..... (2000) ShowNext (1997) shipcost (1997) Web Logs (1998) [SearchString] problem with [search] context (1997)