Re: Subtotal and Grand Total Changes

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 27198
interpreted = N
texte = Rather than mess with subtotal and grandtotal, which are well understood concepts with a long history outside e-commerce, you should be changing the cart price itself. Try this instead:[SetLineItem Cart=[CART]&index=3&db=catalog.db]password=mypass&price=[Newprice][/SetLineItem](line breaks courtesy of e-mail software). Note that the documentation is incorrect in that the password must be in the Context section, not the Parameter section. This code will never be displayed to the browser, so there is no security risk to having the password appear in the template. Of course, if someone can gain physical access to your server, all bets are off.HTHJohn Peacock____________________Reply Separator____________________ Subject: Subtotal and Grand Total Changes Author: (WebCatalog Talk) Date: 2/8/00 9:40 AMHow do you change the formula for subtotal and total changes. I looked in the formulas.db and I do not see where they get added.I have a new value for price called newprice. Now I want that value to be added to the grand total and subtotal.Any thoughts?------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 Associated Messages, from the most recent to the oldest:

    
  1. Re: Subtotal and Grand Total Changes (jpeacock@univpress.com 2000)
Rather than mess with subtotal and grandtotal, which are well understood concepts with a long history outside e-commerce, you should be changing the cart price itself. Try this instead:[SetLineItem Cart=[cart]&index=3&db=catalog.db]password=mypass&price=[Newprice][/SetLineItem](line breaks courtesy of e-mail software). Note that the documentation is incorrect in that the password must be in the Context section, not the Parameter section. This code will never be displayed to the browser, so there is no security risk to having the password appear in the template. Of course, if someone can gain physical access to your server, all bets are off.HTHJohn Peacock____________________Reply Separator____________________ Subject: Subtotal and Grand Total Changes Author: (WebCatalog Talk) Date: 2/8/00 9:40 AMHow do you change the formula for subtotal and total changes. I looked in the formulas.db and I do not see where they get added.I have a new value for price called newprice. Now I want that value to be added to the grand total and subtotal.Any thoughts?------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 jpeacock@univpress.com

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:

[BULK] [WebDNA] Version 7 Config problem (2011) Late on Friday.... brain fried (2002) Invisible chars (gremlins) ok in db? (2000) ah ha (2002) CommandSecurity? (1997) Cart -> Date and Time (2004) Did you hear about this? (1997) Help name our technology! I found it (1997) WebCat2b12 CGI Mac -- Problems propagating the cart through (1997) question: back button prevention (1997) Referrer field to header field conversion (1997) 2 field showif/hideif's (2002) fckeditor in Browswer html editor (2005) Postprocessing CCs (2000) [OT] Checkboxes! Javascript? (2005) Trouble with formula.db + more explanation (1997) Searching multiple fields from one form field (1997) WebCatalog for Postcards ? (1997) [WebDNA] Processor Maxing out (2010) Price Change (2000)