You could add a bit of code to check the quantity in stock and, if it is more than 1000 (or whatever number you want), output "Unlimited".
Alter this line in the <!--bof Product details list --> block of tpl_product_info_display.php:
PHP Code:
<?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n"; ?>
to read
PHP Code:
<?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . ($products_quantity >= 1000 ? 'Unlimited' : $products_quantity) . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n"; ?>
Actually keeping the quantity above 1000 automatically when stock subtraction is enabled may require some database interaction. Simply modifying $products_quantity will likely not be effective, as it is probably determined anew from the db each time the product is viewed.
Bookmarks