slug; else $product_type = 'simple';
$field = array( 'id' => 'product-type', 'label' => __('Product Type', 'woothemes') );
echo '
';
// List Grouped products
$posts_in = (array) get_objects_in_term( get_term_by( 'slug', 'grouped', 'product_type' )->term_id, 'product_type' );
$posts_in = array_unique($posts_in);
$field = array( 'id' => 'parent_id', 'label' => __('Parent post', 'woothemes') );
echo '
';
// Ordering
$menu_order = $post->menu_order;
$field = array( 'id' => 'menu_order', 'label' => _x('Post Order', 'ordering', 'woothemes') );
echo '';
// Summary
echo '
';
// SKU
$field = array( 'id' => 'sku', 'label' => __('SKU', 'woothemes') );
$SKU = get_post_meta($thepostid, 'SKU', true);
if( get_option('woocommerce_enable_sku', true) !== 'no' ) :
echo '
' . __('Leave blank to use product ID', 'woothemes') . '
';
else:
echo '
';
endif;
// Weight
$field = array( 'id' => 'weight', 'label' => __('Weight', 'woothemes') . ' ('.get_option('woocommerce_weight_unit').'):' );
if( get_option('woocommerce_enable_weight', true) !== 'no' ) :
echo '
';
else:
echo '
';
endif;
// Featured
$field = array( 'id' => 'featured', 'label' => __('Featured?', 'woothemes') );
echo '
';
// Visibility
$field = array( 'id' => 'visibility', 'label' => __('Visibility', 'woothemes') );
echo '
';
?>
'regular_price', 'label' => __('Regular Price', 'woothemes') . ' ('.get_woocommerce_currency_symbol().'):' );
echo '
';
// Special Price
$field = array( 'id' => 'sale_price', 'label' => __('Sale Price', 'woothemes') . ' ('.get_woocommerce_currency_symbol().'):' );
echo '
';
// Special Price date range
$field = array( 'id' => 'sale_price_dates', 'label' => __('Sale Price Dates', 'woothemes') );
$sale_price_dates_from = get_post_meta($thepostid, 'sale_price_dates_from', true);
$sale_price_dates_to = get_post_meta($thepostid, 'sale_price_dates_to', true);
echo '
' . __('Date format', 'woothemes') . ': YYYY-MM-DD
';
// Tax
$_tax = new woocommerce_tax();
$field = array( 'id' => 'tax_status', 'label' => __('Tax Status', 'woothemes') );
echo '
';
$field = array( 'id' => 'tax_class', 'label' => __('Tax Class', 'woothemes') );
echo '
';
?>
'manage_stock', 'label' => __('Manage stock?', 'woothemes') );
echo '
';
// Stock status
$field = array( 'id' => 'stock_status', 'label' => 'Stock status:' );
echo '
';
echo '
';
// Stock
$field = array( 'id' => 'stock', 'label' => __('Stock Qty', 'woothemes') );
echo '
';
// Backorders?
$field = array( 'id' => 'backorders', 'label' => __('Allow Backorders?', 'woothemes') );
echo '
';
echo '
';
?>