wpsc_product_has_stock

Located in: Located in: product-template.php
Version Introduced: 3.8
Return: Boolean

Description: This condition is used to check if stock is available for the given product (stock quantities can be set on the add / edit product).

[php]
<?php if(wpsc_product_has_stock()) : ?>
<div id="stock_display_<?php echo wpsc_the_product_id(); ?>" class="in_stock"><?php _e(‘Product in stock’, ‘wpsc’); ?></div>
<?php else: ?>
[/php]