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 Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 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:

    
  1. Re: buy 2 items get this free (John Peacock 2003)
  2. Re: buy 2 items get this free (Donovan 2003)
  3. Re: buy 2 items get this free (Clint Davis 2003)
  4. Re: buy 2 items get this free (Velma Kahn 2003)
  5. Re: buy 2 items get this free (Charles Kline 2003)
  6. buy 2 items get this free (Jimi Sweet 2003)
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 Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 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:

PCS Frames (1997) More questions about serial number dishing (1997) [WebDNA] Friday's.. WIP thread (2009) Use of Back and Reload Buttons on ShoppingCart page? (1997) Pretty Easy I bet (2000) Multiple Pulldowns (1997) no word on MacAuthorize... (1997) ConverChars (1999) [WriteFile] problems (1997) Re:Help name our technology! (1997) Where is f2? (1997) WebCat2b12--[searchstring] bug (1997) Searching for (field1 OR field2) AND field3 (2000) [WebDNA] Safari & Cookies (2009) Pithy questions on webcommerce & siteedit (1997) Followup question re: checksum for credit cards? (1997) Re:Need help... (1997) PIXO support (1997) RE: [sendmail]- bcc? (1998) (no subject) (1997)