Re: price formula

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 22382
interpreted = N
texte = I figured it out. I had to set howbig=[howbig]&textC=[howbig] on the same page that sent the add command. textC is used for the cart and [howbig] is used for the formula.db >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)
I figured it out. I had to set howbig=[howbig]&textC=[howbig] on the same page that sent the add command. textC is used for the cart and [howbig] is used for the formula.db >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:

PIXO support (1997) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) AOL and [referrer] (2001) TABLE (2003) cookies and [returnraw] (1997) Calendar using WebCatalog? (1997) Emailer error 550? (1999) Re:quit command on NT (1997) [protect admin] (1997) Help (1999) possible, WebCat2.0 and checkboxes-restated (1997) RE: WebCat name recognition (was MacFinder -- a new WebDNAweb (1998) Help! WebCat2 bug (1997) WCS Newbie question (1997) [delete] problem (1997) PSC recommends what date format yr 2000??? (1997) Double Spacing in Mails from Sendmail (2002) Secure Server (1999) Shopping Cart Page (1997) Multiple prices (1997)