Re: Inventory lookup & display...
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 47311
interpreted = N
texte = Move the font tags outside the WebDNA. WebDNA is probably looking at the HTML < brackets and it's messing up the showif...On Friday, January 31, 2003, at 09:09 AM, Alan White wrote:> Hi>> I am attempting to modify some code to display number in inventory as> opposed to just saying in stock if the inventory is > 0>> Can somebody see where I might be going wrong with this? I have to > admit> that I am jumping in here to try and modify code that was done by > someone> else and that I am still trying to get to grips with WC.>> Here is the original code:->> [showif [lookup> db=products.db&value=[the_ID]&lookinfield=ID&returnfield=NO_INVENTORY]> > 0]
nt color=#999999>IN STOCK[/showif]>> and this is what I have tried:->> [showif [lookup> db=products.db&value=[the_ID]&lookinfield=ID&returnfield=NO_INVENTORY]> > 0] nt color=#999999>[lookup> db=products.db&value=[theID]&lookinfield=ID&returnfield=NO_INVENTORY] > IN> STOCK[/showif]>> I have also tried this (adding the text tag):->> [showif [lookup> db=products.db&value=[the_ID]&lookinfield=ID&returnfield=NO_INVENTORY]> > 0] nt color=#999999>[text][lookup> db=products.db&value=[theID]&lookinfield=ID&returnfield=NO_INVENTORY][/ > text]> IN STOCK[/showif]>> I hope someone can advise...>> Kind Regards>> Alan White> ------------------------------> http://www.streethreds.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://webdna.smithmicro.com/>>--Will StarckNovaDerm Skincare Sciencehttp://www.novaderm.comwjs@novaderm.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://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Move the font tags outside the WebDNA. WebDNA is probably looking at the HTML < brackets and it's messing up the showif...On Friday, January 31, 2003, at 09:09 AM, Alan White wrote:> Hi>> I am attempting to modify some code to display number in inventory as> opposed to just saying in stock if the inventory is > 0>> Can somebody see where I might be going wrong with this? I have to > admit> that I am jumping in here to try and modify code that was done by > someone> else and that I am still trying to get to grips with WC.>> Here is the original code:->> [showif [lookup> db=products.db&value=[the_ID]&lookinfield=ID&returnfield=NO_INVENTORY]> > 0] nt color=#999999>IN STOCK[/showif]>> and this is what I have tried:->> [showif [lookup> db=products.db&value=[the_ID]&lookinfield=ID&returnfield=NO_INVENTORY]> > 0] nt color=#999999>[lookup> db=products.db&value=[theID]&lookinfield=ID&returnfield=NO_INVENTORY] > IN> STOCK[/showif]>> I have also tried this (adding the text tag):->> [showif [lookup> db=products.db&value=[the_ID]&lookinfield=ID&returnfield=NO_INVENTORY]> > 0] nt color=#999999>[text][lookup> db=products.db&value=[theID]&lookinfield=ID&returnfield=NO_INVENTORY][/ > text]> IN STOCK[/showif]>> I hope someone can advise...>> Kind Regards>> Alan White> ------------------------------> http://www.streethreds.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://webdna.smithmicro.com/>>--Will StarckNovaDerm Skincare Sciencehttp://www.novaderm.comwjs@novaderm.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://webdna.smithmicro.com/
WJ Starck
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:
DOS variable bug (was SandBox and ImageMagick) (2003)
Email and name capture (1999)
WebCatalog2 Feature Feedback (1996)
WebDNA equivalent for $REQUEST_URI (2004)
OK, here goes... (1997)
Trigger Woes (1999)
Ok here is a question? (1997)
WebCat2 Append problem (B14Macacgi) (1997)
tabs as delimiters (2004)
'does not contain' operator needed ... (1997)
Sort Order on a page search (1997)
Introduction/Tutorial/QuickStart (1997)
Fun with Dates - revisited (1997)
Major Security Hole (1998)
Make sure I understand this??? (1997)
Weird bug, or is there something amiss? (1997)
Re:quit command on NT (1997)
WebCat2: Master Counter snippet (1997)
IIS Brain Dead (1998)
Cart date/time (2006)