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 seeinga 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:
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 seeinga 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:
corrupted images (2002)
[WebDNA] Webdna, Css & ie (2011)
Next (1997)
Problems with [Applescript] (1997)
Problem (1997)
PCS Frames (1997)
ShipCosts database (1997)
What am I missing? (1998)
Colors in cart (2002)
Quit revisited (1997)
Help! WebCat2 bug (1997)
two unique banners on one page (1997)
Include vs. lookup? (1998)
watch out for format_to_days on NT (1997)
[WebDNA] WebDNA future (2010)
Accessing SQL server from OSX (2001)
weird happenings (1997)
Emailer problem....still (1997)
UPDATE PROBLEM (1997)
Help formatting search results w/ table (1997)