Re: listing certain items in the orderfile

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 43737
interpreted = N
texte = HiWorks like a dreamOnly problem its caused is how do I have my table in two columnsbefore my page used to display the results in tow columns using [showif [lineindex]\2][/showif] to ensure the table started a new row every two cells.Now obviously the lineindex is not 1,2 3 4 5 as before but the actual ones that are selected so I can get 1,3,4 so the table goes bananas!!Is there a way round this?Many thanks Paul ----- Original Message ----- From: NovaDerm Skincare Science To: WebCatalog Talk Sent: Tuesday, September 24, 2002 2:08 AM Subject: Re: listing certain items in the orderfile > OK, here goes: > > We've already solved the problem of multiples of the same sku being added > to the cart. > > What you'll do for this problem is add another column to your table that > displays the lineitems, and in those cells you'll put a checkbox. The html > for the checkbox will look like: > > > > (Don't forget to put a > before the tag to pass the cart to the next page.) > > Now, what this will do is create a set of unique variables checkedXXX > where XXX is the various SKUs that will be passed to the next page. The > [sku] is necessary to delineate which skus were checked and consequently, > which lineitems to hide or show. > > With me so far? ;) > > OK, on the next page you'll do this: > > [orderfile cart=[cart]] > > [lineitems] > > [showif > [interpret][checked[sku]][/interpret]=on][sku][lookup > db=catalog.db&lookinfield=sku&value=[sku]&returnfield=title][price] > [/showif] > > [/lineitems] > > [/orderfile] > > > > Check out a working version here: > http://www.novaderm.com/test/test092302/voucher.tpl > > Of course you'll have to tailor the HTML and WebDNA to your specific needs, > but you get the idea... > > Regards, > > -- > > Will Starck > NovaDerm Skincare Science > http://www.novaderm.com > support@novaderm.com > > > > > > ----- Original Message ----- > From: Paul > To: WebCatalog Talk > Sent: Monday, September 23, 2002 12:10 AM > Subject: Re: listing certain items in the orderfile > > > > Basically, what ever items the customer adds to the cart must stay there > > unless they remove the item ( i have a remove that works) > > > > They then need to have the option of selecting one or more (could be all > > the items)with checkboxes and when they click on the print vouchers > > button another page opens and displays the items they checked. This page > > is formatted to show a discount voucher for each of the items they > > checked then they simply print this page . They can then either go back > > and add more items or leave the site and come back another time. > > > > When the checkboxes are clicked its important that nothing is removed > > from the orderfile, ideally I would like to set a T or F or 1 or 2 option > > for each item in the list so I can distinguish between the checked and > > unchecked items > > > > AT the moment all the items in the orderfile show so if they have 6 items > > six vouchers show > > > > Thanks > > Paul > > > > -----Original Message----- > > From: NovaDerm Skincare Science > > To: (WebCatalog Talk) > > Date: Sun, 22 Sep 2002 19:03:03 > > Subject: Re: listing certain items in the orderfile > > > > > Please help me understand the entire process of what you are trying to > > > do. > > > > > > What I have so far is that you have a customer adding some items to the > > > cart, and then you wish to have checkboxes next to the items so they > > > can select several items out of the cart and then do what exactly? You > > > wish to show them discount vouchers of some kind, and then what are > > > they expected to do from there? > > > > > > Give me a little more detail and I can help you... > > > > > > Will Starck > > > NovaDerm Skincare Science > > > http://www.novaderm.com > > > wjs@novaderm.com > > > > > > On Sunday, September 22, 2002, at 01:29 PM, Paul wrote: > > > > > > > Hi > > > > > > > > Last problem I have is this > > > > > > > > On the checkout page, I need to have an option to check a checkbox > > > and > > > > display the checked items on another page. > > > > > > > > basically the selected items will bring up a page with discount > > > > vouchers > > > > for these products. > > > > > > > > If is use,input type =checkbox name= __[lineindex] > > > > value=[url][sku][/url] > > > > as the variable the html code on the checkout page shows __1=34, > > > __2=35 > > > > etc but how do I carry only the checked items on the next page > > > > > > > > How do I show that these are selected and the others are not > > > > > > > > The sku's are all passed to the next page whether they are checked or > > > > not > > > > and in fact each sku is passed for each checked box so if I have 4 > > > > items > > > > and two are checked I get all four SKus two times! > > > > > > > > > > > > > > > > Thanks > > > > Paul > > > > > > > > > > > > > > > > ------------------------------------------------------------- > > > > 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/ > > > > > > > > > > > -- > > > > > > Will Starck > > > NovaDerm Skincare Science > > > http://www.novaderm.com > > > wjs@novaderm.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/ > > > > > > > > ------------------------------------------------------------- > > 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/ >------------------------------------------------------------- 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: listing certain items in the orderfile (NovaDerm Skincare Science 2002)
  2. Re: listing certain items in the orderfile (Paul Berman 2002)
  3. Re: listing certain items in the orderfile (NovaDerm Skincare Science 2002)
  4. Re: listing certain items in the orderfile (Paul 2002)
  5. Re: listing certain items in the orderfile (NovaDerm Skincare Science 2002)
  6. listing certain items in the orderfile (Paul 2002)
