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-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 Creator of the DataServ Educational Technology Store Using WebCatalog for NT ____________________________________________________________________________ Associated Messages, from the most recent to the oldest:

    
  1. Re: Adding Shipping Costs based on percent of subtotal (Grant Hulbert 1997)
  2. Adding Shipping Costs based on percent of subtotal (McDonald, Jim 1997)
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-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 Creator 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:

Command=Showcart? (2000) Searching an Email database (1997) Merging databases (1997) Emailer (WebCat2) (1997) ANNC: Cool New WebCat Site!!! (Lotsa Flash) (2000) Strange Date happenings (2007) Bug Report, maybe (1997) WebCatalog 4.0 has been released! (2000) OFF TOPIC: Sendmail problem (2003) Webcatalog Conference? (1998) Ken's Data Manager (finally available I think ...) (2005) international time (1997) PIXO support (1997) Separate SSL Server (1997) too many files! (2006) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) Wanted how to (1-2-3) (1999) Which GUI HTML editors work with WC ? (1997) Summary search -- speed (1997) PCS Frames (1997)