[shippingtotal] still...

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 45756
interpreted = N
texte = This code correctly figures the shipping total on a template:[math show=f]shippingtotal=0[/math] [math show=f]ordered=0[/math][orderfile ShoppingCarts/[GetCookie SessionID]] [lineitems] [math show=f]ordered=[ordered]+[quantity][/math] [/lineitems] [/orderfile]
Shippingtotal=[showif [ordered]>1][math]shippingtotal=0.00[/math][/showif] [showif [ordered]=1][math]shippingtotal=6.50[/math][/showif]On this template, the shopper has the option of clicking a checkbox to delete an item and/or changing the quantity of an item. There is an update button on the page, so the page submits the form data to itself to display the updated cart contents. So, the above code has to go below the [setlineitem] context that accomplishes that.Now, the million dollar question:1) How can I use the above in Formulas.db to properly calculate the shipping charges? 2) Can I somehow override the shipping cost calculated in Formulas.db with the above WebDNA in a template?Thanks,-Will ------------------------------------------------------------- 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: [shippingtotal] still... (John Peacock 2002)
  2. Re: [shippingtotal] still... (Donovan 2002)
  3. Re: [shippingtotal] still... (John Peacock 2002)
  4. Re: [shippingtotal] still... (Donovan 2002)
  5. Re: [shippingtotal] still... (Donovan 2002)
  6. Re: [shippingtotal] still... (John Peacock 2002)
  7. [shippingtotal] still... (WJ Starck 2002)
This code correctly figures the shipping total on a template:[math show=f]shippingtotal=0[/math] [math show=f]ordered=0[/math][orderfile ShoppingCarts/[GetCookie SessionID]] [lineitems] [math show=f]ordered=[ordered]+[quantity][/math] [/lineitems] [/orderfile]
Shippingtotal=[showif [ordered]>1][math]shippingtotal=0.00[/math][/showif] [showif [ordered]=1][math]shippingtotal=6.50[/math][/showif]On this template, the shopper has the option of clicking a checkbox to delete an item and/or changing the quantity of an item. There is an update button on the page, so the page submits the form data to itself to display the updated cart contents. So, the above code has to go below the [setlineitem] context that accomplishes that.Now, the million dollar question:1) How can I use the above in formulas.db to properly calculate the shipping charges? 2) Can I somehow override the shipping cost calculated in formulas.db with the above WebDNA in a template?Thanks,-Will ------------------------------------------------------------- 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/ WJ Starck

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:

Last Day of the Month (2005) PCS Frames (1997) Make sure I understand this??? (1997) textarea inputs and returns - sending HTML email (1999) Statistics... (2004) using showpage and showcart commands (1996) Smart caching problems with 2.1b3? (1997) page redirect in webDNA (1997) Multiple cart additions (1997) What am I missing (1997) [OT] HTML render (2003) Interesting speed comparison .. (2003) OT : javascript form filling (2000) seeminly simple... but beyond my grasp :) (2000) too many nested tags ... (1997) WebCat2.0 acgi vs plugin (1997) PSC recommends what date format yr 2000??? (1997) HELP WITH DATES (1997) I'm having trouble using [url][interpret][math] together in lookup (1997) LOOP and IF statements (1997)