Hide pricing from quick edit, for unsupported product types
This commit is contained in:
@@ -23,9 +23,9 @@ jQuery(function( $ ) {
|
|||||||
var product_type = $wc_inline_data.find('.product_type').text();
|
var product_type = $wc_inline_data.find('.product_type').text();
|
||||||
|
|
||||||
if (product_type==='bundle') {
|
if (product_type==='bundle') {
|
||||||
jQuery('.custom_field_demo', '.inline-edit-row').show();
|
jQuery('#wiaas_pricing_quick_edit', '.inline-edit-row').show();
|
||||||
} else {
|
} else {
|
||||||
jQuery('.custom_field_demo', '.inline-edit-row').hide();
|
jQuery('#wiaas_pricing_quick_edit', '.inline-edit-row').hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -21,8 +21,7 @@ class Wiaas_Product_Quick_Edit {
|
|||||||
public static function add_additional_fields_to_edit() {
|
public static function add_additional_fields_to_edit() {
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<h4><?php esc_html_e('Pricing', 'woocommerce'); ?></h4>
|
<div id="wiaas_pricing_quick_edit" class="inline-edit-group">
|
||||||
<div class="inline-edit-group">
|
|
||||||
<h4><?php esc_html_e('Pricing', 'woocommerce'); ?></h4>
|
<h4><?php esc_html_e('Pricing', 'woocommerce'); ?></h4>
|
||||||
<label class="alignleft">
|
<label class="alignleft">
|
||||||
<textarea style="height: 200px;width: 300px" type="text" name="_package_pricing" class="text"
|
<textarea style="height: 200px;width: 300px" type="text" name="_package_pricing" class="text"
|
||||||
|
|||||||
Reference in New Issue
Block a user