woocommerce_wp_text_input(array('id'=>'coupon_amount','label'=>__('Coupon amount','woothemes'),'placeholder'=>__('0.00','woothemes'),'description'=>__('Enter an amount e.g. 2.99 or an integer for percentages e.g. 20%','woothemes')));
woocommerce_wp_checkbox(array('id'=>'individual_use','label'=>__('Individual use','woothemes'),'description'=>__('Check this box if the coupon cannot be used in conjunction with other coupons','woothemes')));
woocommerce_wp_text_input(array('id'=>'product_ids','label'=>__('Product IDs','woothemes'),'placeholder'=>__('N/A','woothemes'),'description'=>__('(optional) Comma separate product IDs which need to be in the cart to use this coupon, or for "Product Discounts" are discounted.','woothemes')));
woocommerce_wp_text_input(array('id'=>'usage_limit','label'=>__('Usage limit','woothemes'),'placeholder'=>__('Unlimited usage','woothemes'),'description'=>__('(optional) How many times this coupon can be used before it is void','woothemes')));
woocommerce_wp_text_input(array('id'=>'expiry_date','label'=>__('Expiry date','woothemes'),'placeholder'=>__('Never expire','woothemes'),'description'=>__('(optional) The date this coupon will expire, <code>YYYY-MM-DD</code>','woothemes'),'class'=>'short date-picker'));
if($_POST['discount_type']=='fixed_product'&&!$_POST['product_ids'])$woocommerce_errors[]=__('Product discount coupons require you to set "Product IDs" to work.','woothemes');