Re: Shipping charge question

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 52101
interpreted = N
texte = Dear Donovan: it still defaults zero even the order did not contain sku=N030844 Thanks Eric At 08:58 AM 8/7/2003 -0500, you wrote: >Eric wrote: >[snip] >>However, it also gives me shipping=0 when the order did not contain >>SKU=N030844. > >oops, Since the setheader is being anacted all the time and it is seeing >a value of "[theShipping]" it is defaulting to 0. > >Try adding a flag and adding a showif, like below. > >[orderfile cart=[cart]] > [lineitems] > [showif [sku]="N030844"][!]Note - the quotes must exist in > product SKU [/!] > [text multi=T]action=set&theShipping=0[/text] > [/showif] > [/lineitems] >[/orderfile] > >[showif [action]=set] > [setheader > cart=[cart]&db=some.db]Password=BLAH&ShippingTotal=[theShipping][/setheader] >[/showif] > >you could also replace the text variable code with the actual setheader ( >I usually keep cart and database tools as separate modules ). > >Donovan > >-- > =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o > DONOVAN D. BROOKE > Eucalyptus Design > Developer / Consultant > <-Web Development (specializing in eCommerce), -> > <-Graphic Design, and Pre-Press Consultation -> > > ADDRESS:> Donovan Brooke > DBA Eucalyptus Design > P.O. Box 260153 > Madison, WI 53726-0153 > > PH:> 1.608.442.5217 > email:> dbrooke@euca.us > Web:> http://www.euca.us > =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o > > >------------------------------------------------------------- >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 has been scanned for viruses and >dangerous content by the MailScanner at ow4, and is >believed to be clean. ------------------------------------------------------------- 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)
Dear Donovan: it still defaults zero even the order did not contain sku=N030844 Thanks Eric At 08:58 AM 8/7/2003 -0500, you wrote: >Eric wrote: >[snip] >>However, it also gives me shipping=0 when the order did not contain >>SKU=N030844. > >oops, Since the setheader is being anacted all the time and it is seeing >a value of "[theShipping]" it is defaulting to 0. > >Try adding a flag and adding a showif, like below. > >[orderfile cart=[cart]] > [lineitems] > [showif [sku]="N030844"][!]Note - the quotes must exist in > product SKU [/!] > [text multi=T]action=set&theShipping=0[/text] > [/showif] > [/lineitems] >[/orderfile] > >[showif [action]=set] > [setheader > cart=[cart]&db=some.db]Password=BLAH&ShippingTotal=[theShipping][/setheader] >[/showif] > >you could also replace the text variable code with the actual setheader ( >I usually keep cart and database tools as separate modules ). > >Donovan > >-- > =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o > DONOVAN D. BROOKE > Eucalyptus Design > Developer / Consultant > <-Web Development (specializing in eCommerce), -> > <-Graphic Design, and Pre-Press Consultation -> > > ADDRESS:> Donovan Brooke > DBA Eucalyptus Design > P.O. Box 260153 > Madison, WI 53726-0153 > > PH:> 1.608.442.5217 > email:> dbrooke@euca.us > Web:> http://www.euca.us > =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o > > >------------------------------------------------------------- >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 has been scanned for viruses and >dangerous content by the MailScanner at ow4, and is >believed to be clean. ------------------------------------------------------------- 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/ Eric

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:

WebCat2b12 Mac.acgi--[searchstring] bug (1997) Multiple Ad databases? (1997) docs for WebCatalog2 (1997) listfiles, moving files (1998) Support ?? (1997) The word TYPE in search contexts and fields (1998) Semi OT: vbulletin and # viewing - how do that do that? (2003) [WebDNA] Secure Cookies (2009) The future of WebCatalog is coming with 4.0... (2000) form data submission gets truncated (1997) Confused about Grep Syntax (2004) Long/Lat (2002) [OT] Form POSTing with LONG variable (2007) WebCatalog 2.0 b 15 mac (1997) PIXO Support (1997) RE: [WebDNA] trouble with memory (2014) Latin Characters (1998) Fun with Dates - revisited (1997) WebCat2 beta 11 - new prefs ... (1997) [LOOKUP] (1997)