Re: Why is my easy [AddLineItems] NOT working??
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 34543
interpreted = N
texte = Timthat means the item was being added to the cart the whole time but you just weren'tseeing it because [lineitems] are only seen within the context of an orderfile. One ofthe automagical (and mysterious for the new user) features of webcat is that certaincommands (like add) when used in the URL (?command=add...) automatically wrap the nextpage (the one the URL leads to) in an IMPLIED orderfile context. (if not within such acontext then how would webcat know what order file it was supposed to show data from?)When you switched from the addlineitem command to the addlineitem context, then you lostthat IMPLIED orderfile context, and so now (as Will pointed out) you have to use anEXPLICIT one.If you are ever unsure you can simply open your orderfile referenced by the cart # witha text editor and see if it matches what data you display with [lineitems], [headerN]'s,etc. (values stored in an orderfile... seehttp://betadoc.smithmicro.com/OrderFileFormat.html)-JohnTim Robinson wrote:> Yes, it works! Sainthood is yours (if I could bestow such things).....>> Regards,> Tim>> On Wednesday, 12 July 2000, Will Starck
wrote:> >Gaack!> >> >I rarely do commands any more...sorry, I'm thinking variables> >and forms...;)> >> >Try surrounding your [lineitems] in an orderfile context like> >so:> >> >[orderfile cart=[cart]]> >> >[lineitems]> >> >> >[/lineitems]> >[/orderfile]> >> >> >> >> >--> >Will Starck> >Product and Technical Support> >NovaDerm.com> >http://www.novaderm.com> >techs@novaderm.com> >Toll free support line: 800-378-1740> >> >> From: Tim Robinson > >> Reply-To: (WebCatalog Talk)> >> Date: 12 Jul 2000 11:15:31> >> To: (WebCatalog Talk)> >> Subject: Re: Why is my easy [AddLineItems] NOT working??> >>> >> Why would there be a [ there?> >>> >> On Wednesday, 12 July 2000, Will Starck wrote:> >>> Well, for one thing you are missing a [ here --->> >>>> >>> l/orgmech.db&sku=APP002][/AddLineItem]> >>> ^> >>> --> >>> Will Starck> >>> Product and Technical Support> >>> NovaDerm.com> >>> http://www.novaderm.com> >>> techs@novaderm.com> >>> Toll free support line: 800-378-1740> >>>> >>>> From: Tim Robinson > >>>> Reply-To: (WebCatalog Talk)> >>>> Date: 12 Jul 2000 10:40:01> >>>> To: (WebCatalog Talk)> >>>> Subject: Why is my easy [AddLineItems] NOT working??> >>>>> >>>> Hi there,> >>>>> >>>> I've cut back my non-working page to the bare minimum, and the> >>>> [AddLineItems] is not working. Why? There is virtually nothing left on the> >>>> page!! Can anyone see why... I'd really appreciate it. This is ALL that's on> >>>> the page (and yes, the link to the database IS correct, I've tried it in the> >>>> same folder too and it still doesn't work).> >>>>> >>>> > >>>> > >>>> > >>>> Shopping Cart> >>>> > >>>>> >>>> Your Shopping Cart Contains the Following Items
> >>>>> >>>> [AddLineItem> >>>> cart=[cart]&db=/orgmech_internal/orgmech.db&sku=APP002][/AddLineItem]> >>>>> >>>> > >>>> > >>>> > >>>> Item | > >>>> Code | > >>>> Product | > >>>> Price | > >>>>
> >>>> [lineItems]> >>>> > >>>> [lineIndex] | > >>>> [SKU] | > >>>> [PRODUCT] | > >>>> $[format .2f][price][/format] | > >>>>
> >>>> [/lineItems]> >>>>> >>>>
> >>>>> >>>> > >>>>> >>>> > >>>> > >>>>> >>>>> >>>> Any help greatly appreciated. (I AM going mad).> >>>>> >>>> Regards,> >>>> Tim> >>>>> >>>> Tim Robinson> >>>> Art Director> >>>> imagine online> >>>> tim@imagine.au.com> >>>> http://www.imagine.au.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/> >> >>> -------------------------------------------------------------> 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:
Timthat means the item was being added to the cart the whole time but you just weren'tseeing it because [lineitems] are only seen within the context of an orderfile. One ofthe automagical (and mysterious for the new user) features of webcat is that certaincommands (like add) when used in the URL (?command=add...) automatically wrap the nextpage (the one the URL leads to) in an IMPLIED orderfile context. (if not within such acontext then how would webcat know what order file it was supposed to show data from?)When you switched from the addlineitem command to the addlineitem context, then you lostthat IMPLIED orderfile context, and so now (as Will pointed out) you have to use anEXPLICIT one.If you are ever unsure you can simply open your orderfile referenced by the cart # witha text editor and see if it matches what data you display with [lineitems], [headerN]'s,etc. (values stored in an orderfile... seehttp://betadoc.smithmicro.com/OrderFileFormat.html)-JohnTim Robinson wrote:> Yes, it works! Sainthood is yours (if I could bestow such things).....>> Regards,> Tim>> On Wednesday, 12 July 2000, Will Starck wrote:> >Gaack!> >> >I rarely do commands any more...sorry, I'm thinking variables> >and forms...;)> >> >Try surrounding your [lineitems] in an orderfile context like> >so:> >> >[orderfile cart=[cart]]> >> >[lineitems]> >> >> >[/lineitems]> >[/orderfile]> >> >> >> >> >--> >Will Starck> >Product and Technical Support> >NovaDerm.com> >http://www.novaderm.com> >techs@novaderm.com> >Toll free support line: 800-378-1740> >> >> From: Tim Robinson > >> Reply-To: (WebCatalog Talk)> >> Date: 12 Jul 2000 11:15:31> >> To: (WebCatalog Talk)> >> Subject: Re: Why is my easy [AddLineItems] NOT working??> >>> >> Why would there be a [ there?> >>> >> On Wednesday, 12 July 2000, Will Starck wrote:> >>> Well, for one thing you are missing a [ here --->> >>>> >>> l/orgmech.db&sku=APP002][/AddLineItem]> >>> ^> >>> --> >>> Will Starck> >>> Product and Technical Support> >>> NovaDerm.com> >>> http://www.novaderm.com> >>> techs@novaderm.com> >>> Toll free support line: 800-378-1740> >>>> >>>> From: Tim Robinson > >>>> Reply-To: (WebCatalog Talk)> >>>> Date: 12 Jul 2000 10:40:01> >>>> To: (WebCatalog Talk)> >>>> Subject: Why is my easy [AddLineItems] NOT working??> >>>>> >>>> Hi there,> >>>>> >>>> I've cut back my non-working page to the bare minimum, and the> >>>> [AddLineItems] is not working. Why? There is virtually nothing left on the> >>>> page!! Can anyone see why... I'd really appreciate it. This is ALL that's on> >>>> the page (and yes, the link to the database IS correct, I've tried it in the> >>>> same folder too and it still doesn't work).> >>>>> >>>> > >>>> > >>>> > >>>> Shopping Cart> >>>> > >>>>> >>>> Your Shopping Cart Contains the Following Items
> >>>>> >>>> [AddLineItem> >>>> cart=[cart]&db=/orgmech_internal/orgmech.db&sku=APP002][/AddLineItem]> >>>>> >>>> > >>>> > >>>> > >>>> Item | > >>>> Code | > >>>> Product | > >>>> Price | > >>>>
> >>>> [lineitems]> >>>> > >>>> [lineIndex] | > >>>> [SKU] | > >>>> [PRODUCT] | > >>>> $[format .2f][price][/format] | > >>>>
> >>>> [/lineItems]> >>>>> >>>>
> >>>>> >>>> > >>>>> >>>> > >>>> > >>>>> >>>>> >>>> Any help greatly appreciated. (I AM going mad).> >>>>> >>>> Regards,> >>>> Tim> >>>>> >>>> Tim Robinson> >>>> Art Director> >>>> imagine online> >>>> tim@imagine.au.com> >>>> http://www.imagine.au.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/> >> >>> -------------------------------------------------------------> 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/
John Butler
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:
WebCat2: Master Counter snippet (1997)
RE: type 2 errors with ssl server (1997)
Smart caching problems with 2.1b3? (1997)
Newbie question (1998)
Nested tags count question (1997)
refreshing IE with posted .tmpl (1997)
displaying New products (Yikes! it's Fixed!) (1997)
Interpret twice? (1997)
What am I missing (1997)
Show items based on login Password (2003)
Shopping Cart variation... (1997)
Large databases in WebCat (1997)
WebCatalog dying in WebTen Revisited (1998)
Suffix Slowdown? (2004)
Erotic Sites (1997)
E-Mailer (WebCatb15acgiMac) (1997)
Server Freeze (1998)
Sorting Numbers (1997)
Lots of bounce errors (2007)
2.0.1 new commands and contexts (1997)