ID, 'product_data', true) );
$featured = (string) get_post_meta( $post->ID, 'featured', true );
$visibility = (string) get_post_meta( $post->ID, 'visibility', true);
if (!isset($data['weight'])) $data['weight'] = '';
if (!isset($data['regular_price'])) $data['regular_price'] = '';
if (!isset($data['sale_price'])) $data['sale_price'] = '';
$thepostid = $post->ID;
?>
slug; else $product_type = 'simple';
$field = array( 'id' => 'product-type', 'label' => 'Product Type' );
echo '
';
// Summary
echo '
';
// SKU
$field = array( 'id' => 'sku', 'label' => 'SKU:' );
$SKU = get_post_meta($thepostid, 'SKU', true);
echo '
Leave blank to use product ID
';
// Weight
$field = array( 'id' => 'weight', 'label' => 'Weight ('.get_option('jigoshop_weight_unit').'):' );
echo '
';
// Featured
$field = array( 'id' => 'featured', 'label' => 'Featured?' );
echo '
';
// Visibility
$field = array( 'id' => 'visibility', 'label' => 'Visibility:' );
echo '
';
?>
'regular_price', 'label' => 'Regular Price ('.get_jigoshop_currency_symbol().'):' );
echo '
';
// Special Price
$field = array( 'id' => 'sale_price', 'label' => 'Sale Price ('.get_jigoshop_currency_symbol().'):' );
echo '
';
// Special Price date range
$field = array( 'id' => 'sale_price_dates', 'label' => 'Sale Price Dates:' );
$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: YYYY-MM-DD
';
// Tax
$_tax = new jigoshop_tax();
$field = array( 'id' => 'tax_status', 'label' => 'Tax Status:' );
echo '
';
$field = array( 'id' => 'tax_class', 'label' => 'Tax Class:' );
echo '
';
?>
'manage_stock', 'label' => 'Manage stock?' );
echo '
';
// Stock status
$field = array( 'id' => 'stock_status', 'label' => 'Stock status:' );
echo '
';
echo '
';
// Stock
$field = array( 'id' => 'stock', 'label' => 'Stock Qty:' );
echo '
';
// Backorders?
$field = array( 'id' => 'backorders', 'label' => 'Allow Backorders?' );
echo '
';
echo '
';
?>