HiWorks like a dreamOnly problem its caused is how do I have my table in two columnsbefore my page used to display the results in tow columns using [showif [lineindex]\2][/showif] to ensure the table started a new row every two cells.Now obviously the lineindex is not 1,2 3 4 5 as before but the actual ones that are selected so I can get 1,3,4 so the table goes bananas!!Is there a way round this?Many thanks Paul ----- Original Message ----- From: NovaDerm Skincare Science To: WebCatalog Talk Sent: Tuesday, September 24, 2002 2:08 AM Subject: Re: listing certain items in the orderfile > OK, here goes: > > We've already solved the problem of multiples of the same sku being added > to the cart. > > What you'll do for this problem is add another column to your table that > displays the lineitems, and in those cells you'll put a checkbox. The html > for the checkbox will look like: > > > > (Don't forget to put a [cart]> > before the tag to pass the cart to the next page.) > > Now, what this will do is create a set of unique variables checkedXXX > where XXX is the various SKUs that will be passed to the next page. The > [sku] is necessary to delineate which skus were checked and consequently, > which lineitems to hide or show. > > With me so far? ;) > > OK, on the next page you'll do this: > > [orderfile cart=[cart]] > > [lineitems] > > [showif > [interpret][checked[sku]][/interpret]=on][sku][lookup > db=catalog.db&lookinfield=sku&value=[sku]&returnfield=title][price] > [/showif] > > [/lineitems] > > [/orderfile] > > > > Check out a working version here: > http://www.novaderm.com/test/test092302/voucher.tpl > > Of course you'll have to tailor the HTML and WebDNA to your specific needs, > but you get the idea... > > Regards, > > -- > > Will Starck > NovaDerm Skincare Science > http://www.novaderm.com > support@novaderm.com > > > > > > ----- Original Message ----- > From: Paul > To: WebCatalog Talk > Sent: Monday, September 23, 2002 12:10 AM > Subject: Re: listing certain items in the orderfile > > > > Basically, what ever items the customer adds to the cart must stay there > > unless they remove the item ( i have a remove that works) > > > > They then need to have the option of selecting one or more (could be all > > the items)with checkboxes and when they click on the print vouchers > > button another page opens and displays the items they checked. This page > > is formatted to show a discount voucher for each of the items they > > checked then they simply print this page . They can then either go back > > and add more items or leave the site and come back another time. > > > > When the checkboxes are clicked its important that nothing is removed > > from the orderfile, ideally I would like to set a T or F or 1 or 2 option > > for each item in the list so I can distinguish between the checked and > > unchecked items > > > > AT the moment all the items in the orderfile show so if they have 6 items > > six vouchers show > > > > Thanks > > Paul > > > > -----Original Message----- > > From: NovaDerm Skincare Science > > To: (WebCatalog Talk) > > Date: Sun, 22 Sep 2002 19:03:03 > > Subject: Re: listing certain items in the orderfile > > > > > Please help me understand the entire process of what you are trying to > > > do. > > > > > > What I have so far is that you have a customer adding some items to the > > > cart, and then you wish to have checkboxes next to the items so they > > > can select several items out of the cart and then do what exactly? You > > > wish to show them discount vouchers of some kind, and then what are > > > they expected to do from there? > > > > > > Give me a little more detail and I can help you... > > > > > > Will Starck > > > NovaDerm Skincare Science > > > http://www.novaderm.com > > > wjs@novaderm.com > > > > > > On Sunday, September 22, 2002, at 01:29 PM, Paul wrote: > > > > > > > Hi > > > > > > > > Last problem I have is this > > > > > > > > On the checkout page, I need to have an option to check a checkbox > > > and > > > > display the checked items on another page. > > > > > > > > basically the selected items will bring up a page with discount > > > > vouchers > > > > for these products. > > > > > > > > If is use,input type =checkbox name= __[lineindex] > > > > value=[url][sku][/url] > > > > as the variable the html code on the checkout page shows __1=34, > > > __2=35 > > > > etc but how do I carry only the checked items on the next page > > > > > > > > How do I show that these are selected and the others are not > > > > > > > > The sku's are all passed to the next page whether they are checked or > > > > not > > > > and in fact each sku is passed for each checked box so if I have 4 > > > > items > > > > and two are checked I get all four SKus two times! > > > > > > > > > > > > > > > > Thanks > > > > Paul > > > > > > > > > > > > > > > > ------------------------------------------------------------- > > > > 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/ > > > > > > > > > > > -- > > > > > > Will Starck > > > NovaDerm Skincare Science > > > http://www.novaderm.com > > > wjs@novaderm.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/ > > > > > > > > ------------------------------------------------------------- > > 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/ >------------------------------------------------------------- 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:

ShowNext (1997) Re:listfiles-looking for slick solution (1997) ShowIf Question (1998) Math (1997) Preventing Safari caching (2003) Problems with [Applescript] (1997) Fwd: Protect Tag and Groups (1998) in header include files? (1998) [random] only for 1-100??? (1997) [format 40s]text[/format] doesn't work (1997) Sorting problem (2002) WebCatalog Mac and cgi-bin (WebSTAR 2.0) (1997) What am I missing (1997) The word TYPE in search contexts and fields (1998) WebCat cannot handle compatible search parameters? (1997) WCS Newbie question (1997) RE: Append problem w/" (1999) Default admin bug and how tech support reacted to it. (2000) What does this error mean? (2000) Help with ShowNext (1998)