This file contains 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
<?php | |
/** | |
* Add to cart before applying coupon | |
* | |
* Made to be used with the "Smart Coupons" WooCommerce extention. | |
* If we apply coupon from url and the coupon is dedicated to a specific product, the coupon is not applied if | |
* the product is not already in cart. So, before applying the coupon we add this product to cart. | |
* | |
* @link | |
* @version 1.0.1 |