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 onsubtotals. However, when a customer adds to their cart by going back to oursearch page, the subtotal does not recalculate and the user has to Reload thepage to obtain the correct shipping total. Is there a way to cause theshipping total to recalculate based on the new subtotal created when productsare added?Here is the formula from the formulas.db to calculate the shipping costs basedon 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-1400jmcdonald@k12.dserv.com 1335 Dublin Rd St.118-D fax: 614-488-4622Edu. Mrkt. Rep/WebMaster Columbus, OH 43215 http://www.dserv.com____________________________________________________________________________
Associated Messages, from the most recent to the oldest:
| |
- Recalculating Shipping Costs (McDonald, Jim 1997)
|
Grant:You were so kind to give me a cost variable solution to shipping costs based onsubtotals. However, when a customer adds to their cart by going back to oursearch page, the subtotal does not recalculate and the user has to Reload thepage to obtain the correct shipping total. Is there a way to cause theshipping total to recalculate based on the new subtotal created when productsare added?Here is the formula from the
formulas.db to calculate the shipping costs basedon 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-1400jmcdonald@k12.dserv.com 1335 Dublin Rd St.118-D fax: 614-488-4622Edu. 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:
Showing specific [cart] contents (1998)
[WebDNA] Best practice re: password storage (2013)
WebCatalog can't find database (1997)
WebCat2: Items xx to xx shown, etc. (1997)
Problem with updating 2.1b7 -> 2.1.1 (1998)
Sending E-mail (1997)
(2000)
Template not found error messages (1997)
simple answer? [hideif] (1997)
Redirect and Window Size (2000)
800x600 (2003)
MacAuthorize order data fields WAS:How To question... (1997)
Template Cache problem, bombing WebSTAR problem (2000)
unable to launch acgi in WebCat (1997)
Non-Cart Files in Shopping Cart Folder (1997)
writing db to disk (1997)
Installing WebCatalog 4.5.1 (2004)
sort problems....bug or brain fart? (1997)
WebMerchant Integration with Verifone's vPOS (1998)
Ongoing group search problems ... (1997)