wpsc_the_vargrp_name

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

Description: This template tag is used to print the variation group name (For example Size). You would normally use this on your product page templates before the variation drop down list.

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 group 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 /** the variation HTML and loop */?>
<td class="col2"><select class="wpsc_select_variation" name="variation[<?php echo wpsc_vargrp_id(); ?>]" id="<?php echo wpsc_vargrp_form_id(); ?>">

[/php]