Re: Cart Question

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 21272
interpreted = N
texte = >>>>>When you add something to a cart, the same page that you were on reloads >>>>>itself (i.e., the cart is not displayed). Is this possible with WebCat??? > > >. Try something like this instead: >> >>>HREF=[thisurl]?command=add&db=[db]&sku=[url][sku][/url]&asskusort=1&cart=[c >art]>Add >>to Cart > > >OK. I'm learning, so please bear with me... > >The above URL is contained within a founditems context on my Results.tpl >page. When I substituted the above code, I got the following error on the >ShoppingCart.tpl page: > >Error: No Search Context Found. Ignoring [FOUNDITEMS] context > >Any ideas??Sorry, I didn't know the details of your results page. You cannot do it that way until you make some changes.There's no search context on the results page, and that means webcat must have received the command=search from the previous URL or form -- not from an embedded [search] context.And since you can send only one command per URL, you cannot do a command=search and a command=add from the same URL ...There are ways around this. In general, it's best to use [search] contexts whenever possible -- so you can use your commands for something else.For example, if you change your results page so that it has a search context wrapped around the founditems context, then you can perform the command=add from the URL above -- while having the search performed from the embedded [search] context in the results page.Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Re: CART question ( Donovan Brooke 2004)
  2. Re: CART question ( Brian Fries 2004)
  3. Re: CART question ( devaulw@onebox.com 2004)
  4. Re: CART question ( Patrick J. 2004)
  5. Re: CART question ( Donovan Brooke 2004)
  6. Re: CART question ( John Peacock 2004)
  7. Re: CART question ( Stuart Tremain 2004)
  8. Re: CART question ( "Sal D'Anna" 2004)
  9. Re: CART question ( 2004)
  10. CART question ( Patrick J. 2004)
  11. Re: More Shopping Cart Questions/Problems (Brian Boegershausen 2000)
  12. More Shopping Cart Questions/Problems (Brady J. Horenstein 2000)
  13. Re: Cart Question: The Epic Saga (Will Starck 1998)
  14. Re: Cart Question: The Epic Saga (Will Starck 1998)
  15. Re: Cart Question: The Epic Saga (PCS Technical Support 1998)
  16. Cart Question: The Epic Saga (Will Starck 1998)
  17. Re: Cart Question (Kenneth Grome 1998)
  18. Re: Cart Question (PCS Technical Support 1998)
  19. Re: Cart Question (Will Starck 1998)
  20. Re: Cart Question (Kenneth Grome 1998)
  21. Re: Cart Question (Will Starck 1998)
  22. Re: Cart Question (PCS Technical Support 1998)
  23. Re: Cart Question (Bob Minor 1998)
  24. Re: Cart Question (Will Starck 1998)
  25. Re: Cart Question (Kenneth Grome 1998)
  26. Re: Cart Question (Bob Minor 1998)
  27. Re: Cart Question (Bob Minor 1998)
  28. Re: Cart Question (Will Starck 1998)
  29. Re: Cart Question (PCS Technical Support 1998)
  30. Re: Cart Question (Will Starck 1998)
  31. Re: Cart Question (charles kline 1998)
  32. Re: Cart Question (PCS Technical Support 1998)
  33. Cart Question (Will Starck 1998)
  34. adding item to cart question (Chris Martin 1998)
  35. RE: Shopping Cart Questions (PCS Technical Support 1998)
  36. RE: Shopping Cart Questions (Pat McCormick 1998)
  37. RE: Shopping Cart Questions (josh 1998)
  38. Re: Shopping Cart Questions (Rob Marquardt 1998)
  39. Shopping Cart Questions (josh 1998)
  40. RE: Shopping Cart Questions (Pat McCormick 1998)
  41. Price lookup problem - was Re: Cart questions (Paul Winchester 1997)
  42. Re: Cart questions (Grant Hulbert 1997)
  43. Re: Cart questions (Grant Hulbert 1997)
  44. Re: Cart questions (Paul Winchester 1997)
  45. Re: Cart questions (Paul Winchester 1997)
  46. Re: Cart questions (Grant Hulbert 1997)
  47. Cart questions (Paul Winchester 1997)
  48. three cart questions (Thomas Wedderburn-Bisshop 1997)
>>>>>When you add something to a cart, the same page that you were on reloads >>>>>itself (i.e., the cart is not displayed). Is this possible with WebCat??? > > >. Try something like this instead: >> >>>HREF=[thisurl]?command=add&db=[db]&sku=[url][sku][/url]&asskusort=1&cart=[c >art]>Add >>to Cart > > >OK. I'm learning, so please bear with me... > >The above URL is contained within a founditems context on my Results.tpl >page. When I substituted the above code, I got the following error on the >ShoppingCart.tpl page: > >Error: No Search Context Found. Ignoring [founditems] context > >Any ideas??Sorry, I didn't know the details of your results page. You cannot do it that way until you make some changes.There's no search context on the results page, and that means webcat must have received the command=search from the previous URL or form -- not from an embedded [search] context.And since you can send only one command per URL, you cannot do a command=search and a command=add from the same URL ...There are ways around this. In general, it's best to use [search] contexts whenever possible -- so you can use your commands for something else.For example, if you change your results page so that it has a search context wrapped around the founditems context, then you can perform the command=add from the URL above -- while having the search performed from the embedded [search] context in the results page.Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Kenneth Grome

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:

New Command prefs ... (1997) [OT] ISP Windows program (2005) Summing fields (1997) Webmerchant/Cybercash (2000) WC2.0 Memory Requirements (1997) [append] (1997) empty shopping cart message (1997) The & Problem (1998) Referrer from multiple entry points (1998) if else problem: Version 2 (2003) SPAM (OT) (2004) Running more than one WebCatalog serial# (1998) Creating main- and sub-category search (1997) WebCat2 - storing unformatted date data? (1997) 2 easy questions re: [showif] and [sendmail] (1997) A quickie question (1997) Max Record length (1997) Upload Plugin (1998) Buying sans cart (1997) Re1000002: Setting up shop (1997)