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

Description: This template tag is used to print the variation ID (This is the post id for the variation).

Note: This template tag only returns the ID 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; ?>