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:

[delete] problem (1997) Multiple Items (1998) WebCat2 several catalogs? (1997) [WebDNA] [OT] Apple iPad (2010) Problems getting parameters passed into email. (1997) Exclude by date - multiple (1997) Migrating to NT (1997) RE: Search (1997) ReturnRaw and redirect (1997) (no subject) (1997) WCS Newbie question (1997) How To get Some Help (2003) Date search - yes or no (1997) No shipping systems available? (1998) taxrate - off by 1 cent (1997) General WebCatalog Questions (1997) Reversed words (1997) docs for WebCatalog2 (1997) math on date? (1997) [protect] on NT? (1997)