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:

Custom Tags or Modular Code (2001) Math with Time (1997) Configuring E-mail (1997) Re2: frames & carts (1997) Web Delivery First Time Setup Trouble (2000) suggestions for a Windows based text editor? (2004) Share Bulletin Board? (1998) Error: Can't open order file. Ignoring [OrderFile] context (2000) Max Record length restated as maybe bug (1997) [WebDNA] Parsing XML...again... (2010) bug in [SendMail] (1997) listfiles, moving files (1998) File Upload (1997) sendmail spaces (1997) WebDNA > IM Client? (2004) WebCat2b13MacPlugIn - [include] (1997) OSX Install error (2000) Hummm .... (2002) More on the email templates (1997) WebCatalog can't find database (1997)