Re: buy 2 items get this free
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 48865
interpreted = N
texte = Jimi Sweet wrote:> My client wants to offer a free thing when someone buys 2 or more > other things. It doesn't need to show up as a line item, but is there > an elegant way to do this? i was thinking...> > [showif [number_of_items_in_cart]>1]You get this free thing![/showif]> > ...but is there a way to calculate [number_of_items_in_cart]?> By number of things do you mean units or lineitems (2 Chicklets[tm] vs 1 Wankel Rotary Engine and 1 can of SPAM). If it is two lineitems, you can use the suprisingly-named [NumLineItems] context. If it is units of anything, you'll have to use a [lineitems] loop and add the units up yourself.John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------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:
Jimi Sweet wrote:> My client wants to offer a free thing when someone buys 2 or more > other things. It doesn't need to show up as a line item, but is there > an elegant way to do this? i was thinking...> > [showif [number_of_items_in_cart]>1]You get this free thing![/showif]> > ...but is there a way to calculate [number_of_items_in_cart]?> By number of things do you mean units or lineitems (2 Chicklets[tm] vs 1 Wankel Rotary Engine and 1 can of SPAM). If it is two lineitems, you can use the suprisingly-named [NumLineItems] context. If it is units of anything, you'll have to use a [lineitems] loop and add the units up yourself.John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------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/
John Peacock
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:
Garbage display after 100 records (was WebCatalog usage) (1997)
[WebDNA] Paypal Sandbox TCPConnect (2012)
Dynamic Pop Up Menus with Record Value Selected (1998)
WC Database Format (1997)
WebCAT 3.x (2002)
NewCart+Search with one click ? (1997)
what servers are supported for Typhoon? (1997)
Webmerchant (1999)
How to redirect based on price subtotal? (1998)
nested context (1998)
Spaces in FormVariables (2001)
Authenticate and IIS (1997)
Triggers (2003)
Attention eCommerce Sites (deadline 12/12) (1997)
AOL Sux and Other Thoughts (2000)
Exists? (1997)
mail header timezone problem (2007)
Location of Browser Info.txt file (1997)
WebCatalog2 Feature Feedback (1996)
WebCatalog2 Feature Feedback (1996)