Re: listing certain items in the orderfile

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 43727
interpreted = N
texte = 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.tplOf 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/ 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)
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.tplOf 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/ 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:

Auto Fill Forms (2000) Missing Cart Information (2003) Shopping cart problem (2003) WCS Newbie question (1997) How do you hide [math]stuff[/math] (1997) Word search (1997) emailer on Windows Beta 18 (1997) WebDelivery downloads alias, not original ? (1997) Can't Search field (1998) WebCatalog for guestbook ? (1997) Close Databases Crash? (1998) WebCatalog 3.0 (Mac) For Sale (2000) WriteFile is there a max size? (1998) .. more on sliding discounts... (1997) Retrospect Backup Misses Empty Folders (2000) refresh (2000) RE:DatabaseHelper (1997) can WC render sites out? (1997) Displaying Location (1997) TCPSend GET vs POST (2007)