2013-07-24 18:55:02 +00:00
|
|
|
<fieldset class="inline-edit-col-left">
|
|
|
|
<div id="woocommerce-fields" class="inline-edit-col">
|
|
|
|
|
|
|
|
<h4><?php _e( 'Product Data', 'woocommerce' ); ?></h4>
|
|
|
|
|
2013-08-08 07:46:46 +00:00
|
|
|
<?php do_action( 'woocommerce_product_quick_edit_start' ); ?>
|
|
|
|
|
2013-08-22 10:58:03 +00:00
|
|
|
<?php if ( wc_product_sku_enabled() ) : ?>
|
2013-07-24 18:55:02 +00:00
|
|
|
|
|
|
|
<label>
|
|
|
|
<span class="title"><?php _e( 'SKU', 'woocommerce' ); ?></span>
|
|
|
|
<span class="input-text-wrap">
|
|
|
|
<input type="text" name="_sku" class="text sku" value="">
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
<br class="clear" />
|
|
|
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<div class="price_fields">
|
|
|
|
<label>
|
|
|
|
<span class="title"><?php _e( 'Price', 'woocommerce' ); ?></span>
|
|
|
|
<span class="input-text-wrap">
|
|
|
|
<input type="text" name="_regular_price" class="text regular_price" placeholder="<?php _e( 'Regular price', 'woocommerce' ); ?>" value="">
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
<br class="clear" />
|
|
|
|
<label>
|
|
|
|
<span class="title"><?php _e( 'Sale', 'woocommerce' ); ?></span>
|
|
|
|
<span class="input-text-wrap">
|
|
|
|
<input type="text" name="_sale_price" class="text sale_price" placeholder="<?php _e( 'Sale price', 'woocommerce' ); ?>" value="">
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
<br class="clear" />
|
|
|
|
</div>
|
|
|
|
|
2013-07-30 13:43:45 +00:00
|
|
|
<label class="alignleft">
|
|
|
|
<span class="title"><?php _e( 'Tax Status', 'woocommerce' ); ?></span>
|
|
|
|
<span class="input-text-wrap">
|
|
|
|
<select class="tax_status" name="_tax_status">
|
|
|
|
<?php
|
|
|
|
$options = array(
|
|
|
|
'taxable' => __( 'Taxable', 'woocommerce' ),
|
|
|
|
'shipping' => __( 'Shipping only', 'woocommerce' ),
|
|
|
|
'none' => __( 'None', 'woocommerce' )
|
|
|
|
);
|
|
|
|
foreach ($options as $key => $value) {
|
2013-11-20 19:11:59 +00:00
|
|
|
echo '<option value="' . esc_attr( $key ) . '">' . $value . '</option>';
|
2013-07-30 13:43:45 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</select>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
<br class="clear" />
|
|
|
|
<label class="alignleft">
|
|
|
|
<span class="title"><?php _e( 'Tax Class', 'woocommerce' ); ?></span>
|
|
|
|
<span class="input-text-wrap">
|
|
|
|
<select class="tax_class" name="_tax_class">
|
|
|
|
<?php
|
|
|
|
$options = array(
|
|
|
|
'' => __( 'Standard', 'woocommerce' )
|
|
|
|
);
|
|
|
|
|
|
|
|
$tax_classes = array_filter( array_map( 'trim', explode( "\n", get_option( 'woocommerce_tax_classes' ) ) ) );
|
|
|
|
|
|
|
|
if ( $tax_classes )
|
|
|
|
foreach ( $tax_classes as $class )
|
|
|
|
$options[ sanitize_title( $class ) ] = esc_html( $class );
|
|
|
|
|
|
|
|
foreach ($options as $key => $value) {
|
2013-11-20 19:11:59 +00:00
|
|
|
echo '<option value="' . esc_attr( $key ) . '">' . $value . '</option>';
|
2013-07-30 13:43:45 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</select>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
<br class="clear" />
|
|
|
|
|
2013-08-22 10:58:03 +00:00
|
|
|
<?php if ( wc_product_weight_enabled() || wc_product_dimensions_enabled() ) : ?>
|
2013-07-24 18:55:02 +00:00
|
|
|
<div class="dimension_fields">
|
|
|
|
|
2013-08-22 10:58:03 +00:00
|
|
|
<?php if ( wc_product_weight_enabled() ) : ?>
|
2013-07-24 18:55:02 +00:00
|
|
|
<label>
|
|
|
|
<span class="title"><?php _e( 'Weight', 'woocommerce' ); ?></span>
|
|
|
|
<span class="input-text-wrap">
|
|
|
|
<input type="text" name="_weight" class="text weight" placeholder="0.00" value="">
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
<br class="clear" />
|
|
|
|
<?php endif; ?>
|
|
|
|
|
2013-08-22 10:58:03 +00:00
|
|
|
<?php if ( wc_product_dimensions_enabled() ) : ?>
|
2013-07-24 18:55:02 +00:00
|
|
|
<div class="inline-edit-group dimensions">
|
|
|
|
<div>
|
|
|
|
<span class="title"><?php _e( 'L/W/H', 'woocommerce' ); ?></span>
|
|
|
|
<span class="input-text-wrap">
|
|
|
|
<input type="text" name="_length" class="text length" placeholder="<?php _e( 'Length', 'woocommerce' ); ?>" value="">
|
|
|
|
<input type="text" name="_width" class="text width" placeholder="<?php _e( 'Width', 'woocommerce' ); ?>" value="">
|
|
|
|
<input type="text" name="_height" class="text height" placeholder="<?php _e( 'Height', 'woocommerce' ); ?>" value="">
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<label class="alignleft">
|
|
|
|
<span class="title"><?php _e( 'Visibility', 'woocommerce' ); ?></span>
|
|
|
|
<span class="input-text-wrap">
|
|
|
|
<select class="visibility" name="_visibility">
|
|
|
|
<?php
|
|
|
|
$options = array(
|
|
|
|
'visible' => __( 'Catalog & search', 'woocommerce' ),
|
|
|
|
'catalog' => __( 'Catalog', 'woocommerce' ),
|
|
|
|
'search' => __( 'Search', 'woocommerce' ),
|
|
|
|
'hidden' => __( 'Hidden', 'woocommerce' )
|
|
|
|
);
|
|
|
|
foreach ($options as $key => $value) {
|
2013-11-20 19:11:59 +00:00
|
|
|
echo '<option value="' . esc_attr( $key ) . '">'. $value .'</option>';
|
2013-07-24 18:55:02 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</select>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
<label class="alignleft featured">
|
|
|
|
<input type="checkbox" name="_featured" value="1">
|
|
|
|
<span class="checkbox-title"><?php _e( 'Featured', 'woocommerce' ); ?></span>
|
|
|
|
</label>
|
|
|
|
<br class="clear" />
|
|
|
|
<label class="alignleft">
|
|
|
|
<span class="title"><?php _e( 'In stock?', 'woocommerce' ); ?></span>
|
|
|
|
<span class="input-text-wrap">
|
|
|
|
<select class="stock_status" name="_stock_status">
|
|
|
|
<?php
|
|
|
|
$options = array(
|
|
|
|
'instock' => __( 'In stock', 'woocommerce' ),
|
|
|
|
'outofstock' => __( 'Out of stock', 'woocommerce' )
|
|
|
|
);
|
|
|
|
foreach ($options as $key => $value) {
|
2013-11-20 19:11:59 +00:00
|
|
|
echo '<option value="' . esc_attr( $key ) .'">'. $value .'</option>';
|
2013-07-24 18:55:02 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</select>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<div class="stock_fields">
|
|
|
|
|
|
|
|
<?php if (get_option('woocommerce_manage_stock')=='yes') : ?>
|
|
|
|
<label class="alignleft manage_stock">
|
|
|
|
<input type="checkbox" name="_manage_stock" value="1">
|
|
|
|
<span class="checkbox-title"><?php _e( 'Manage stock?', 'woocommerce' ); ?></span>
|
|
|
|
</label>
|
|
|
|
<br class="clear" />
|
|
|
|
<label class="stock_qty_field">
|
|
|
|
<span class="title"><?php _e( 'Stock Qty', 'woocommerce' ); ?></span>
|
|
|
|
<span class="input-text-wrap">
|
2013-08-08 06:24:38 +00:00
|
|
|
<input type="number" name="_stock" class="text stock" step="any" value="">
|
2013-07-24 18:55:02 +00:00
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2013-09-06 10:17:41 +00:00
|
|
|
<label class="alignleft">
|
|
|
|
<span class="title"><?php _e( 'Backorders?', 'woocommerce' ); ?></span>
|
|
|
|
<span class="input-text-wrap">
|
|
|
|
<select class="backorders" name="_backorders">
|
|
|
|
<?php
|
|
|
|
$options = array(
|
|
|
|
'no' => __( 'Do not allow', 'woocommerce' ),
|
|
|
|
'notify' => __( 'Allow, but notify customer', 'woocommerce' ),
|
|
|
|
'yes' => __( 'Allow', 'woocommerce' )
|
|
|
|
);
|
|
|
|
foreach ($options as $key => $value) {
|
2013-11-20 19:11:59 +00:00
|
|
|
echo '<option value="' . esc_attr( $key ) . '">'. $value .'</option>';
|
2013-09-06 10:17:41 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</select>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
|
2013-08-08 07:46:46 +00:00
|
|
|
<?php do_action( 'woocommerce_product_quick_edit_end' ); ?>
|
|
|
|
|
2013-07-24 18:55:02 +00:00
|
|
|
<input type="hidden" name="woocommerce_quick_edit" value="1" />
|
|
|
|
<input type="hidden" name="woocommerce_quick_edit_nonce" value="<?php echo wp_create_nonce( 'woocommerce_quick_edit_nonce' ); ?>" />
|
|
|
|
</div>
|
|
|
|
</fieldset>
|