Re: Keeping the cart alive through multiple add commands

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 34058
interpreted = N
texte = >I'm still having trouble keeping my cart alive through the add command. >I'm certain I'm passing the cart value in the URL back to my add to cart >page ...How can you be certain? What cart value is actually being passed into the page? Do you have [formvariables][name]=[value]
[/formvariables] on the page so you can actually *see* which variables are being passed into the page? If not, then you really do not know if the current cart value is actually being passed to the page ... > ... but when I click add a new cart value is assigned.The only time a new cart value is created is when the current cart value is NOT passed into the page. Therefore, I believe something is *preventing* the current cart value from being passed into the page ... >Here's my add code: > >HREF=../ShoppingCart.tpl?command=add&cart=[cart]&db=fitproducts.db&sku=[url][sku][/url]&textB=[lookup > >db=../fitproducts.db&value=[sku]&lookinfield=sku&returnfield=textB¬found=notfound]> >color=00005e>Select for Download1- put [formvariables][name]=[value]
[/formvariables] on the page. This is the first and best debugging technique available in webcatalog, and this code belong in *ALL* your templates until the entire site is finished, working properly and ready to go live.2- check the db paths to make sure they are correct. You cannot expect it to work when you reference the fitproducts.db in two different places, but that's exactly what you're doing. Is that db file at ../fitproducts.db, or is it actually at fitproducts.db? Hint: Why don't you put all your .tpl files and .db files and .inc files in the same directory until you're finished coding this site? Then you don't have to worry about using the wrong paths.3- wrap the cart tag *and* the lookup tag in a url context. Any value that is referenced as a webdna tag should always be placed inside a url context unless you are absolutely positively 100% certain that it is impossible for that value to have a space in it, or any other non-url-acceptable character for that matter.4- the value in the lookup tag is *case sensitive*. If there's any chance that your [sku] value is not *exactly* the same case as the sku value in the db, you should be using a search context instead of a lookup. ================================ Kenneth Grome, WebDNA Consultant 808-737-6499 http://webdna.net ================================------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Keeping the cart alive through multiple add commands (Kenneth Grome 2000)
  2. Keeping the cart alive through multiple add commands (Robert McPeak 2000)
>I'm still having trouble keeping my cart alive through the add command. >I'm certain I'm passing the cart value in the URL back to my add to cart >page ...How can you be certain? What cart value is actually being passed into the page? Do you have [formvariables][name]=[value]
[/formvariables] on the page so you can actually *see* which variables are being passed into the page? If not, then you really do not know if the current cart value is actually being passed to the page ... > ... but when I click add a new cart value is assigned.The only time a new cart value is created is when the current cart value is NOT passed into the page. Therefore, I believe something is *preventing* the current cart value from being passed into the page ... >Here's my add code: > >HREF=../ShoppingCart.tpl?command=add&cart=[cart]&db=fitproducts.db&sku=[url][sku][/url]&textB=[lookup > >db=../fitproducts.db&value=[sku]&lookinfield=sku&returnfield=textB¬found=notfound]> >color=00005e>Select for Download1- put [formvariables][name]=[value]
[/formvariables] on the page. This is the first and best debugging technique available in webcatalog, and this code belong in *ALL* your templates until the entire site is finished, working properly and ready to go live.2- check the db paths to make sure they are correct. You cannot expect it to work when you reference the fitproducts.db in two different places, but that's exactly what you're doing. Is that db file at ../fitproducts.db, or is it actually at fitproducts.db? Hint: Why don't you put all your .tpl files and .db files and .inc files in the same directory until you're finished coding this site? Then you don't have to worry about using the wrong paths.3- wrap the cart tag *and* the lookup tag in a url context. Any value that is referenced as a webdna tag should always be placed inside a url context unless you are absolutely positively 100% certain that it is impossible for that value to have a space in it, or any other non-url-acceptable character for that matter.4- the value in the lookup tag is *case sensitive*. If there's any chance that your [sku] value is not *exactly* the same case as the sku value in the db, you should be using a search context instead of a lookup. ================================ Kenneth Grome, WebDNA Consultant 808-737-6499 http://webdna.net ================================------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ 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:

Emails are Stuck (2003) emailer settings and control questions (1997) WebCatalog Hosting (1996) Poll Please (2002) Help! WebCat2 bug (1997) This message couldn't reach the list! (multi-column (1998) Searching with a form (2000) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) Showif for mulitple variations (1997) emailer w/F2 (1997) Can't load tmpl files (1997) Multiple Pulldowns/Gary (1997) WebMerchant - MacAuthorize (1999) Weekly Triggers??? (2000) Setting up shop (1997) NumFound (1999) How to include weather (2000) For you expert WebDNA coders (was Interesting speed (2003) Which GUI HTML editors work with WC ? (1997) THANKS!!! ShipCosts.db and debugging (1997)