Quote Originally Posted by jeanjean88 View Post
You should do as i did.

In words:

If q.ty > 0 ====> Print: AVAILABLE
If q.ty = 0 ====> Print: NOT AVAILABLE - ON ORDER (and u let it order ---> Backorder)
If Q.ty<0 ====> Print: Not available

the code


This code ...... looks like a different language ( not just PHP )

<?php
if (zen_get_products_stock((int)$_GET['products_id']) >0) {
$zc_stock_level_image = '<span class="Disponibile">' . DISPONIBILE . '</span>';
}

elseif (zen_get_products_stock((int)$_GET['products_id']) <0) {
$zc_stock_level_image = '<span class="Arrivo">' . ESAURITO . '</span>';
}

else {
$zc_stock_level_image = '<span class="Esaurito">' . IN_ARRIVO . '</span>';
}
echo '<b class="Stock">Stock Level: </b>' . $zc_stock_level_image;
?>

Are these referncing a graphic file or a defined text ?? not 100% up on the PHP

Thanks for the help