Re: price formula

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 22373
interpreted = N
texte = Ok, I can now get the price to rise 1 when the size is XX-large. My problem is that all the items in the shopping cart have the same size.Can you map out where along the way I convert the new field for size that I made [howbig] instead of textC, back into textC and use the addlineitem. Is it on the shopping cart page? where? The size is choosen on the details page, then sent to the shopping cart page with the [howbig] field set to the size.Thanks. I'm almost there.>I've tried it and you're right. I've checked the code and I see that >unfortunately the value of TextC is not set *before* the price formula is >calculated. This seems like a bug to me. > >The workaround is to pass a differently-named form variable (named >anything, as long as it's not one of the lineitem pre-defined variables), >with the value XX-Large. Here it is with a form variable fred=XX-Large > >price [math][price][showif [fred]=XX-Large]+1[/showif][/math] > >You can then use [SetLineItem] to set the value of textC later in the template______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com Associated Messages, from the most recent to the oldest:

    
  1. Re: price formula (Mike Jones 1999)
  2. Re: price formula (Mike Jones 1999)
  3. Re: price formula (Mike Jones 1999)
  4. Re: price formula (PCS Technical Support 1999)
  5. Re: price formula (PCS Technical Support 1999)
  6. Re: price formula (Mike Jones 1999)
  7. Re: price formula (PCS Technical Support 1999)
  8. price formula (Mike Jones 1999)
  9. Quantity/price formula (jimmy 1998)
Ok, I can now get the price to rise 1 when the size is XX-large. My problem is that all the items in the shopping cart have the same size.Can you map out where along the way I convert the new field for size that I made [howbig] instead of textC, back into textC and use the addlineitem. Is it on the shopping cart page? where? The size is choosen on the details page, then sent to the shopping cart page with the [howbig] field set to the size.Thanks. I'm almost there.>I've tried it and you're right. I've checked the code and I see that >unfortunately the value of TextC is not set *before* the price formula is >calculated. This seems like a bug to me. > >The workaround is to pass a differently-named form variable (named >anything, as long as it's not one of the lineitem pre-defined variables), >with the value XX-Large. Here it is with a form variable fred=XX-Large > >price [math][price][showif [fred]=XX-Large]+1[/showif][/math] > >You can then use [setlineitem] to set the value of textC later in the template______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com Mike Jones

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:

Where's Cart Created ? (1997) Carrying Forward (1998) WebCat2 - Getting to the browser's username/password data (1997) OT: Just for a waste of time (2003) WebCat2 - [format thousands] (1997) Convertchars Problem (2004) [WebDNA] PayPal Instant Payment Notification Guide (2009) Search in 2 or more catalogs (1997) New Site Announcement (1998) [WebDNA] Calculate Cube root (2012) Server IP address? (1998) multiple databases (1997) Help with Repost Data msg from form (1997) Number of Open Databases (1998) emailer (1997) Create Alias and Invisible folder on OSx (2003) Cookies, checking if's enabled... (2004) listfiles-looking for slick solution (1997) How to Display text in empty fields (1997) [quantity] - spoke too soon (1997)