Originally Posted by
gustafr
Thank you, that removed the quantity. But here comes the tricky part: I want the In stock text to change to not in stock when stock is 0. How would i do this?
Use this instead:
PHP Code:
<?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . ($products_quantity > 0 ? TEXT_PRODUCT_IN_STOCK : TEXT_PRODUCT_NOT_IN_STOCK) . '</li>' : '') . "\n"; ?>
Then use a variation on clydejones earlier post, like this:
includes -> languages -> english -> product_info.php
find this line of code
PHP Code:
define('TEXT_PRODUCT_QUANTITY', ' Units in Stock');
and add these below it:
PHP Code:
define('TEXT_PRODUCT_IN_STOCK', 'In Stock');
define('TEXT_PRODUCT_NOT_IN_STOCK', 'Out of Stock');
Bookmarks