Skip to content

WooCommerce plugin which adds a checkbox on each product which will prevent coupons applying to that product.

License

Notifications You must be signed in to change notification settings

BrianHenryIE/bh-wc-disable-coupons-per-product

Repository files navigation

WordPress tested 5.9 PHPCS WPCS PHPStan

Disable Coupons Per Product

WooCommerce plugin which adds a checkbox on each product which will prevent coupons applying to that product. Any coupon a customer uses will still apply to all other items in the cart.

WooCommerce product edit screen

The code is a slightly modified version of a StackOverflow answer to Exclude product from all coupons in WooCommerce.

plugins.php

If the plugin Search by ID has been installed, the "Products" link on plugins.php will link to the list of products that have the setting enabled.

Download from GitHub releases.

More Information

See github.com/BrianHenryIE/WordPress-Plugin-Boilerplate for initial setup rationale.

Acknowledgements

About

WooCommerce plugin which adds a checkbox on each product which will prevent coupons applying to that product.

Topics

Resources

License

Stars

Watchers

Forks