Re: Shipping costs question

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 44684
interpreted = N
texte = Mark, you will want to go through the lineitems to see if that SKU is the cart. If it is you will want to subtract the price from the [subtotal] and set that to a var. Then you can do your code below only using the var instead of [subtotal]DonovanP.S. A note, if you are going to have this as a promotion on different products you could as easily put a field shippingcharge with a value of yes or no or T or F and then query the products.db for each item in the cart before shipping is calculated.Mark Derrick wrote:> Here's the scenario, > We currently use the following in our formulas.db: > shipCost [showif [subtotal]>100.00]5.95[/showif] [showif > [subtotal]<100.00]2.95[/showif] [showif [subtotal]=100.00]2.95[/showif] > > But we now need to be able to sell a product for which there's a zero > shipping charge. Which means that if this product is the only item in the > cart, then the shipcost needs to be 0. > > Is there an easy way to achieve this? > > Thanks. > ------------------------------------------------------------- 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: Shipping costs question (Donovan 2002)
  2. Re: Shipping costs question - update (Mark Derrick 2002)
  3. Re: Shipping costs question (Mark Derrick 2002)
  4. Re: Shipping costs question (Donovan Brooke 2002)
  5. Re: Shipping costs question (lb Lawrence 2002)
  6. Shipping costs question (Mark Derrick 2002)
Mark, you will want to go through the lineitems to see if that SKU is the cart. If it is you will want to subtract the price from the [subtotal] and set that to a var. Then you can do your code below only using the var instead of [subtotal]DonovanP.S. A note, if you are going to have this as a promotion on different products you could as easily put a field shippingcharge with a value of yes or no or T or F and then query the products.db for each item in the cart before shipping is calculated.Mark Derrick wrote:> Here's the scenario, > We currently use the following in our formulas.db: > shipCost [showif [subtotal]>100.00]5.95[/showif] [showif > [subtotal]<100.00]2.95[/showif] [showif [subtotal]=100.00]2.95[/showif] > > But we now need to be able to sell a product for which there's a zero > shipping charge. Which means that if this product is the only item in the > cart, then the shipcost needs to be 0. > > Is there an easy way to achieve this? > > Thanks. > ------------------------------------------------------------- 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:

[isfile] ? (1997) Tracking inbound links for discounts (1997) WebCat2b12 CGI Mac - [shownext] problem (1997) Giving out error pages (1997) New servers and new inline cache (1997) docs for WebCatalog2 (1997) WebCat2b13MacPlugIn - [include] (1997) Re:2nd WebCatalog2 Feature Request (1996) Uh...can someone help me out with the b10? (1997) File Uploads... (1997) Authenticate and IIS (1997) Date search - yes or no (1997) presetting a [math] var not working (2000) One more time (1997) Email Mac (2002) CERT Advisory on malicious scripts (2000) Shownext on AOL (2003) RE: Languages (1997) WebCommerce: Folder organization ? (1997) Sorry another test - please ignore (2005)