Re: variables in [addlineitem]

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17378
interpreted = N
texte = >> itemtoadd: [math]itemtoadd[/math]
>>But when I include the variable into [addlineitem], WebCat shows >>[itemtoadd] instead of using the value (does not find sku): >>... >>If I put the variable inside [math] WebCat loops indefinitely. >>...(Kenneth Grome) >1- First, you need to assign a value to itemToAdd, like this: >[math]itemtoadd=0[/math] >2- Then make sure you put the itemToAdd variable INSIDE a [math] context wherever you need to use it... The variable was defined, I just did not put the definition into the mail. Sorry. My above problem is solved: the loop executed because of wrong coding with nested [lineitems]. I was adding a never ending number of new items to the cart...I am not sure yet when WebCat can use a defined variable and when not. Is it somehow depending on the depth of nested context's? Peter__________________________________________ Peter Ostry - po@ostry.com - www.ostry.com Ostry & Partner - Ostry Internet Solutions Auhofstrasse 29 A-1130 Vienna Austria fon ++43-1-8777454 fax ++43-1-8777454-21 Associated Messages, from the most recent to the oldest:

    
  1. Re: variables in [addlineitem] (PCS Technical Support 1998)
  2. Re: variables in [addlineitem] (Kenneth Grome 1998)
  3. Re: variables in [addlineitem] (Peter Ostry 1998)
  4. Re: variables in [addlineitem] (Kenneth Grome 1998)
  5. variables in [addlineitem] (Peter Ostry 1998)
>> itemtoadd: [math]itemtoadd[/math]
>>But when I include the variable into [addlineitem], WebCat shows >>[itemtoadd] instead of using the value (does not find sku): >>... >>If I put the variable inside [math] WebCat loops indefinitely. >>...(Kenneth Grome) >1- First, you need to assign a value to itemToAdd, like this: >[math]itemtoadd=0[/math] >2- Then make sure you put the itemToAdd variable INSIDE a [math] context wherever you need to use it... The variable was defined, I just did not put the definition into the mail. Sorry. My above problem is solved: the loop executed because of wrong coding with nested [lineitems]. I was adding a never ending number of new items to the cart...I am not sure yet when WebCat can use a defined variable and when not. Is it somehow depending on the depth of nested context's? Peter__________________________________________ Peter Ostry - po@ostry.com - www.ostry.com Ostry & Partner - Ostry Internet Solutions Auhofstrasse 29 A-1130 Vienna Austria fon ++43-1-8777454 fax ++43-1-8777454-21 Peter Ostry

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:

test (2002) Webcat version 4.x (2005) 2.0 Info (1997) BBEdit and WebCatalog 2.0? (1997) [delete] problem (1997) Non WebDNA forms and timed popups... (2002) Not reading code (1997) Multi-processor Mac info ... (1997) Simple way to create unique SKU (1997) setlineitem quantity to zero? (2000) Database flushing does not work any more... (2000) Web Catalog vs. ICAT (1997) Showif, Search and text ? (2003) [WebDNA] AC paymethod is missing (2008) Sendmail (1997) wish list (2002) Is there a max number of fields? (1998) [ShowIf] a either fields are blank (1998) Attention eCommerce Sites (deadline 12/12) (1997) Secure server question (1997)