Adding Shipping Costs based on percent of subtotal
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 14764
interpreted = N
texte = I am looking for a way to add shipping costs based on different percentages which are calculated on the outcome of the subtotal. The way it needs to work is to allow the user to select an option menu (much like the options for shipping method in the General Store) based on the following subtotal when it appears on the ShoppingCart.tpl: $499.99 or less - 4% $500.00 - $1499.00 - 3% $1500.00 or more - 2% I need to be able to then have the shipping costs (based on the above percentages of the subtotal) appear as shipping costs in the ThankYou.tpl file. I am certain that there is a way to calculate the field [shipCost] using the [math] context but have yet to see an example that would fit the above scenario. I am hoping that someone out there has had a need for this type of calculation and can assist with a solution. Thanks ____________________________________________________________________________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.comCreator of the DataServ Educational Technology Store Using WebCatalog for NT____________________________________________________________________________
Associated Messages, from the most recent to the oldest:
I am looking for a way to add shipping costs based on different percentages which are calculated on the outcome of the subtotal. The way it needs to work is to allow the user to select an option menu (much like the options for shipping method in the General Store) based on the following subtotal when it appears on the ShoppingCart.tpl: $499.99 or less - 4% $500.00 - $1499.00 - 3% $1500.00 or more - 2% I need to be able to then have the shipping costs (based on the above percentages of the subtotal) appear as shipping costs in the ThankYou.tpl file. I am certain that there is a way to calculate the field [shipCost] using the
[math] context but have yet to see an example that would fit the above scenario. I am hoping that someone out there has had a need for this type of calculation and can assist with a solution. Thanks ____________________________________________________________________________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.comCreator of the DataServ Educational Technology Store Using WebCatalog for NT____________________________________________________________________________
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:
no global [username] or [password] displayed ... (1997)
The beginning (1997)
sendmail error (2001)
WebCatalog for Postcards ? (1997)
WebCat2 - many [carts] on one template page? (1997)
setheader and retrieve it immediatly (2001)
[WebDNA] Froala Editor working with WebDNA (2016)
Modulo function? (2000)
WebCatalog for guestbook ? (1997)
Re[2]: 2nd WebCatalog2 Feature Request (1996)
form data submission gets truncated (1997)
WebCat2b15MacPlugin - [protect] (1997)
webstar (ot) (2001)
Grant, please help me ... (1997)
Sort Floating Point Number (2008)
How to append text after the sign & (1997)
SQL Support in 6.0 (2004)
RAM variables (1997)
Duplicate Cart ID (2001)
Color options for items (1999)