| @@ -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 | |