Inventory lookup & display...
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 47309
interpreted = N
texte = HiI am attempting to modify some code to display number in inventory asopposed to just saying in stock if the inventory is > 0Can somebody see where I might be going wrong with this? I have to admitthat I am jumping in here to try and modify code that was done by someoneelse 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]
IN STOCK[/showif]and this is what I have tried:-[showif [lookup db=products.db&value=[the_ID]&lookinfield=ID&returnfield=NO_INVENTORY]>0][lookupdb=products.db&value=[theID]&lookinfield=ID&returnfield=NO_INVENTORY] INSTOCK[/showif]I have also tried this (adding the text tag):-[showif [lookup db=products.db&value=[the_ID]&lookinfield=ID&returnfield=NO_INVENTORY]>0][text][lookupdb=products.db&value=[theID]&lookinfield=ID&returnfield=NO_INVENTORY][/text]IN STOCK[/showif]I hope someone can advise...Kind RegardsAlan 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/
Associated Messages, from the most recent to the oldest:
HiI am attempting to modify some code to display number in inventory asopposed to just saying in stock if the inventory is > 0Can somebody see where I might be going wrong with this? I have to admitthat I am jumping in here to try and modify code that was done by someoneelse 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]IN STOCK[/showif]and this is what I have tried:-[showif [lookup db=products.db&value=[the_ID]&lookinfield=ID&returnfield=NO_INVENTORY]>0][lookupdb=products.db&value=[theID]&lookinfield=ID&returnfield=NO_INVENTORY] INSTOCK[/showif]I have also tried this (adding the text tag):-[showif [lookup db=products.db&value=[the_ID]&lookinfield=ID&returnfield=NO_INVENTORY]>0][text][lookupdb=products.db&value=[theID]&lookinfield=ID&returnfield=NO_INVENTORY][/text]IN STOCK[/showif]I hope someone can advise...Kind RegardsAlan 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/
Alan White
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:
Separate SSL Server (1997)
Calculating multiple shipping... (1997)
Rhapsody? (1997)
How does WebCatalog search the database? (1997)
[WebDNA] search command problem (2009)
[include] affect on filepaths for links? (1997)
[WebDNA] 6.2 Monitor (2012)
[Fileinfo] Context (2000)
BUG: SiteBuilder -FAQ and?? (2005)
RE: Formulas.db + Users.db (1997)
Re:Help name our technology! (1997)
Text data with spaces in them... (1997)
Tip for making barcharts (1997)
SSL for Store Builder Sites? (2003)
Multiple Passwords (1997)
Fulfillment e-mail? (1998)
(2000)
Multiple prices (1997)
select multiple (1997)
iPLanet (2001)