Re: Price Change
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 35580
interpreted = N
texte = Stephen,All you are doing here is setting a value. If you want this to display hereadd a 'show = t' in the math context.[showif [subtotal]>299] [math show=t][subtotal]=[subtotal]+[disco1][/math][/showif]Or simply display the new [subtotal] value after the math context.[showif [subtotal]>299] [math][subtotal]=[subtotal]+[disco1][/math]Your subtotal = [subtotal][/showif]> From: Stephen Russo
> Reply-To: (WebCatalog Talk)> Date: Wed, 2 Aug 2000 10:23:35> To: (WebCatalog Talk)> Subject: Re: Price Change> > Glenn,> I made a db called discount.db.> In there I have:> Name Discount> Disco0 0> Disco1 -50> Disco2 -55> > Just like you suggested.> > In the Invoice.tpl page I put this:> After the subtotal, to see if it worked,> > [showif [subtotal]>299][math][subtotal]=[subtotal]+[disco1][/math][/showif]> > Nothing was shown.> > What am I doing wrong? Any help would be great.> > Stephen> > -----Original Message-----> From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On> Behalf Of Glenn Busbin> Sent: Tuesday, August 01, 2000 6:39 PM> To: WebCatalog Talk> Subject: Re: Price Change> > >> Here is the scenario.>> If a user's subtotal is between 299-499 I want to subtract $50 from the>> price.>> If a user's subtotal is over 500 I want to subtract $55 from the price.>> How do I do this? I tried changing the price in the formula.db file and no>> luck.>> >> Where do I do the math?>> > > > Create a database. Maybe like:> Name Discount> Disco0 0> Disco1 -50> Disco2 -55> > Then, use [showif]'s on the Invoice or ThankYou page to determine the> discount to be given and add it to the Subtotal.> > How's that?> > Glenn> > > > -------------------------------------------------------------> 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:
Stephen,All you are doing here is setting a value. If you want this to display hereadd a 'show = t' in the math context.[showif [subtotal]>299] [math show=t][subtotal]=[subtotal]+[disco1][/math][/showif]Or simply display the new [subtotal] value after the math context.[showif [subtotal]>299] [math][subtotal]=[subtotal]+[disco1][/math]Your subtotal = [subtotal][/showif]> From: Stephen Russo > Reply-To: (WebCatalog Talk)> Date: Wed, 2 Aug 2000 10:23:35> To: (WebCatalog Talk)> Subject: Re: Price Change> > Glenn,> I made a db called discount.db.> In there I have:> Name Discount> Disco0 0> Disco1 -50> Disco2 -55> > Just like you suggested.> > In the Invoice.tpl page I put this:> After the subtotal, to see if it worked,> > [showif [subtotal]>299][math][subtotal]=[subtotal]+[disco1][/math][/showif]> > Nothing was shown.> > What am I doing wrong? Any help would be great.> > Stephen> > -----Original Message-----> From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On> Behalf Of Glenn Busbin> Sent: Tuesday, August 01, 2000 6:39 PM> To: WebCatalog Talk> Subject: Re: Price Change> > >> Here is the scenario.>> If a user's subtotal is between 299-499 I want to subtract $50 from the>> price.>> If a user's subtotal is over 500 I want to subtract $55 from the price.>> How do I do this? I tried changing the price in the formula.db file and no>> luck.>> >> Where do I do the math?>> > > > Create a database. Maybe like:> Name Discount> Disco0 0> Disco1 -50> Disco2 -55> > Then, use [showif]'s on the Invoice or ThankYou page to determine the> discount to be given and add it to the Subtotal.> > How's that?> > Glenn> > > > -------------------------------------------------------------> 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/
dale
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:
[SQL] on MacOs to SQL Server ... HOW TO? (2000)
OH CRAP!!!!!- Template not found error!!! (1999)
Attn: Bug in GeneralStore example b15 (1997)
Date field search needs ... (1998)
[BULK] Fwd: [WebDNA] [BULK] WebDNA discovery in the Console - [having many crashes] (2011)
Grep on Emails w/ Multiple Dots (2004)
policies, slightly OT (2004)
Dubble Sku's in a Database (1999)
Webcat 4.0.x and apache 2.x (2002)
Searching help needed (1998)
Can't Update records (1997)
Permission Denied Error (2001)
WebCat2: multiple currency support (1997)
PCS Emailer's role ? (1997)
Browser Problem?!? POST forms and NN 4.0+ browsers (1997)
LOOKUP and Math operations (2001)
Resume Catalog ? (1997)
searching multiple databases (1997)
Replace Statement (1997)
authorize.net AIM (2003)