Changing SubTotal

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 54045
interpreted = N
texte = 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 ------------------------------------- Technical / Web Administrator T:// 01224 648731 E:// alan@hanon-shop.com W:// http://www.hanon-shop.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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Changing SubTotal ( John Peacock 2003)
  2. Re: Changing SubTotal ( Alan White 2003)
  3. Re: Changing SubTotal ( John Peacock 2003)
  4. Re: Changing SubTotal ( Alan White 2003)
  5. Re: Changing SubTotal ( Donovan Brooke 2003)
  6. Re: Changing SubTotal ( Alan White 2003)
  7. Re: Changing SubTotal ( Alan White 2003)
  8. Re: Changing SubTotal ( Alan White 2003)
  9. Re: Changing SubTotal ( John Peacock 2003)
  10. Re: Changing SubTotal ( Donovan Brooke 2003)
  11. Changing SubTotal ( Alan White 2003)
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 ------------------------------------- Technical / Web Administrator T:// 01224 648731 E:// alan@hanon-shop.com W:// http://www.hanon-shop.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://webdna.smithmicro.com/ Alan White

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:

PDA Browser Emulator (2006) WC2.0 Memory Requirements (1997) Building Calendars (1997) 2nd try: possible to weight results of grouped fieldssearch? (1998) RE: AccountAuthorizer doesn't seem to work (1997) Emailer or [sendmail] questions ... (1998) Revisit: speed test (2002) no template caching (1997) FTP FOLDER PERMISSIONS (2004) emailer on Windows Beta 18 (1997) WC on Linux question (2001) WebDelivery downloads alias, not original ? (1997) Tab Charactor (1997) Mac 4.0b2 Installer Problems (2000) [what] [am] [I] [missing]? (2003) Ooops..Broswer Info.txt (was Web*SSL and WebCatalog) (1997) How do I pass [cart] when user clicks back (2000) ShrPAUL1@aol.com has been banned (2000) system crashes, event log (1997) Two submit buttons ? (1997)