numero = 43745
interpreted = N
texte = That shouldn't be too hard to fix.What you'll need is to create a math variable like so:[math show=f]itemcount=0[/math]This needs to be placed above the [orderfile] context. Then, increment this by 1 after every lineitem is displayed like so:[math show=f]itemcount=[itemcount]+1[/math]Then use [showif [itemcount]\2]
[/showif] to set your columns.This is what the whole thing looks like:[math show=f]itemcount=0[/math]
[/showif]>>>> [/lineitems]>>>> [/orderfile]On Tuesday, September 24, 2002, at 01:43 AM, Paul Berman wrote:> Hi>> Works like a dream>> Only problem its caused is how do I have my table in two columns>> before 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 > value=[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]
[/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/>>--Will StarckNovaDerm Skincare Sciencehttp://www.novaderm.comwjs@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/
Associated Messages, from the most recent to the oldest:
Re: listing certain items in the orderfile (NovaDerm Skincare Science 2002)
That shouldn't be too hard to fix.What you'll need is to create a math variable like so:[math show=f]itemcount=0[/math]This needs to be placed above the [orderfile] context. Then, increment this by 1 after every lineitem is displayed like so:[math show=f]itemcount=[itemcount]+1[/math]Then use [showif [itemcount]\2]
[/showif] to set your columns.This is what the whole thing looks like:[math show=f]itemcount=0[/math]
[/showif]>>>> [/lineitems]>>>> [/orderfile]On Tuesday, September 24, 2002, at 01:43 AM, Paul Berman wrote:> Hi>> Works like a dream>> Only problem its caused is how do I have my table in two columns>> before 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 > value=[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]
[/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/>>--Will StarckNovaDerm Skincare Sciencehttp://www.novaderm.comwjs@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/
NovaDerm Skincare Science
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...