PluginProbe
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO / 1.4.17
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO v1.4.17
1.4.17 1.4.16 1.4.15 1.4.14 1.4.13 1.4.12 1.4.11 1.4.10 1.4.9 1.4.8 1.4.7 1.4.6 1.4.5 1.4.4 1.4.3 1.4.2 1.4.1 1.4.0 1.3.54 1.3.53 1.3.52 1.3.51 1.3.50 1.3.49 1.3.48 All 180 releases
← All changes | functions/coupon.php +1 -4 1.3.491.4.17 View file →
@@ -25,12 +25,9 @@
25 25 * @param string $coupon_code Coupon code.
26 26 * @return float
27 27 */
28 28 function disco_disable_coupon_application( $valid, $coupon, $discount ) {
29 - if(
30 - Settings::get( 'discount_priority_type' ) === 'woocommerce_coupon' ||
31 - Settings::get( 'discount_priority_type' ) === 'both'
32 - ) {
29 + if ( Settings::get( 'discount_priority_type' ) === 'both' ) {
33 30 return $valid; // Allow coupon validation if the setting is enabled.
34 31 }
35 32 return false; // This will prevent all coupons from being valid
36 33 }