Re: shopcost, unitshipcost

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 43728
interpreted = N
texte = Arturo, this will work if the quantity break is the same for all products. I wouldn't do this when an item is added. put 3 extra fields in the pruducts.db. ie. SHIP_1,SHIP_2,SHIP_3Then something like: (the abridged version) [orderfile cart=[cart]] [lineitems] [text]shipping=[if [quantity]<13][then][lookup returnfield=SHIP_1][/then][else] [if [quantity]<26][then][lookup returnfield=SHIP_2][/then][else] [if [quantity]>25][then][lookup returnfield=SHIP_3][/then][else][math] [lookup returnfield=PRICE]*.1[/math][/else][/if] [/else][/if] [/else][/if][/text][setlineitem]unitshipCost=[shipping][/setlineitem] [/lineitems] [/orderfile] cheers, Donovan Arturo Vargas wrote:> I need to calculate the shipping charges based on: > 1. the sku that is beeing purchased > 2. the quantities being purchased > > ie: > sku 001 > 1 -12 items = 4.95 > 13-25 items 5.95 > 25+ items .15 per item > > sku 002 > 1 -12 items = 6.95 > 13-25 items 9.95 > 25+ items .30 per item > > any suggestions as to how to do this using the formulas.db? > > ART > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: shopcost, unitshipcost (Andrew Simpson 2002)
  2. Re: shopcost, unitshipcost (Donovan Brooke 2002)
  3. Re: shopcost, unitshipcost (Arturo Vargas 2002)
  4. Re: shopcost, unitshipcost (Andrew Simpson 2002)
  5. shopcost, unitshipcost (Arturo Vargas 2002)
Arturo, this will work if the quantity break is the same for all products. I wouldn't do this when an item is added. put 3 extra fields in the pruducts.db. ie. SHIP_1,SHIP_2,SHIP_3Then something like: (the abridged version) [orderfile cart=[cart]] [lineitems] [text]shipping=[if [quantity]<13][then][lookup returnfield=SHIP_1][/then][else] [if [quantity]<26][then][lookup returnfield=SHIP_2][/then][else] [if [quantity]>25][then][lookup returnfield=SHIP_3][/then][else][math] [lookup returnfield=PRICE]*.1[/math][/else][/if] [/else][/if] [/else][/if][/text][setlineitem]unitshipCost=[shipping][/setlineitem] [/lineitems] [/orderfile] cheers, Donovan Arturo Vargas wrote:> I need to calculate the shipping charges based on: > 1. the sku that is beeing purchased > 2. the quantities being purchased > > ie: > sku 001 > 1 -12 items = 4.95 > 13-25 items 5.95 > 25+ items .15 per item > > sku 002 > 1 -12 items = 6.95 > 13-25 items 9.95 > 25+ items .30 per item > > any suggestions as to how to do this using the formulas.db? > > ART > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Donovan Brooke

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:

Drop Down Menus (2002) Security Levels... Possible? (2000) Re:Dumb Question about Docs (1997) WebCat2b12plugin - [search] is broken ... not! (1997) Showif date > other date (2004) Confused about QTY and QTY* price updating (1998) showif comparison begins w/ and contains (1997) shipcost (1997) [showif] with ! (2000) OFF TOPIC - sendmail problem (2003) Nested tags count question (1997) & in Lookups (1997) Rhapsody? (1997) WC2b15 File Corruption (1997) Database Helper missing? (2000) authorizenet and netscape (2002) Mixing and/or in searches (1998) Welcome Back (was) Newbie Question (1999) Editor Recommendation for NT Users (1998) Prevent multiple appends with Reload Button (1997)