woocommerce_wp_text_input(array('id'=>'coupon_amount','label'=>__('Coupon amount','woocommerce'),'placeholder'=>wc_format_localized_price(0),'description'=>__('Value of the coupon.','woocommerce'),'data_type'=>'price','desc_tip'=>true));
woocommerce_wp_checkbox(array('id'=>'free_shipping','label'=>__('Allow free shipping','woocommerce'),'description'=>sprintf(__('Check this box if the coupon grants free shipping. The <a href="%s">free shipping method</a> must be enabled and be set to require "a valid free shipping coupon" (see the "Free Shipping Requires" setting).','woocommerce'),admin_url('admin.php?page=wc-settings&tab=shipping§ion=WC_Shipping_Free_Shipping'))));
woocommerce_wp_text_input(array('id'=>'minimum_amount','label'=>__('Minimum spend','woocommerce'),'placeholder'=>__('No minimum','woocommerce'),'description'=>__('This field allows you to set the minimum subtotal needed to use the coupon.','woocommerce'),'data_type'=>'price','desc_tip'=>true));
woocommerce_wp_text_input(array('id'=>'maximum_amount','label'=>__('Maximum spend','woocommerce'),'placeholder'=>__('No maximum','woocommerce'),'description'=>__('This field allows you to set the maximum subtotal allowed when using the coupon.','woocommerce'),'data_type'=>'price','desc_tip'=>true));
woocommerce_wp_checkbox(array('id'=>'individual_use','label'=>__('Individual use only','woocommerce'),'description'=>__('Check this box if the coupon cannot be used in conjunction with other coupons.','woocommerce')));
// Exclude Sale Products
woocommerce_wp_checkbox(array('id'=>'exclude_sale_items','label'=>__('Exclude sale items','woocommerce'),'description'=>__('Check this box if the coupon should not apply to items on sale. Per-item coupons will only work if the item is not on sale. Per-cart coupons will only work if there are no sale items in the cart.','woocommerce')));
<inputtype="hidden"class="wc-product-search"data-multiple="true"style="width: 50%;"name="product_ids"data-placeholder="<?php esc_attr_e( 'Search for a product…', 'woocommerce' ); ?>"data-action="woocommerce_json_search_products_and_variations"data-selected="<?php
?>" value="<?php echo implode( ',', array_keys( $json_ids ) ); ?>" /> <img class="help_tip" data-tip='<?php _e( 'Products which need to be in the cart to use this coupon or, for "Product Discounts", which products are discounted.', 'woocommerce' ); ?>' src="<?php echo WC()->plugin_url(); ?>/assets/images/help.png" height="16" width="16" /></p>
<inputtype="hidden"class="wc-product-search"data-multiple="true"style="width: 50%;"name="exclude_product_ids"data-placeholder="<?php esc_attr_e( 'Search for a product…', 'woocommerce' ); ?>"data-action="woocommerce_json_search_products_and_variations"data-selected="<?php
?>" value="<?php echo implode( ',', array_keys( $json_ids ) ); ?>" /> <img class="help_tip" data-tip='<?php _e( 'Products which must not be in the cart to use this coupon or, for "Product Discounts", which products are not discounted.', 'woocommerce' ); ?>' src="<?php echo WC()->plugin_url(); ?>/assets/images/help.png" height="16" width="16" /></p>
woocommerce_wp_text_input(array('id'=>'customer_email','label'=>__('Email restrictions','woocommerce'),'placeholder'=>__('No restrictions','woocommerce'),'description'=>__('List of allowed emails to check against the customer\'s billing email when an order is placed. Separate email addresses with commas.','woocommerce'),'value'=>implode(', ',(array)get_post_meta($post->ID,'customer_email',true)),'desc_tip'=>true,'type'=>'email','class'=>'','custom_attributes'=>array(
woocommerce_wp_text_input(array('id'=>'usage_limit','label'=>__('Usage limit per coupon','woocommerce'),'placeholder'=>_x('Unlimited usage','placeholder','woocommerce'),'description'=>__('How many times this coupon can be used before it is void.','woocommerce'),'type'=>'number','desc_tip'=>true,'class'=>'short','custom_attributes'=>array(
woocommerce_wp_text_input(array('id'=>'limit_usage_to_x_items','label'=>__('Limit usage to X items','woocommerce'),'placeholder'=>_x('Apply to all qualifying items in cart','placeholder','woocommerce'),'description'=>__('The maximum number of individual items this coupon can apply to when using product discounts. Leave blank to apply to all qualifying items in cart.','woocommerce'),'desc_tip'=>true,'class'=>'short','type'=>'number','custom_attributes'=>array(
woocommerce_wp_text_input(array('id'=>'usage_limit_per_user','label'=>__('Usage limit per user','woocommerce'),'placeholder'=>_x('Unlimited usage','placeholder','woocommerce'),'description'=>__('How many times this coupon can be used by an invidual user. Uses billing email for guests, and user ID for logged in users.','woocommerce'),'desc_tip'=>true,'class'=>'short','type'=>'number','custom_attributes'=>array(