Re: Price Change
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 35617
interpreted = N
texte = Glenn,That works fine.But when I go to change subtotal to the new discounted price it does notchange. That is my main problem, changing subtotal to the new price.Stephen-----Original Message-----From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]OnBehalf Of Glenn BusbinSent: Wednesday, August 02, 2000 8:46 AMTo: WebCatalog TalkSubject: Re: Price ChangeThere's more than one way to skin a cat using WC. The database approach Isuggested (late at night after a long day) is one, but since your discountsare so simple, you can also just sum the costs of the items in the cart anduse some [showif] [hideif] stuff.Sum the costs of the items BEFORE getting to [subtotal]. Then evaluate thetemporarysubtotal to see if a discount should be given. If so, add anegative number to the cart that will deduct the appropriate amount.Try something along the order of:[showif [temporarysubtotal]>299] [hideif [temporarysubtotal]>499][Discount]=-50[/hideif][/showif][showif [temporarysubtotal]>499] [Discount]=-55[/showif]In the html for the page, add a line that will display whatever discount isgiven or hide it if there isn't one.[showif [Discount]>0]
Discount= | [Discount] |
[/showif]Then continue with the html and WC stuff as if there were no discountincluded. The negative values of [Discount] will be added to the cost ofthe Items ordered and will not foul up WC's built-in use of the [subtotal]and [grandtotal] calcs.
Subtotal= | [subtotal] |
Taxes= | [tax] |
Grandtotal= | [grandtotal] |
etc.Lemme know how it works out.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 toWeb 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:
Glenn,That works fine.But when I go to change subtotal to the new discounted price it does notchange. That is my main problem, changing subtotal to the new price.Stephen-----Original Message-----From: WebCatalog Talk [mailto:WebDNA-Talk@talk.smithmicro.com]OnBehalf Of Glenn BusbinSent: Wednesday, August 02, 2000 8:46 AMTo: WebCatalog TalkSubject: Re: Price ChangeThere's more than one way to skin a cat using WC. The database approach Isuggested (late at night after a long day) is one, but since your discountsare so simple, you can also just sum the costs of the items in the cart anduse some [showif] [hideif] stuff.Sum the costs of the items BEFORE getting to [subtotal]. Then evaluate thetemporarysubtotal to see if a discount should be given. If so, add anegative number to the cart that will deduct the appropriate amount.Try something along the order of:[showif [temporarysubtotal]>299] [hideif [temporarysubtotal]>499][Discount]=-50[/hideif][/showif][showif [temporarysubtotal]>499] [Discount]=-55[/showif]In the html for the page, add a line that will display whatever discount isgiven or hide it if there isn't one.[showif [Discount]>0]Discount= | [Discount] |
[/showif]Then continue with the html and WC stuff as if there were no discountincluded. The negative values of [Discount] will be added to the cost ofthe Items ordered and will not foul up WC's built-in use of the [subtotal]and [grandtotal] calcs.Subtotal= | [subtotal] |
Taxes= | [tax] |
Grandtotal= | [grandtotal] |
etc.Lemme know how it works out.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 toWeb 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/
Stephen Russo
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:
ShipCost Data Base (1998)
[OT] Mom's gift (2006)
[OT]Target Links (advanced??) (2001)
Can ShowNext do this? (2000)
Setting up shop (1997)
[WebDNA] maybe silly suggestion? [founditems] (2015)
A national Zip base sales tax db? (1999)
WebCatalog2 Feature Feedback (1996)
I have troubles to send message out (1998)
Separate SSL Server (1997)
Hierarchy of form/text/math variables (2000)
Incompatibility with WebCat 3 templates ... (2000)
problems with 2 tags (1997)
Dummy Credit Card Number for debug? (1997)
[WebDNA] [BULK] [middle] behavior (2020)
[isfile] ? (1997)
Dynamic Image Generation (2000)
[WriteFile] problems (1997)
Multiple security dbs (1997)
Date search bug? (1998)