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 Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Associated Messages, from the most recent to the oldest:
>>>>>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 Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://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:
[LOOKUP] (1997)
[WebDNA] Image resizing on the fly (2012)
[format 40s]text[/format] doesn't work (1997)
more on my bbs (1997)
[cart] not being interpreted inside [founditems] (1997)
encrypt/decrypt failing (2000)
OK, here goes... (1997)
Can't load tmpl files (1997)
WebCatalog on Windows 98 (2000)
Apache and Webdna (2005)
Summing fields (1997)
Another bug to squash (WebCat2b13 Mac .acgi) (1997)
Time/date formatting %X doesn't work ... (1997)
Email (1998)
search command (1999)
Dark Horse Comics success story (1997)
error: Too many nested [xxx] contexts (1997)
Associative lookup style? (1997)
Another question (1997)
transferring values (1998)