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 acommand=search. This is what enables the [FoundItems] loop to work: itloops thru all the found items in the search. But when you Add somethingto the cart, you are now entering this same page by virtue of acommand=add. This means no search is being performed, and the [FoundItems]loop has no knowledge of what search you intended (hence the correct errormessage).So that means you would need to wrap an explicit [Search] context aroundthe outside of your [FoundItems] loop in order to tell it what to searchfor.Alternately, you could just put a [redirect] onto the ShoppingCart.tpl pagethat causes it to redirect back to the page it just came from. So thevisitor would not see the shopping cart, because the browser instantlyredirects back.Technical Support | ==== eCommerce and Beyond ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>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 acommand=search. This is what enables the
[founditems] loop to work: itloops thru all the found items in the search. But when you Add somethingto the cart, you are now entering this same page by virtue of acommand=add. This means no search is being performed, and the
[founditems]loop has no knowledge of what search you intended (hence the correct errormessage).So that means you would need to wrap an explicit
[search] context aroundthe outside of your
[founditems] loop in order to tell it what to searchfor.Alternately, you could just put a
[redirect] onto the ShoppingCart.tpl pagethat causes it to redirect back to the page it just came from. So thevisitor would not see the shopping cart, because the browser instantlyredirects back.Technical Support | ==== eCommerce and Beyond ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/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)