function wpsc_product_delivery_forms()
{
    $has_variations = wpsc_product_has_variations(get_post()->ID);
    $show_if_variation = $has_variations ? 'display: block;' : 'display:none;';
    ?>
	<em id="wpsc_product_delivery_metabox_live_title" class="wpsc_metabox_live_title">
		<p></p>
	</em>

	<div id="wpsc_product_delivery_forms" class="categorydiv wpsc-categorydiv">
		<ul id="wpsc_product_delivery_tabs" class="category-tabs">
			<li class="tabs"><a href="#wpsc_product_delivery-shipping"><?php 
    _e('Shipping', 'wp-e-commerce');
    ?>
</a></li>
			<li><a href="#wpsc_product_delivery-download"><?php 
    _e('Download', 'wp-e-commerce');
    ?>
</a></li>
			<li><a href="#wpsc_product_delivery-external_link"><?php 
    _e('External Link', 'wp-e-commerce');
    ?>
</a></li>
		</ul>

		<div id="wpsc_product_delivery-shipping" class="tabs-panel" style="display:block;">
			<?php 
    if (!$has_variations) {
        wpsc_product_shipping_forms();
    } else {
        echo '<p>' . sprintf(__('This product has variations. To edit the shipping, please use the <a href="%s">Variation Controls</a>.', 'wp-e-commerce'), '#wpsc_product_variation_forms') . '</p>';
    }
    ?>
		</div>

		<div id="wpsc_product_delivery-download" class="tabs-panel" style="display:none;">
			<?php 
    wpsc_product_download_forms();
    ?>
		</div>

		<div id="wpsc_product_delivery-external_link" class="tabs-panel" style="display: none;">
			<?php 
    wpsc_product_external_link_forms();
    ?>
		</div>
	</div>
<?php 
}
    private function shipping_editor($item = false)
    {
        static $alternate = '';
        if (!$item) {
            $alternate = '';
        } else {
            $alternate = $alternate == '' ? ' alternate' : '';
        }
        $row_class = $alternate;
        $style = '';
        $bulk = false;
        if (!$item) {
            $item = get_post($this->product_id);
            $field_name = "wpsc_bulk_edit[product_metadata]";
            $row_class .= " wpsc_bulk_edit_shipping";
            if ($this->is_bulk_edit) {
                $style = ' style="display:table-row;"';
            } else {
                $style = ' style="display:none;"';
            }
            $bulk = true;
        } else {
            $field_name = "wpsc_variations[{$item->ID}][product_metadata]";
        }
        $colspan = count($this->get_columns()) - 1;
        ?>
		<tr class="wpsc-stock-editor-row inline-edit-row<?php 
        echo $row_class;
        ?>
"<?php 
        echo $style;
        ?>
 id="wpsc-stock-editor-row-<?php 
        echo $item->ID;
        ?>
">
			<td></td>
			<td colspan="<?php 
        echo $colspan;
        ?>
" class="colspanchange">
				<h4><?php 
        esc_html_e('Variation Stock Editor', 'wpsc');
        ?>
</h4>
				<?php 
        wpsc_product_shipping_forms($item, $field_name, $bulk);
        ?>
			</td>
		</tr>
		<?php 
    }
function wpsc_product_shipping_forms_metabox()
{
    wpsc_product_shipping_forms();
}