Re: Question on lineitems

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 43679
interpreted = N
texte = Bah!That should be:Version 1. Will allow mulitple addition of items which triggers error msg: http://www.novaderm.com/test/testadd/index.html Version 2. Will *not* allow multiple addition of items: http://www.novaderm.com/test/testadd/index2.htmlRegards,WillOn Saturday, September 21, 2002, at 02:20 PM, NovaDerm Skincare Science wrote:> And, just to expound on this a little further, here is all the code > that is necessary to prevent duplicate items from being added to the > cart in the first place: > > > [orderfile] > [lineitems] > [math show=f]added[sku]=1[/math] > [/lineitems] > [/orderfile] > > [formvariables name=checked&exact=false] > [hideif [interpret][added[getchars > start=8][name][/getchars]][/interpret]=1] > [addlineitem cart=[cart]&db=catalog.db&sku=[getchars > start=8][name][/getchars]][/addlineitem] > [/hideif] > [/formvariables] > > > See it in action here: > > http://www.novaderm.com/test/testadd/shoppingcart2.tpl > > Now, go and play with both versions, and see which one you would > prefer if you were the customer... > > > Regards, > > Will > > > > On Saturday, September 21, 2002, at 01:24 PM, NovaDerm Skincare > Science wrote: > >> Wise man (me) once say: >> >> It is better to repair the the dam than try and stop the water once >> the dam has burst. >> > > > ------------------------------------------------------------- > 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: Question on lineitems (Paul 2002)
  2. Re: Question on lineitems (NovaDerm Skincare Science 2002)
  3. Re: Question on lineitems (NovaDerm Skincare Science 2002)
  4. Re: Question on lineitems (NovaDerm Skincare Science 2002)
  5. Re: Question on lineitems (Paul Berman 2002)
  6. Re: Thanks and new Question on lineitems (NovaDerm Skincare Science 2002)
  7. Re: Thanks and new Question on lineitems (Paul Berman 2002)
  8. Re: Thanks and new Question on lineitems (NovaDerm Skincare Science 2002)
  9. Re: Thanks and new Question on lineitems (Paul 2002)
  10. Re: Thanks and new Question on lineitems (Daryl Mitchell 2002)
  11. Re: Thanks and new Question on lineitems (Robert Wade 2002)
  12. Re: Thanks and new Question on lineitems (Paul Berman 2002)
Bah!That should be:Version 1. Will allow mulitple addition of items which triggers error msg: http://www.novaderm.com/test/testadd/index.html Version 2. Will *not* allow multiple addition of items: http://www.novaderm.com/test/testadd/index2.htmlRegards,WillOn Saturday, September 21, 2002, at 02:20 PM, NovaDerm Skincare Science wrote:> And, just to expound on this a little further, here is all the code > that is necessary to prevent duplicate items from being added to the > cart in the first place: > > > [orderfile] > [lineitems] > [math show=f]added[sku]=1[/math] > [/lineitems] > [/orderfile] > > [formvariables name=checked&exact=false] > [hideif [interpret][added[getchars > start=8][name][/getchars]][/interpret]=1] > [addlineitem cart=[cart]&db=catalog.db&sku=[getchars > start=8][name][/getchars]][/addlineitem] > [/hideif] > [/formvariables] > > > See it in action here: > > http://www.novaderm.com/test/testadd/shoppingcart2.tpl > > Now, go and play with both versions, and see which one you would > prefer if you were the customer... > > > Regards, > > Will > > > > On Saturday, September 21, 2002, at 01:24 PM, NovaDerm Skincare > Science wrote: > >> Wise man (me) once say: >> >> It is better to repair the the dam than try and stop the water once >> the dam has burst. >> > > > ------------------------------------------------------------- > 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/ NovaDerm Skincare Science

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:

Emailer (1997) Search Spiders (2002) Merging databases (1997) WebCatalog not running after upgrade (2000) showif math date (2002) Database Options (1997) Need help with emailer- 2 issues (1997) [/application] error? (1997) show all problem (1997) suffix mapping, use of cache, etc. (1997) More than one db with the same namn (was: WC2f3) (1997) WebCatalog and Dreamweaver (1999) vs (1997) [ShowNext] feature in 2.0 (1997) Running _every_ page through WebCat ? (1997) [SearchString] problem with [search] context (1997) minimalist shopping cart. (1997) PIXO (1997) [WebDNA] Lookup vs. Search (2009) Partner Edition question ... (2003)