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:
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)