PluginProbe
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO / 1.4.16
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO v1.4.16
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/product.php +4 -4 1.4.111.4.16 View file →
@@ -161,12 +161,12 @@
161 161 return $result;
162 162 }
163 163
164 164 // Apply to simple and variation product prices (priority 999 for better compatibility)
165 - add_filter( 'woocommerce_product_get_price', 'disco_discounted_price', 999, 2 );
166 - add_filter( 'woocommerce_product_get_sale_price', 'disco_discounted_price', 999, 2 );
167 - add_filter( 'woocommerce_product_variation_get_price', 'disco_discounted_price', 999, 2 );
168 - add_filter( 'woocommerce_product_variation_get_sale_price', 'disco_discounted_price', 999, 2 );
165 + add_filter( 'woocommerce_product_get_price', 'disco_discounted_price', PHP_INT_MAX, 2 );
166 + add_filter( 'woocommerce_product_get_sale_price', 'disco_discounted_price', PHP_INT_MAX, 2 );
167 + add_filter( 'woocommerce_product_variation_get_price', 'disco_discounted_price', PHP_INT_MAX, 2 );
168 + add_filter( 'woocommerce_product_variation_get_sale_price', 'disco_discounted_price', PHP_INT_MAX, 2 );
169 169 }
170 170
171 171 if ( ! function_exists( 'disco_variable_product_discounted_price_html' ) ) {
172 172