wpsc_vargrp_id

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

Description: This template tag is used to print the variation group ID (For example Size – This is the Post Parent). You would normally use this within your variation forms etc

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.

[php]

Code Example:
Used within the loop
[php]
<?php while (wpsc_have_variation_groups()) : wpsc_the_variation_group(); ?>

<tr><td class="col1"><label for="<?php echo wpsc_vargrp_form_id(); ?>"><?php echo wpsc_the_vargrp_name(); ?>:</label></td>

[/php]