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

1 line
223 B
JavaScript

jQuery(function(a){a("select#discount_type").change(function(){var b=a(this).val();"fixed_product"===b||"percent_product"===b?a(".limit_usage_to_x_items_field").show():a(".limit_usage_to_x_items_field").hide()}).change()});