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:
Remote delivery (1998)
Web Catalog vs. ICAT (1997)
UN-WANTED character conversion (1999)
Multiple Ad databases? (1997)
Size images (2002)
[include ...] behavior (1997)
Errata: WCS Newbie question (1997)
Deadlock (1998)
Just Testing (1997)
Forms (1998)
space at start of menu (2000)
Multiple fields on 1 input (1997)
OK, here goes... (1997)
[FEATURE REQUEST] (2004)
OT: [WAY IN RIGHT FIELD SOMEWHERE] Spam Filters (2005)
Quitting WebMerchant ? (1997)
OT: Just for a waste of time (2003)
GuestBook example (1997)
How To question on setting up downloads (1997)
HTML Email and Images (2004)