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:

[quantity] - spoke too soon (1997) redirect within a showif (1998) can webcat create directories on NT? (1997) Not really WebCat (1997) Displaying xx number of characters (1997) TCP Connect over SSL? (2000) Where can I download to test? (2003) Drop Down Menus (2002) Webcat2, WebCommerce, Mod 10 etc. (1997) AOL and [redirect] (2000) Re:2nd WebCatalog2 Feature Request (1996) FW: Username and password in tcp connect/send (2001) Credit Card not accepted (1998) Here we go again... (2006) [format 40s]text[/format] doesn't work (1997) Showif for mulitple variations (1997) OT: PC and Wireless Network (2003) question: webdelivery folder and file (1997) Error Lob.db records error message not name (1997) A little syntax help (1997)