GFW Posted August 11, 2003 Share Posted August 11, 2003 Hi, is anyone working on a product availability contribution to display f.e. red/yellow/green depending on the stock? I found a few threads on this issue but now one right now who is working on this. many thx Quote Link to comment Share on other sites More sharing options...
GFW Posted August 11, 2003 Author Share Posted August 11, 2003 found this contribution: <?php $prod_quantity = tep_get_products_stock($products_id); switch ($prod_quantity) { case 0: print "Test"; break; case 1: print "Almost Gone"; break; case 3: print "Low"; break; case 4: print "Limited"; break; default: print "test"; } ?> it works fine with text, but when i try to use print "<img src="test.gif" border="0">"; instead of limited, low or whatever i get an error.. any comments? Quote Link to comment Share on other sites More sharing options...
GFW Posted August 11, 2003 Author Share Posted August 11, 2003 yeah, found it. should be: print "<img src='soldout.gif' border='0'>"; .. sorry, i?m a noob :D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.