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,DonovanArturo 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:
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,DonovanArturo 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:
Changing price for a SLU based on options (size, etc.) (1997)
AJAX with WebDNA (2006)
space at start of menu (2000)
MATH PROBLEM (1997)
& in Lookups (1997)
[WebDNA] Download page (2017)
Is there an easier way? (1998)
Encrypted Templates not Decrypting (2003)
Re:2nd WebCatalog2 Feature Request (1996)
Bad suffix error (1997)
HTTPS Post on Mac server (2001)
Database wiped clean (2005)
WebCatalog-NT?'s (1996)
Date Time Oddness (1999)
Great product and great job ! (1997)
japanese characters (1997)
WebCat2b15MacPlugin - [protect] (1997)
Showif, Hideif reverse logic ? (1997)
WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997)
Where is f2? (1997)