woocommerce/assets/js/admin/meta-boxes-coupon.js

17 lines
345 B
JavaScript
Raw Normal View History

2014-07-08 13:14:29 +00:00
jQuery( function($){
// Coupon type options
$('select#discount_type').change(function(){
// Get value
var select_val = $(this).val();
if ( select_val == 'fixed_product' || select_val == 'percent_product' ) {
$('.limit_usage_to_x_items_field').show();
} else {
$('.limit_usage_to_x_items_field').hide();
}
}).change();
});