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

Description: This template tag is used to print the variation Name (This is the post title for the variation eg size, medium, large).

Note: This template tag only returns the Name so to display in on your page you must echo the tag, it must also be used within the variation loop. You would most likely use this within form tags on your products pages


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; ?>