Cart creation techniques (was Re: Problems with Price field)
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 15360
interpreted = N
texte = >Next question...>>Shouldn't this create a new cart?>>store/Results.tmpl$search?db=PC.db&woCategorydatarq=Electrical&rank=off&searchT>i>tle=Electrical&max=10&cart=[cart]>>It creates one called [cart].That's because there's no existing [cart] value on the page yourhyperlink is on, and that's why, when you put 'cart=[cart]' into yourhyperlink, WebCat sets the [cart] value on the next page equal to[cart], literally -- because that's exactly what you're telling itto do.Unless there's already a [cart] value on your page with thehyperlink, there's no reason to put the 'cart=[cart]' parameter intothat link. The 'cart=[cart]' parameter is used only for PASSING theexisting [cart] value to the next page, not for creating a new [cart]values ... :)Valuable Tip:An excellent method for seeing what form variable values are set oneach of your WebDNA pages is to use the [formvariables] context asdescribed in the HTML docs. I use it on every page I create while I'mstill in the 'creation and testing' process, because it saves me lotsof time trying to figure out what values WebCat thinks are on eachpage.In other words, USE IT! Your life will get a LOT easier if you do ... :)Sincerely, Ken GromeWebDNA Solutionshttp://www.smithmicro.com/webdnasolutions/...
Associated Messages, from the most recent to the oldest:
>Next question...>>Shouldn't this create a new cart?>>store/Results.tmpl$search?db=PC.db&woCategorydatarq=Electrical&rank=off&searchT>i>tle=Electrical&max=10&cart=
[cart]>>It creates one called
[cart].That's because there's no existing
[cart] value on the page yourhyperlink is on, and that's why, when you put 'cart=
[cart]' into yourhyperlink, WebCat sets the
[cart] value on the next page equal to
[cart], literally -- because that's exactly what you're telling itto do.Unless there's already a
[cart] value on your page with thehyperlink, there's no reason to put the 'cart=
[cart]' parameter intothat link. The 'cart=
[cart]' parameter is used only for PASSING theexisting
[cart] value to the next page, not for creating a new
[cart]values ... :)Valuable Tip:An excellent method for seeing what form variable values are set oneach of your WebDNA pages is to use the
[formvariables] context asdescribed in the HTML docs. I use it on every page I create while I'mstill in the 'creation and testing' process, because it saves me lotsof time trying to figure out what values WebCat thinks are on eachpage.In other words, USE IT! Your life will get a LOT easier if you do ... :)Sincerely, Ken GromeWebDNA Solutionshttp://www.smithmicro.com/webdnasolutions/...
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:
How do I specify a & character in Grep? (2000)
[AppendFile] problem (WebCat2b13 Mac .acgi) (1997)
Faxing orders in place of email (1997)
Forms Search Questions (1997)
[SearchString] usage (1997)
[WebDNA] Some code inside a large loops fail ... but why? (2010)
Problems with [Search] param - Mac Plugin b15 (1997)
[shell] (2002)
creating a ShipCosts database (1997)
Check Boxes (2000)
GoLive CyberStudio 1.0.1 (1997)
RE: Template not found error messages (1997)
price carry over (1997)
Page Showing 3 times (2000)
[WebDNA] WebDNA future (2010)
Header Problems (1998)
[WebDNA] difference in formatting [time] (2011)
WC2b12: Yes, Formulas.db is for real (1997)
Payment calculator ?? (2000)
RE: [WebDNA] WebDNA & mySQL (2008)