Created
March 3, 2020 07:02
-
-
Save wpweb101/490c4c7384a1930fa426c02d4f6fc558 to your computer and use it in GitHub Desktop.
WooCommerce Pdf Vouchers - Function to solves coupon code already used issue on checkout page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // add below code to the functions.php of your child theme. | |
| add_filter('woocommerce_hold_stock_for_checkout', 'woo_vou_pdf_coupon_hold_stock_on_checkout'); | |
| /** | |
| * Disable the filter | |
| */ | |
| function woo_vou_pdf_coupon_hold_stock_on_checkout(){ | |
| return false; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment