Re: Shipping charge question

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 52059
interpreted = N
texte = I see a lot fo quotes in your code. Why are they there? Are there actually quotes in the SKU value? If not, you should get rid of them .... >Is that the actual code you are using? Is so, why are you using the [if] >context if there's no comparison. For example, you're asking [if 2] rather >than [if 2=2]. > >Regards, >Tim > >> From: Eric >> Reply-To: (WebDNA Talk) >> Date: Mon, 04 Aug 2003 20:58:22 -0500 >> To: (WebDNA Talk) >> Subject: Shipping charge question >> >> Hi, >> I hope someone can help me with the following: >> >> If the user's order contain a specific SKU number, then the shipping charge >> for that entire order is zero. >> >> I place the following code at the invoice.inc page >> >> [if [lookup db=admin/products.db&lookinfield=SKU&value="N030844"]] >> >> [Then] >> >> [shippingTotal]="0" >> >> $[shippingTotal] >> >> [/Then] >> >> [/if] >> >> $[shippingTotal] >> >> But it did not work. What did I do wrong. It still have the shipping charge >> even I order the item with SKU "N030844" >> >> Thanks, >> >> Eric >> >> >> ------------------------------------------------------------- >> 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://webdna.smithmicro.com/ > > >------------------------------------------------------------- >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://webdna.smithmicro.com/ -- Sincerely, Kenneth Grome ------------------------------------------------------------- Outsource your WebDNA programming for $18 an hour or less! ------------------------------------------------------------- ------------------------------------------------------------- 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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Shipping charge question ( Eric 2003)
  2. Re: Shipping charge question ( Donovan 2003)
  3. Re: Shipping charge question ( Donovan 2003)
  4. Re: Shipping charge question ( Donovan 2003)
  5. Re: Shipping charge question ( Eric 2003)
  6. Re: Shipping charge question ( Donovan 2003)
  7. Re: Shipping charge question ( Eric 2003)
  8. Re: Shipping charge question ( Donovan 2003)
  9. Re: Shipping charge question ( Kenneth Grome 2003)
  10. Re: Shipping charge question ( Tim Robinson 2003)
  11. Re: Shipping charge question ( "Gary Krockover" 2003)
  12. Shipping charge question ( Eric 2003)
I see a lot fo quotes in your code. Why are they there? Are there actually quotes in the SKU value? If not, you should get rid of them .... >Is that the actual code you are using? Is so, why are you using the [if] >context if there's no comparison. For example, you're asking [if 2] rather >than [if 2=2]. > >Regards, >Tim > >> From: Eric >> Reply-To: (WebDNA Talk) >> Date: Mon, 04 Aug 2003 20:58:22 -0500 >> To: (WebDNA Talk) >> Subject: Shipping charge question >> >> Hi, >> I hope someone can help me with the following: >> >> If the user's order contain a specific SKU number, then the shipping charge >> for that entire order is zero. >> >> I place the following code at the invoice.inc page >> >> [if [lookup db=admin/products.db&lookinfield=SKU&value="N030844"]] >> >> [Then] >> >> [shippingTotal]="0" >> >> $[shippingTotal] >> >> [/Then] >> >> [/if] >> >> $[shippingTotal] >> >> But it did not work. What did I do wrong. It still have the shipping charge >> even I order the item with SKU "N030844" >> >> Thanks, >> >> Eric >> >> >> ------------------------------------------------------------- >> 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://webdna.smithmicro.com/ > > >------------------------------------------------------------- >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://webdna.smithmicro.com/ -- Sincerely, Kenneth Grome ------------------------------------------------------------- Outsource your WebDNA programming for $18 an hour or less! ------------------------------------------------------------- ------------------------------------------------------------- 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://webdna.smithmicro.com/ Kenneth Grome

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:

Small problem (2001) foreign languages, email, webcat (1998) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) [WebDNA] Kickstarter project - CodeBabel (2013) First postarg not taking in $Commands (1997) Globals folders (2004) bug in [SendMail] (1997) Re:quit command on NT (1997) Listserver problem (1997) Nested tags count question (1997) Does anyone have any ideas? (2007) ACGI processing for .html (1997) rotating thumbnails (1997) Some Advise needed (1997) [WebDNA] anyone build a webdna tab library for dreamweaver? (2008) [TIME] not working (2007) Mime Headers for Mail (1998) Test again - Am I seeing double? (2003) WCS Newbie question (1997) [ShowNext] feature in 2.0 (1997)