Re: Shipping by order total

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 54463
interpreted = N
texte = You could nest if's to do this or you could go with a database. Switch and Array's would be dfficult I think because you are matching exact values. In your case I'd probably do IF then.. [if [shiptype]=1[!] or "ground" or whatever [/!]] [then] [!]Nest your IF/then code here to figure out price [/!] [/then] [else] [if [shiptype]=2] [then] [!]Nest your IF/then code here to figure out price [/!] [/then] [else] [!] this is the last ship type so it doesn't need an exact match [/!] [!]Nest your IF/then code here to figure out price [/!] [/else] [/if] [/else] [/if] Remember, the formulas.db can't have any returns...(although you can comment out returns..(see formulas.db in docs)) Donovan Gary Chiasson wrote: > Also, I think it would need to be an array which would include (ground, 3 > day, 2 day) > > All based on the order subtotal. > Thanks again, > Gary -- =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 <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 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 by order total ( Gary Chiasson 2003)
  2. Re: Shipping by order total ( Gary Chiasson 2003)
  3. Re: Shipping by order total ( Donovan Brooke 2003)
  4. Re: Shipping by order total ( devaulw@onebox.com 2003)
  5. Re: Shipping by order total ( Donovan Brooke 2003)
  6. Re: Shipping by order total ( Gary Chiasson 2003)
  7. Shipping by order total ( Gary Chiasson 2003)
You could nest if's to do this or you could go with a database. Switch and Array's would be dfficult I think because you are matching exact values. In your case I'd probably do IF then.. [if [shiptype]=1[!] or "ground" or whatever [/!]] [then] [!]Nest your IF/then code here to figure out price [/!] [/then] [else] [if [shiptype]=2] [then] [!]Nest your IF/then code here to figure out price [/!] [/then] [else] [!] this is the last ship type so it doesn't need an exact match [/!] [!]Nest your IF/then code here to figure out price [/!] [/else] [/if] [/else] [/if] Remember, the formulas.db can't have any returns...(although you can comment out returns..(see formulas.db in docs)) Donovan Gary Chiasson wrote: > Also, I think it would need to be an array which would include (ground, 3 > day, 2 day) > > All based on the order subtotal. > Thanks again, > Gary -- =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 <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 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 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:

WebCat2b13MacPlugIn - syntax to convert date (1997) What am I missing (1997) Setting up emailer (1998) Reading through the Order File (1999) ampersand (1998) WebCatb15 Mac CGI -- [purchase] (1997) [searchString] (1997) [WebDNA] error installing 6.2 on ubuntu (2011) how to know the [LineIndex] number webcat generated during a [AddLineItem]? (2000) Problems with [Math] (1998) Ok here is a question? (1997) Cart # Starting at 1000 (2000) [WebDNA] WebDNA Health Monitor (2014) no serial? (1998) Catalogs and W* (1996) Can this be done? (1997) Text variables do not show (1999) select multiple 2 more cents (1997) [WebDNA] Formulas question (2011) Authentication (1998)