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:
WebCat2b12--[searchstring] bug (1997)
WebCatalog Q & A pages (1997)
many-to-one problem (1998)
Mozilla/4. and Browser Info.txt (1997)
syntax question, not in online refernce (1997)
Protect vs Authenicate (1997)
Thanks ! (1997)
Q: writefile and uploads. (1998)
Search minus first found (1999)
FEW QUESTIONS (1997)
Another issue with [Date format] (1998)
Parameter vs. Operator (1998)
Mac Vs WindowsNT (1997)
Emailer again & again (1997)
Webmerchant orders? (2000)
Shipping charges depending on tax rate? (1997)
NT b19 sends extra MIME headers (1997)
WebTen Memory Error with Plug-In (1998)
Cool new site (1996)
carriage returns in data (1997)