WooCommerce Coupon Exclusions

WooCommerce Coupon Exclusions

WooCommerce Coupon Exclusions is a powerful and easy to use WooCommerce extension which provides extended coupon usage restrictions.

This WordPress plugin allows to restrict the validity of a coupon based on other coupons applied. It also allows to remove specific coupons when a coupon is applied.

It provides a new Extensions section for coupons. This new section features the following restriction facilities when a coupon is edited:

  • Exclude : One or more coupons can be chosen, the coupon is invalid if any of the chosen coupons are applied to the cart.
  • Remove coupons : The coupons chosen here are removed if the coupon is applied to the cart.

Exclusions combined

Documentation

Please visit the Documentation page for this extension.

Download

WooCommerce Coupon Exclusions

This extension is available on CodeCanyon.

9 Responses to WooCommerce Coupon Exclusions

  1. Ken Priest June 2, 2017 at 9:53 am #

    I have had the Coupon Exclusions installed and working since January and have a fairly complex arrangement of coupons based on products purchased and they are setup in a hierarchy where once the customer selects a product in the higher discount coupon eligibility criteria, the previously auto-applied coupons would be automatically removed using this exclusion plugin. Today it stopped working and now am getting an “invalid coupon” for the coupons that the exclusion rules are supposed to – and USED TO – remove. The invalid coupons don’t show up in the bottom section of the cart – the valid ones do as appropriate – but the invalid ones are somehow still attached and the invalid status makes it impossible for customers to checkout. I just renewed my support, so I am hoping to get a response asap.

    • Ken Priest June 2, 2017 at 10:14 am #

      …nevermind. I figured it out. I have not confirmed that it was actually working under the conditions that caused the error. I just assumed it was because it had been tested.

      • antonio June 5, 2017 at 4:38 pm #

        Perfect 🙂

        • Ken Priest June 5, 2017 at 7:12 pm #

          Well I spoke too soon. As it turns out, the coupon that is supposed to be removed (via the exclusion) is still in play, but flagged invalid. I only have a work-around now of setting it to “individual use only” but that won’t work in a few weeks when I need it to work with other manual coupons. I don’t understand how this suddenly stopped working properly when there have been NO changes or updates to anything.

          • antonio June 8, 2017 at 10:15 am #

            Hi Ken,
            Please can you give me an example of use? So I can test it.
            Thanks,
            Antonio B.

            • Ken Priest June 14, 2017 at 7:06 pm #

              I figured out what caused it to break after it had been working for months. My client wanted to remove the coupon code fields from the cart and checkout pages, so I had this code in the functions.php:

              // hide COUPON field on cart page – Comment Out when coupons are in season!
              function hide_coupon_field_on_cart( $enabled ) {
              if ( is_cart() ) {
              $enabled = false;
              }
              return $enabled;
              }
              add_filter( ‘woocommerce_coupons_enabled’, ‘hide_coupon_field_on_cart’ );
              // hide coupon field on checkout page
              function hide_coupon_field_on_checkout( $enabled ) {
              if ( is_checkout() ) {
              $enabled = false;
              }
              return $enabled;
              }
              add_filter( ‘woocommerce_coupons_enabled’, ‘hide_coupon_field_on_checkout’ );

              When I commented the code out to enable the coupon code entry for one of the two times he offers customer entered coupon discounts to be used in conjunction with the automatic discounts. But with that code commented out, the “Invalid Coupon” comes up when auto coupon conditions overlap. Before I realized it was that code causing it, I was able to stop it by enabling the “Individual Use Only” option on those specific coupons causing the error.

              So – – the coupons that error when they overlap with the conditions of what should be overriding coupons have their exclusions set.

              I purchased and installed the coupon extension “Coupon Messaging” to be able to determine which coupons were triggering the error (it used to just say “coupon is invalid”).

              Bottom line is that I need to be able to turn OFF the individual use box and allow these coupons to be used with a customer entered coupon code, as well as to have the coupons be “removed” automatically when the higher priority coupons apply. As I mentioned, it’s a very complex set of discounts and took me a long time to make it work to the extent that it does. I can give you access to the development server if you email me directly.

              • antonio June 15, 2017 at 9:01 am #

                Hi Ken,
                If you want to hide the coupon fields, you could use CSS or overriding the woocommerce pages in your child theme. I think that the filters that you have used have side effects.
                Kind Regards,
                Antonio B.

                • Ken June 19, 2017 at 10:34 am #

                  Hiding the coupon fields is not the problem – I can do that, but the problem is that I can’t use a customer entered code IN CONJUNCTION WITH an auto-coupon if I have that auto coupon set to individual use only because it errors (invalid due to exclusions) when it’s qualifying products are in the cart with the overriding coupon’s qualifying products. Bottom line is that the INVALID COUPON error should not show when a coupon is auto-applied and then overridden by the exclusion setting of another coupon.

                  • antonio June 22, 2017 at 8:52 am #

                    Hi Ken,
                    Are you using any plugin to auto-apply coupons?
                    If you send me an example of coupons and their settings to antonio[at]itthinx[dot]com I’ll try this scenario (if you want, you can send me dashboard admin settings)
                    Kind Regards,
                    Antonio B.

Leave a Reply