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

Description: This template tag is used to prints the HTML attribute to disable select options and radio buttons. You would use thi on your products page templates to ensure out of stock products can not be selected from the variation drop down menu.

Note: This template tag only returns the HTML so to display in on your page you must echo the tag, it must also be used within the variation loop.

Code Example:
<?php while (wpsc_have_variations()) : wpsc_the_variation(); ?>
<option value="<?php echo wpsc_the_variation_id(); ?>" <?php echo wpsc_the_variation_out_of_stock(); ?>><?php echo wpsc_the_variation_name(); ?></option>
<?php endwhile; ?>