Re: Setting Cart value
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 32570
interpreted = N
texte = All of our pages include the CartCookie.inc file. Anytime a cart valueneeds to be used it is listed as cart=[cartfromcookie] (usually as aform value). It means that very few of our pages contain any commandline options, and I hope to use POST forms for everything I can at somepoint. It makes for a very clean looking site; see http://www.rowmanlittlefield.com http://www.univpress.com http://www.scarecrowpress.comfor examples of the power of WebCat. All of those sites are exactly the same code (except for some site specific sections like What's New).Only with WebCat could I run multiple sites using exactly the sametemplates.John PeacockMike Davis wrote:> > The problem is that Mark was trying to set a variable named CART, and not> cartfromcookie. I don't think you can change that value on the page. Using> your message would require using showifs in links and forms to make sure you> were passing the right cart value out of that page.> > Mike> > > Don't use [Math] for anything you are not going to perform math on, and> > not just for things that look like numbers. You will be sorry, maybe> > not right away, but at some time you will.> >> > That being said, what you have below should work (we are doing the same> > thing). This is our CartCookie.inc file (remove linebreaks when using):> >> > > >> >> > Mark Derrick wrote:> >>> >> Hi,> >> we're looking to be able to set the [cart] value by pulling it from a> >> previously set cookie.> >> Tried using [math show=f]cart=[GETCOOKIE cookiecart][/math] but no luck, any> >> pointers?> >>> >> Thanks.> >>> >> Mark.> >>> >> > -------------------------------------------------------------> > 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/> > -------------------------------------------------------------> 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/-------------------------------------------------------------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:
All of our pages include the CartCookie.inc file. Anytime a cart valueneeds to be used it is listed as cart=[cartfromcookie] (usually as aform value). It means that very few of our pages contain any commandline options, and I hope to use POST forms for everything I can at somepoint. It makes for a very clean looking site; see http://www.rowmanlittlefield.com http://www.univpress.com http://www.scarecrowpress.comfor examples of the power of WebCat. All of those sites are exactly the same code (except for some site specific sections like What's New).Only with WebCat could I run multiple sites using exactly the sametemplates.John PeacockMike Davis wrote:> > The problem is that Mark was trying to set a variable named CART, and not> cartfromcookie. I don't think you can change that value on the page. Using> your message would require using showifs in links and forms to make sure you> were passing the right cart value out of that page.> > Mike> > > Don't use [math] for anything you are not going to perform math on, and> > not just for things that look like numbers. You will be sorry, maybe> > not right away, but at some time you will.> >> > That being said, what you have below should work (we are doing the same> > thing). This is our CartCookie.inc file (remove linebreaks when using):> >> > > >> >> > Mark Derrick wrote:> >>> >> Hi,> >> we're looking to be able to set the [cart] value by pulling it from a> >> previously set cookie.> >> Tried using [math show=f]cart=[GETCOOKIE cookiecart][/math] but no luck, any> >> pointers?> >>> >> Thanks.> >>> >> Mark.> >>> >> > -------------------------------------------------------------> > 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/> > -------------------------------------------------------------> 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/-------------------------------------------------------------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/
John Peacock
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:
Am I going senile? (Price recalc based on quantity) (1997)
using showpage and showcart commands (1996)
shownext not showing next...still r2 (1997)
NetForms for mail, sorry (1998)
WebCommerce: Folder organization ? (1997)
Sorting error (1997)
WebCat2 Append problem (B14Macacgi) (1997)
Setting up shop (1997)
How to unsubscribe (2000)
SERIAL NUMBER BEING LOST AGAIN!!! (1999)
Include vs. lookup? (1998)
Search crashing server (1998)
Multiple serial numbers (1997)
HELP WITH DATES (1997)
File Upload (1997)
creating a ShipCosts database (1997)
[WebDNA] [grep] bug Crashes WebDNA 6.2 (2014)
Hiding HTML and page breaks (1997)
Forcing a NEWCART (1997)
Re:multiple digests, please stop (1997)