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 = Tim that means the item was being added to the cart the whole time but you just weren't seeing it because [lineitems] are only seen within the context of an orderfile. One of the automagical (and mysterious for the new user) features of webcat is that certain commands (like add) when used in the URL (?command=add...) automatically wrap the next page (the one the URL leads to) in an IMPLIED orderfile context. (if not within such a context 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 lost that IMPLIED orderfile context, and so now (as Will pointed out) you have to use an EXPLICIT one.If you are ever unsure you can simply open your orderfile referenced by the cart # with a text editor and see if it matches what data you display with [lineitems], [headerN]'s, etc. (values stored in an orderfile... see http://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] > >>>> > >>>>
> >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> [lineItems] > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> [/lineItems] > >>>> > >>>>
ItemCodeProductPrice
[lineIndex][SKU][PRODUCT]$[format .2f][price][/format]
> >>>> > >>>>
> >>>> > >>>> > >>>> > >>>> > >>>> > >>>> 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:

    
  1. Re: Why is my easy [AddLineItems] NOT working?? MORE (Tim Robinson 2000)
  2. Re: Why is my easy [AddLineItems] NOT working?? MORE (Will Starck 2000)
  3. Re: Why is my easy [AddLineItems] NOT working?? MORE (Kenneth Grome 2000)
  4. Re: Why is my easy [AddLineItems] NOT working?? MORE (Tim Robinson 2000)
  5. Re: Why is my easy [AddLineItems] NOT working?? MORE (WebDNA Support 2000)
  6. Re: Why is my easy [AddLineItems] NOT working?? (Kenneth Grome 2000)
  7. Re: Why is my easy [AddLineItems] NOT working?? MORE (Tim Robinson 2000)
  8. Re: Why is my easy [AddLineItems] NOT working?? (Tim Robinson 2000)
  9. Re: Why is my easy [AddLineItems] NOT working?? (Will Starck 2000)
  10. Re: Why is my easy [AddLineItems] NOT working?? (Kenneth Grome 2000)
  11. Re: Why is my easy [AddLineItems] NOT working?? (Tim Robinson 2000)
  12. Re: Why is my easy [AddLineItems] NOT working?? (John Butler 2000)
  13. Re: Why is my easy [AddLineItems] NOT working?? (Tim Robinson 2000)
  14. Re: Why is my easy [AddLineItems] NOT working?? (Will Starck 2000)
  15. Re: Why is my easy [AddLineItems] NOT working?? (Tim Robinson 2000)
  16. Re: Why is my easy [AddLineItems] NOT working?? (Will Starck 2000)
  17. Why is my easy [AddLineItems] NOT working?? (Tim Robinson 2000)
Tim that means the item was being added to the cart the whole time but you just weren't seeing it because [lineitems] are only seen within the context of an orderfile. One of the automagical (and mysterious for the new user) features of webcat is that certain commands (like add) when used in the URL (?command=add...) automatically wrap the next page (the one the URL leads to) in an IMPLIED orderfile context. (if not within such a context 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 lost that IMPLIED orderfile context, and so now (as Will pointed out) you have to use an EXPLICIT one.If you are ever unsure you can simply open your orderfile referenced by the cart # with a text editor and see if it matches what data you display with [lineitems], [headerN]'s, etc. (values stored in an orderfile... see http://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] > >>>> > >>>>
> >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> [lineitems] > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> [/lineItems] > >>>> > >>>>
ItemCodeProductPrice
[lineIndex][SKU][PRODUCT]$[format .2f][price][/format]
> >>>> > >>>>
> >>>> > >>>> > >>>> > >>>> > >>>> > >>>> 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:

[OT] Disable/enable field (2003) WCS Newbie question (1997) [SearchString] usage (1997) emailer on Windows Beta 18 (1997) Template transformed itself into a database? (1998) Attn: Bug in GeneralStore example b15 (1997) How do I write this search? (2006) Strange database format import (2000) Running _every_ page through WebCat ? (1997) Frames and WebCat (1997) serial number dishing (1997) WebCat2.0 [format thousands .0f] no go (1997) Country & Ship-to address & other fields ? (1997) Getting real time CC's out of Australia (1998) Online reference (1997) setting cookies for another domain? (2002) requiring form fields? (2000) problems with 2 tags shakur (1997) handling cookies in and out of secure space (2000) NT beta ReadMe missing (b12-b15) (1997)