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 themail. Sorry.My above problem is solved: the loop executed because of wrong codingwith nested [lineitems]. I was adding a never ending number of new itemsto 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.comOstry & Partner - Ostry Internet SolutionsAuhofstrasse 29 A-1130 Vienna Austriafon ++43-1-8777454 fax ++43-1-8777454-21
Associated Messages, from the most recent to the oldest:
>> 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 themail. Sorry.My above problem is solved: the loop executed because of wrong codingwith nested
[lineitems]. I was adding a never ending number of new itemsto 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.comOstry & Partner - Ostry Internet SolutionsAuhofstrasse 29 A-1130 Vienna Austriafon ++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)