I want to use the mod "Simple In-Stock Display" however I am using Tabbed Products Pro and it hides the stock level in the Detail Tab, which it seems, most of my customers refuse to look at before ordering.

I understand all the part about finding and replacing the code he gives, however I want to put the code is a different part of the page by the "add to cart" box or the "product price block".

Here's the rub. I don't know enough about php to get it coded in right. So if I want to add:

PHP Code:
case 'PRODUCT_LIST_QUANTITY':
        
$lc_align 'right';
        if (
zen_get_products_stock($listing->fields['products_id'])>0) {
        
$lc_text 'In Stock';  //  any at all
    
}
        else {
        
$lc_text 'Out of Stock';  // none at all
    
}
    break; 
What php code do I need to add before and after to get it to compute?

Then I would rather use an image instead of the text, so can I change 'In Stock' with '../images/instock.gif'

Thanks
JOhn ><>