Recalculating Shipping Costs

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 15270
interpreted = N
texte = Grant:You were so kind to give me a cost variable solution to shipping costs based on subtotals. However, when a customer adds to their cart by going back to our search page, the subtotal does not recalculate and the user has to Reload the page to obtain the correct shipping total. Is there a way to cause the shipping total to recalculate based on the new subtotal created when products are added?Here is the formula from the formulas.db to calculate the shipping costs based on the subtotal: shipCost [math show=f]rate=.04[/math][showif [subtotal]>499.99][math show= f]rate=.03[/math][/showif][showif [subtotal]>1499.99][math show=f]rate=.02[/ math][/showif][math][subtotal]*rate[/math]Thank you for your help.____________________________________________________________________________ Jim McDonald DataServ, Inc. tel: 614-488-1400 jmcdonald@k12.dserv.com 1335 Dublin Rd St.118-D fax: 614-488-4622 Edu. Mrkt. Rep/WebMaster Columbus, OH 43215 http://www.dserv.com ____________________________________________________________________________ Associated Messages, from the most recent to the oldest:

    
  1. Recalculating Shipping Costs (McDonald, Jim 1997)
Grant:You were so kind to give me a cost variable solution to shipping costs based on subtotals. However, when a customer adds to their cart by going back to our search page, the subtotal does not recalculate and the user has to Reload the page to obtain the correct shipping total. Is there a way to cause the shipping total to recalculate based on the new subtotal created when products are added?Here is the formula from the formulas.db to calculate the shipping costs based on the subtotal: shipCost [math show=f]rate=.04[/math][showif [subtotal]>499.99][math show= f]rate=.03[/math][/showif][showif [subtotal]>1499.99][math show=f]rate=.02[/ math][/showif][math][subtotal]*rate[/math]Thank you for your help.____________________________________________________________________________ Jim McDonald DataServ, Inc. tel: 614-488-1400 jmcdonald@k12.dserv.com 1335 Dublin Rd St.118-D fax: 614-488-4622 Edu. Mrkt. Rep/WebMaster Columbus, OH 43215 http://www.dserv.com ____________________________________________________________________________ McDonald, Jim

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:

Running _every_ page through WebCat ? (1997) Re:2nd WebCatalog2 Feature Request (1996) Feedback on new features (2000) [OT] Command line - OSX (2005) &max= (2003) Bug? (1997) WebCatalog seems to choke on large (2meg) html files. (1998) Date Comparison (2003) [WebDNA] Rewrite url (2013) Price Change (2000) A little syntax help (1997) Target wit redirect (1998) Uh...can someone help me out with the b10? (1997) WebCatalog f2 Installation (1997) select multiple (1997) Bug or syntax error on my part? (1997) [include file=filename.inc&strip=t] (2002) Document Contains No Data! (1997) date sorting and 'template (1997) Re:2nd WebCatalog2 Feature Request (1996)