Re: Shipping charge question

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 52092
interpreted = N
texte = 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/ 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)
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/ Donovan

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:

Download Question (1997) WebDNA > IM Client? (2004) [delete] problem (1997) [WebDNA] directory protection questions (2008) shipcost (1997) Running 2 two WebCatalog.acgi's (1996) syntax question, not in online refernce (1997) carriage returns in data (1997) NEWBIE ? help with link (1998) Emailer setup (1997) Q: how long for answers to the WebDNA-Talk list? (1997) WebCat for Unix?? (1997) [OT] 'Email this story to a friend' (2003) [OT] Mail Error code 573?? (2006) emailer (1997) Currency Conversion (2003) Show shoppingcart after remove last item (1997) Triggers In Sandboxes (2006) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) NetSplat and WebCat2 (1997)