Re: Setting Cart value

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 32589
interpreted = N
texte = I stand corrected. I only assumed that once a [cart] was established on a page that it could not be changed by establishing it as a math or text variable but I have just verified that the [cart] value can be changed, even within an orderfile context. But it would not be changeable if the cart was passed in from a form or url.Mike> All of our pages include the CartCookie.inc file. Anytime a cart value > needs to be used it is listed as cart=[cartfromcookie] (usually as a > form value). It means that very few of our pages contain any command > line options, and I hope to use POST forms for everything I can at some > point. It makes for a very clean looking site; see > > http://www.rowmanlittlefield.com > http://www.univpress.com > http://www.scarecrowpress.com > > for 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 same > templates. > > John Peacock > > Mike 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/ ------------------------------------------------------------- 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: Setting Cart value (John Peacock 2000)
  2. Re: Setting Cart value (Mark Derrick 2000)
  3. Re: Setting Cart value (Mike Davis 2000)
  4. Re: Setting Cart value (Kenneth Grome 2000)
  5. Re: Setting Cart value (John Peacock 2000)
  6. Re: Setting Cart value (John Butler 2000)
  7. Re: Setting Cart value (John Peacock 2000)
  8. Re: Setting Cart value (John Peacock 2000)
  9. Re: Setting Cart value (Mark Derrick 2000)
  10. Re: Setting Cart value (Mike Davis 2000)
  11. Re: Setting Cart value (John Peacock 2000)
  12. Re: Setting Cart value (Joseph D'Andrea 2000)
  13. Re: Setting Cart value (Mark Derrick 2000)
  14. Re: Setting Cart value (John Peacock 2000)
  15. Setting Cart value (Mark Derrick 2000)
  16. Re: Setting Cart value (Theo Najim 2000)
I stand corrected. I only assumed that once a [cart] was established on a page that it could not be changed by establishing it as a math or text variable but I have just verified that the [cart] value can be changed, even within an orderfile context. But it would not be changeable if the cart was passed in from a form or url.Mike> All of our pages include the CartCookie.inc file. Anytime a cart value > needs to be used it is listed as cart=[cartfromcookie] (usually as a > form value). It means that very few of our pages contain any command > line options, and I hope to use POST forms for everything I can at some > point. It makes for a very clean looking site; see > > http://www.rowmanlittlefield.com > http://www.univpress.com > http://www.scarecrowpress.com > > for 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 same > templates. > > John Peacock > > Mike 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/ ------------------------------------------------------------- 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/ Mike Davis

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:

F*** you (1998) shipcost (1997) Problems reading files created by WC (1997) Undocumented changes create problems in webcat 4 ... (2000) Color options for items (1999) Displaying text and populating form fields (2005) read and write you own cookies with webcat (1997) textarea inputs and returns (1999) popups, netscape vs explorer (1997) Error, 101 a DNS problem ? (1997) redirect strangeness (2000) Location of Browser Info.txt file (1997) Converting Esiting Html Table Forms to WebCat (1997) Webstar 1.3.1 PPC (1997) Strange conversions (2001) Webcat causing crashes left and right! (1997) Separate SSL Server (1997) nesting limits? (1998) flushdatabases (2000) NetForms for mail, sorry (1998)