Re: price formula

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 22372
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:

WebCat2 - [format thousands] (1997) Replace context problem ... (1997) Followup question re: checksum for credit cards? (1997) cart ID (1998) Adding Fields To Db from DB Helper (1999) Context and commands (1998) CVS Files for databases (2000) formatting dates from a field ... (1997) PCS Emailer's role ? (1997) [WebDNA] Froala Editor working with WebDNA (2016) Practice runs ? (1997) t or f (1997) [TaxableTotal] - not working with AOL and IE (1997) Not really WebCat (1997) Image magik (2003) Faxing orders in place of email (1997) Dynamically Generated Pages & WC? (2000) Encrypting the URL Query String (2003) Need relative path explanation (1997) Order not created error (1997)