Browse
For agents
About
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO
/
1.3.42
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO
v1.3.42
Switch version
1.4.18
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
All 181 releases
Overview
Code
← All changes
|
app/Utility/Search.php
+4
-0
1.4.2
→
1.3.42
View file →
@@ -219,8 +219,12 @@
219
219
}
220
220
221
221
$coupon = new WC_Coupon( $coupon->post_title );
222
222
223
+
if ( ! $coupon->is_valid_for_cart() ) {
224
+
continue;
225
+
}
226
+
223
227
$coupons[] = array(
224
228
'id' => $coupon->get_id(),
225
229
'name' => $coupon->get_code(),
226
230
);