Re: formula part 3

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 34830
interpreted = N
texte = not that I know of. probably the author of that code you found was passing in a value for that var (or generating it locally via [lineitems] in conjunction with [text] or [math])Arturo Vargas wrote:> 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 far > > In 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.95 > > This is not working > > It 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/ ------------------------------------------------------------- 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)
not that I know of. probably the author of that code you found was passing in a value for that var (or generating it locally via [lineitems] in conjunction with [text] or [math])Arturo Vargas wrote:> 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 far > > In 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.95 > > This is not working > > It 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/ ------------------------------------------------------------- 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/ John Butler

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:

[NT] ie 4.0 required (1997) Passing Variables to a [shell scriptid=123][/shell] context (2004) Emailer Error Question (1998) MacAuthorize and WebMerchant (1997) emailer setup (1997) Trigger time setting (2002) Can I invoke an ssi plugin from within a webcat page (1997) WebCatalog2 Feature Feedback (1996) PIXO (1997) [WebDNA] Privat IP website behind a public IP website (2014) Webcat causing crashes left and right! (1997) Credit card types (1997) Shipping Tables (1999) dollar $ signs in database (2000) problem with applets embedded in tpl files (1997) form data submission gets truncated (1997) Hiding HTML and breaking the page (1997) webcat method for waiting specific amount of time? (2000) Enhancement Request for WebCatalog-NT (1996) Security Tip (1996)