Re: Thanks and new Question on lineitems

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 43667
interpreted = N
texte = HiThe problem I have with this is that the prodcut selection page allow you to tick several tick boxes so you can add say 5 items at a time.Then you can go back and add the same 5 againWhat I really need is to get only the unique ones added and the others ignored or the orderfileThanks Paul ----- Original Message ----- From: Daryl Mitchell To: WebCatalog Talk Sent: Friday, September 20, 2002 7:53 PM Subject: Re: Thanks and new Question on lineitems > Something like this should work: > > [lineItems] > [showif [url][sku][/url]=[url][item_sku_being_added][/url]] > [text]failed=T[/text] > [/showif] > [/lineItems] > [showif [failed]=T] >

Sorry, you already have that item in your cart. Please choose a > different item.

> [/showif] > [hideif [failed]=T] > [addlineitem cart=[cart]&sku=[sku]&db=products.db]quantity=1& ... > other parameters ...[/addlineitem] >

Item added to the cart.

> [/hideif] > > >Thanks Robert, sorry for not giving the correct info in the first place. > > > >One more thing > > > >Is it possible to remove duplicates so only one of each item can be added to > >the cart and if the user adds another its either ignored or removed. > > > >I havent given the option of quantity deliberately but you can still add the > >same item twice and I need to stop this > > -- > > Daryl Mitchell > E-Business Specialist, PW Group > Saskatoon, SK CANADA > Tel: (306) 665-3557 > Toll-free: (800) 291-9935 > Fax: (306) 653-1255 > E-Mail: d.mitchell@pwgroup.ca > Web: http://www.pwgroup.ca/ > > ------------------------------------------------------------- > 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: Thanks and new Question on lineitems (NovaDerm Skincare Science 2002)
  2. Re: Thanks and new Question on lineitems (Paul Berman 2002)
  3. Re: Thanks and new Question on lineitems (NovaDerm Skincare Science 2002)
  4. Re: Thanks and new Question on lineitems (Paul 2002)
  5. Re: Thanks and new Question on lineitems (Daryl Mitchell 2002)
  6. Re: Thanks and new Question on lineitems (Robert Wade 2002)
  7. Re: Thanks and new Question on lineitems (Paul Berman 2002)
HiThe problem I have with this is that the prodcut selection page allow you to tick several tick boxes so you can add say 5 items at a time.Then you can go back and add the same 5 againWhat I really need is to get only the unique ones added and the others ignored or the orderfileThanks Paul ----- Original Message ----- From: Daryl Mitchell To: WebCatalog Talk Sent: Friday, September 20, 2002 7:53 PM Subject: Re: Thanks and new Question on lineitems > Something like this should work: > > [lineitems] > [showif [url][sku][/url]=[url][item_sku_being_added][/url]] > [text]failed=T[/text] > [/showif] > [/lineItems] > [showif [failed]=T] >

Sorry, you already have that item in your cart. Please choose a > different item.

> [/showif] > [hideif [failed]=T] > [addlineitem cart=[cart]&sku=[sku]&db=products.db]quantity=1& ... > other parameters ...[/addlineitem] >

Item added to the cart.

> [/hideif] > > >Thanks Robert, sorry for not giving the correct info in the first place. > > > >One more thing > > > >Is it possible to remove duplicates so only one of each item can be added to > >the cart and if the user adds another its either ignored or removed. > > > >I havent given the option of quantity deliberately but you can still add the > >same item twice and I need to stop this > > -- > > Daryl Mitchell > E-Business Specialist, PW Group > Saskatoon, SK CANADA > Tel: (306) 665-3557 > Toll-free: (800) 291-9935 > Fax: (306) 653-1255 > E-Mail: d.mitchell@pwgroup.ca > Web: http://www.pwgroup.ca/ > > ------------------------------------------------------------- > 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/ Paul Berman

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:

X etc.... (1999) NT or Mac (1997) MacAuthorize hub, no modal password dialog? (1997) Calendar using WebCatalog? (1997) Max Record length restated as maybe bug (1997) Math with Time (1997) Email (1998) Clean Code: Rules for inserting keyboard returns? (1997) [WebDNA] Competitors! (2008) Programmer Needed (1998) Error Log.db --however (1997) Changing price for a SLU based on options (size, etc.) (1997) Webcatalog and IIS4b2 (1997) Multi Colonns (1998) Submit a Form to a Selected URL (2003) !@#$$@@# formulas database, tax and freight. (2002) Problems with [Search] param - Mac Plugin b15 (1997) [WebDNA] Apache 2 httpd.conf Question (2008) WebDNA can't be controlled from terminal (2004) [UPPERCASE] (1997)