formula part 3

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 34828
interpreted = N
texte = Ok I know I ask lots of questions!! :)I am trying to have a customer buy 3 items and get the 4th one free. This is what I have done so farIn the invoice.tpl I added this code that I found in another existing page that does what I need. [showif [totalQty]>3][AddLineItem cart=[cart]&db=catalog.txt&sku=Discount2]quantity=1[/addlineitem][/showif]Discount2 is a product that exists on my db, the price of discount2 is -19.95This is not workingIt adds the discount2 product no matter the quantity is.Any Suggetions?? and is [totalQty] a tag ?? if so where is it I can't find it.Arturo Vargas The World Wide Web Store ------------------------------------------------------------- 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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: formula part 3 (John Butler 2000)
  2. Re: formula part 3 (Arturo Vargas 2000)
  3. Re: formula part 3 (John Butler 2000)
  4. formula part 3 (Arturo Vargas 2000)
Ok I know I ask lots of questions!! :)I am trying to have a customer buy 3 items and get the 4th one free. This is what I have done so farIn the invoice.tpl I added this code that I found in another existing page that does what I need. [showif [totalQty]>3][AddLineItem cart=[cart]&db=catalog.txt&sku=Discount2]quantity=1[/addlineitem][/showif]Discount2 is a product that exists on my db, the price of discount2 is -19.95This is not workingIt adds the discount2 product no matter the quantity is.Any Suggetions?? and is [totalQty] a tag ?? if so where is it I can't find it.Arturo Vargas The World Wide Web Store ------------------------------------------------------------- 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://search.smithmicro.com/ Arturo Vargas

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:

firewall ports for Mac OS X/WebCatalog (2001) [text] variable assignment within [search] context (2000) Re2: frames & carts (1997) NT Version on IIS 4.0 (1997) Shop from PDF (2004) [WebDNA] Processor Maxing out (2010) [WebDNA] HMAC-SHA1 Encryption (2013) 2.0Beta Command Ref (can't find this instruction) (1997) WebCatalog2 Feature Feedback (1996) Execute Applescript (1997) several .hdr files with one db file? (1999) WebCatalog can't find database (1997) Bug Report, maybe (1997) 2 easy questions re: [showif] and [sendmail] (1997) Running a store on BOTH http and https (1998) WCS Newbie question (1997) 2.0Beta Command Ref (can't find this instruction) (1997) Help formatting search results w/ table (1997) emailer (1997) Wanted: Broader string manipulation functions (1997)