Re: Changing SubTotal
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 54046
interpreted = N
texte = Hi Alan, you are on the right track.check out:http://webdna.smithmicro.com/ref/pages.html?context=PurchaseCommand.html(you cannot override SubTotal directly (as it is a calculated value).DonovanP.S., you might need the password for price changes??? can't remember offthe top of my head.DonovanAlan White wrote:> Hi Folks> > I was wondering if someone might be able to give advise on some code I have> done to try and get a discount voucher working.> > On my billing page I ask the user to add a voucher number of they have one> and then on my invoice page I have used the following code :-> > [!] -- Where HEADER39 is the enteredDiscountNumber -- [/!]> > [text]voucherNo=1234567[/text]> [showif [HEADER39]=[voucherNo]]> [text]discountSubTotal=[math][subTotal]-(([subTotal]/100)*40)[/math][/text]> [setheader cart=[cart]]subTotal=[discountSubTotal][/setlineitem][/setheader]> > [!] -- To test discountSubTotal -- [/!]> discount Subtotal should be [discountSubTotal]> [/showif]> > [!] -- End Discount -- [/!]> > The correct discount is being calculated but I am getting lost as to> changing the subTotal to my new value.> > Hope someone can help...> > Alan-- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------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://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Hi Alan, you are on the right track.check out:http://webdna.smithmicro.com/ref/pages.html?context=PurchaseCommand.html(you cannot override SubTotal directly (as it is a calculated value).DonovanP.S., you might need the password for price changes??? can't remember offthe top of my head.DonovanAlan White wrote:> Hi Folks> > I was wondering if someone might be able to give advise on some code I have> done to try and get a discount voucher working.> > On my billing page I ask the user to add a voucher number of they have one> and then on my invoice page I have used the following code :-> > [!] -- Where HEADER39 is the enteredDiscountNumber -- [/!]> > [text]voucherNo=1234567[/text]> [showif [HEADER39]=[voucherNo]]> [text]discountSubTotal=[math][subTotal]-(([subTotal]/100)*40)[/math][/text]> [setheader cart=[cart]]subTotal=[discountSubTotal][/setlineitem][/setheader]> > [!] -- To test discountSubTotal -- [/!]> discount Subtotal should be [discountSubTotal]> [/showif]> > [!] -- End Discount -- [/!]> > The correct discount is being calculated but I am getting lost as to> changing the subTotal to my new value.> > Hope someone can help...> > Alan-- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------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://webdna.smithmicro.com/
Donovan Brooke
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:
RE:It just Does't add up!!! (1997)
Fixed: 2cd pair of eyes please. (2003)
[shell] (2002)
Cache headers - WebDNA 5 (2005)
[shownext max (1997)
Re[2]: New syntax feedback for 4.0 (2000)
4.0x on production server (2000)
Signal Raised (1997)
IE-caching (1998)
WebCatalog for guestbook ? (1997)
Calculate UnitShipCost in Formulas.db (1999)
[WebDNA] v7 Stress Test and Strange Behaviour (2012)
Cart# (1997)
wild question (1998)
Error Messges (1997)
http://www.smithmicro.com/WebDNAReference/ current? (2000)
WebCat2b12 CGI Mac - [shownext] problem (1997)
SET (1998)
Unable to view next 101-200 (1997)
Cart # Starting at 1000 (2000)