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:
update on wn searching (1997)
carriage returns in data (1997)
Clearly.home (1998)
Purchae error - Fixed to a degree (1997)
What generates Problem With Your Order email? (2000)
[SearchString] usage (1997)
Summing fields (1997)
AppleScript question (1997)
[append] problem (1997)
Email Problem (1997)
Fwd: Problems with Webcatalog Plug-in (1997)
Security (1999)
convertchars and case? (1998)
[WebDNA] talklist archives don't search/find recent posts? (2008)
Active Server Code... (1998)
Major Security Hole (1998)
Problems getting parameters passed into email. (1997)
Use of & in text areas.... (1998)
cart converting to scientific notation format (2001)
Execute Applescript (1997)