Re: Cart Question

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 21269
interpreted = N
texte = >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] contextThe first time you hit Results.tpl, you arrive by virtue of a command=search. This is what enables the [FoundItems] loop to work: it loops thru all the found items in the search. But when you Add something to the cart, you are now entering this same page by virtue of a command=add. This means no search is being performed, and the [FoundItems] loop has no knowledge of what search you intended (hence the correct error message).So that means you would need to wrap an explicit [Search] context around the outside of your [FoundItems] loop in order to tell it what to search for.Alternately, you could just put a [redirect] onto the ShoppingCart.tpl page that causes it to redirect back to the page it just came from. So the visitor would not see the shopping cart, because the browser instantly redirects back.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ 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)
>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] contextThe first time you hit Results.tpl, you arrive by virtue of a command=search. This is what enables the [founditems] loop to work: it loops thru all the found items in the search. But when you Add something to the cart, you are now entering this same page by virtue of a command=add. This means no search is being performed, and the [founditems] loop has no knowledge of what search you intended (hence the correct error message).So that means you would need to wrap an explicit [search] context around the outside of your [founditems] loop in order to tell it what to search for.Alternately, you could just put a [redirect] onto the ShoppingCart.tpl page that causes it to redirect back to the page it just came from. So the visitor would not see the shopping cart, because the browser instantly redirects back.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ PCS Technical Support

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:

StoreBuilder help/question (2000) Support ?? (1997) ShowNext (1997) Prevent multiple appends with Reload Button (1997) Can WC remember people? (1998) multi-paragraph fields (1997) WebCat2 several catalogs? (1997) SM's Tech Help (2000) RE: [WebDNA] Show next..... (2010) WebCat2: Items xx to xx shown, etc. (1997) Logout? (1998) Order not created error (never mind) (1997) Internet Explorer 6 Form problems (2005) PCS Frames (1997) [BoldWords] WebCat.acgib15Mac (1997) Secure server question (1997) Uh...can someone help me out with the b10? (1997) Word Breaks (1998) .html to .tpl (1998) any idea (2004)