woocommerce disable coupons
How to Remove WooCommerce Coupon Code Fields. const e_wc_coupon_min_spend_limit_not_met = 108; const E_WC_COUPON_NOT_APPLICABLE = 109; const E_WC_COUPON_NOT_VALID_SALE_ITEMS = 110; Step 1: Create a new coupon & add WooCommerce coupon restrictions with Cart Conditions. I could be in the wrong direction completely. If a you have a limit to one use per customer and the customer uses it, then the order is cancelled. Step 2: Disable all WooCommerce coupons Our plugin, Remove WooCommerce Features, will let you remove the coupon code fields from your cart and checkout pages with just a few clicks of your mouse. How to Disable WooCommerce Coupon Code Fields the Easy Way. With this extension you can limit a coupon to new customers or existing customers. c) Hide the coupon code field on the WooCommerce Checkout page The store owner can disable the discount coupon code field completely on the cart and the checkout page, if they do not want to offer any rewards or offers on the store by disabling the ‘Enable the use of coupon codes’ checkbox in the WooCommerce->Settings->General tab. When WooCommerce checks a coupon’s usage restrictions, cancelled orders are not considered by default. That coupon will be available again to that customer. I've tried the snippet below but it's not targeting subscription products added through the "all products for subscription" plugin. If you need more information about that, check out our guide that explains how to create and set up WooCommerce coupons step-by-step. I have a test product here This function checks whether there is a coupon field on this page. The WooCommerce Coupon Restrictions extension provides you with expanded coupon restriction options. Duplicate – This button helps you create hundreds of copies out of a coupon. Let’s go through some ways to hide coupons from different parts of your WooCommerce store to maximize your conversions and customer happiness. Removing Coupons. Locate cell – Here you can enter a specific cell content and it will take you right to that cell. CODES (7 days ago) Disable Coupons in WooCommerce by unchecking the box under “General” in Settings All you have to do is uncheck the “Enabled the use of coupons” box and your entire site will remove the coupon code fields. We’ll assume that you know how to create coupons in WooCommerce. In this case, you need to use the Bulk Edit tool, so please open it by clicking it on the toolbar. Creating a new coupon with coupon restrictions is Advanced Coupons and the Cart Conditions functionality. If it is there, the code disables the coupon code field with the aid of this filter add_filter( 'woocommerce_coupons_enabled', 'disable_coupon_field_on_cart' );. 1) Disable coupon code completely on your WooCommerce store. If you don’t have any active coupons, you could completely remove the coupon code field. I am trying to disable coupon codes for my WooCommerce Subscriptions that I have set up through the "all products for subscription" add on. It’s just that easy. However, if you disable the coupon code from the WooCommerce settings as shown in the first method, the automatic coupon code will not work because the coupon code feature is disabled in WooCommerce. ... For this extension to work optimally, it’s recommended to disable guest checkout and instead automatically create a new user account for new customers. @cyriac1993 you shouldn’t need to remove the coupon from the order. Cart Conditions are an advanced way to create WooCommerce coupon restrictions so you can protect your coupons from being used incorrectly. First of all, if you don’t want to use coupons in your store, you can simply disable them under WooCommerce > Settings > Checkout. 1) How to remove the coupon code field.