Re: ShowCart

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 38350
interpreted = N
texte = Shidan Bateni wrote: > > Hi All, > > I want to update quantities in a shopping cart, using a > recalculate button in the cart page. > > How can I use the showcart command to do this? > You don't need to use showcart to do this (any page that goes through WebCat is an implicit showcart). Submit the page to itself and have a [showif] at the top of the page that does the update. For example, at the top of the page:[ShowIf [action]=newQty] [SetLineItem cart=[cart]&index=[index]&db=^DB/IMPRINT.db]quantity=[quantity][/SetLineItem] [/Showif]and for each line displayed in the cart:
NOTE: it is important to NOT use any of WebCat's built-in commands, like UPDATE, REPLACE, etc. Choose your own name for this command and you will never have problems.HTHJohn-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747------------------------------------------------------------- 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 Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: ShowCart (John Peacock 2001)
  2. Re: ShowCart (Shidan Bateni 2001)
  3. Re: ShowCart (Nitai @ ComputerOil 2001)
  4. Re: ShowCart (Shidan Bateni 2001)
  5. Re: ShowCart (Nitai @ ComputerOil 2001)
  6. ShowCart (Shidan Bateni 2001)
  7. Re: Command=Showcart? (WebDNA Support 2000)
  8. Re: Command=Showcart? (Michael Winston 2000)
  9. Re: Command=Showcart? (Jesse Proudman 2000)
  10. Re: Command=Showcart? (Kenneth Grome 2000)
  11. Re: Command=Showcart? (Jesse Proudman 2000)
  12. Re: Command=Showcart? (Bob Minor 2000)
  13. Command=Showcart? (Jesse Proudman 2000)
  14. Re[2]: showcart (jpeacock@univpress.com 2000)
  15. showcart (kalin@el.net 2000)
  16. showcart (kalin@el.net 2000)
  17. Re: showcart (kalin@el.net 2000)
  18. Re: OS X problem: when using [ShowCart] or [orderfile]... (Doug Hardman 2000)
  19. Re: OS X problem: when using [ShowCart] or [orderfile]... (Eric Ridgley 2000)
  20. Re: OS X problem: when using [ShowCart] or [orderfile]... (Kenneth Grome 2000)
  21. Re: OS X problem: when using [ShowCart] or [orderfile]... (Glenn Busbin 2000)
  22. Re: OS X problem: when using [ShowCart] or [orderfile]... (Eric Ridgley 2000)
  23. Re: OS X problem: when using [ShowCart] or [orderfile]... (Kenneth Grome 2000)
  24. OS X problem: when using [ShowCart] or [orderfile]... (Eric Ridgley 2000)
  25. Re: ShowCart Errors *FIXED (Doug Hardman 2000)
  26. Re: ShowCart Errors (Jesse Williams Proudman 2000)
  27. ShowCart Errors (Doug Hardman 2000)
  28. Re: showcart problem, HELP! (Charles Kline 1999)
  29. showcart problem, HELP! ( 1999)
  30. Re: Showcart in [include] (Will Starck 1999)
  31. Showcart in [include] (Will Starck 1999)
  32. Re: showcart context? (PCS Technical Support 1998)
  33. Re: showcart context? (Rob Marquardt 1998)
  34. showcart context? (Michael Scott Davis 1998)
  35. Re: embedding [showcart] ??? (PCS Technical Support 1998)
  36. embedding [showcart] ??? (Marty Schmid 1998)
  37. Re: showcart is slow (PCS Technical Support 1998)
  38. Re: showcart is slow (Kenneth Grome 1998)
  39. showcart is slow (Kevin Furuta 1998)
  40. More! on [ShowCart] and GET vs. POST (Dale Stokdyk 1997)
  41. Re: Error: the 'showcart' command requires that you specify a db (John Hill 1997)
  42. Re: [ShowCart] and GET vs. POST (John Hill 1997)
  43. Error: the 'showcart' command requires that you specify a db (Rob Schmidt 1997)
  44. Re: Document Contains no data, or showcart error. (Dale Stokdyk 1997)
  45. Re: [ShowCart] and GET vs. POST (Kenneth Grome 1997)
  46. Re: [ShowCart]-- was ThankYou page problems (Kenneth Grome 1997)
  47. [ShowCart] and GET vs. POST (Dale Stokdyk 1997)
  48. [ShowCart]-- was ThankYou page problems (Dale Stokdyk 1997)
  49. Document Contains no data, or showcart error. (netmouse@summit1.com (Anne K. Gay) 1997)
  50. Re: Secure Sever and showcart errors (John Hill 1997)
  51. Secure Sever and showcart errors (Nathan Hyde 1997)
  52. Re: Multiple catalog databases and showcart (Grant Hulbert 1997)
  53. Re: Multiple catalog databases and showcart (Ed Trefzger 1997)
  54. Re: Multiple catalog databases and showcart (grichter@panavise.com (Gary Richter) 1997)
  55. Re: Multiple catalog databases and showcart (Kenneth Grome 1997)
  56. Multiple catalog databases and showcart (Ed Trefzger 1997)
  57. Re: using showpage and showcart commands (Rob Schmidt 1996)
  58. Re: using showpage and showcart commands (apc Information 1996)
  59. Re: using showpage and showcart commands (Grant Hulbert 1996)
  60. Re: using showpage and showcart commands (Rob Schmidt 1996)
  61. Re: using showpage and showcart commands (apc Information 1996)
  62. Re: using showpage and showcart commands (Rob Schmidt 1996)
  63. Re: using showpage and showcart commands (Grant Hulbert 1996)
  64. using showpage and showcart commands (Rob Schmidt 1996)
Shidan Bateni wrote: > > Hi All, > > I want to update quantities in a shopping cart, using a > recalculate button in the cart page. > > How can I use the showcart command to do this? > You don't need to use showcart to do this (any page that goes through WebCat is an implicit showcart). Submit the page to itself and have a [showif] at the top of the page that does the update. For example, at the top of the page:[ShowIf [action]=newQty] [SetLineItem cart=[cart]&index=[index]&db=^DB/IMPRINT.db]quantity=[quantity][/SetLineItem] [/Showif]and for each line displayed in the cart:
[cart]>
NOTE: it is important to NOT use any of WebCat's built-in commands, like UPDATE, REPLACE, etc. Choose your own name for this command and you will never have problems.HTHJohn-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747------------------------------------------------------------- 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 Web Archive of this list is at: http://search.smithmicro.com/ John Peacock

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:

Test (2003) Separate SSL Server (1997) SiteBuilder? - SlideShow (2004) problems with 2 tags (1997) Weird Math (2000) international time (1997) MacOS X Server problems (2001) Other then credit cards-how? (1997) What generates Problem With Your Order email? (2000) [math] show=F exists? (1997) default value from Lookup (was Grant, please help me) (1997) Grepping text variable tags (was: No subject given) (2000) Webcat Manual and TeaRoom Examples Uses Different Examples. (1997) groups and [ShowNext] (1997) [object] context (2002) WebCatalog books and othre resources (2001) Dummy Credit Card Number for debug? (1997) Template Not Found (1998) [WebDNA] Variable mystery (2009) [SearchString] problem with [search] context (1997)