I found the reason for my issue. It’s one of my custom hook for min price for variable products.
// add_filter(‘woocommerce_variable_price_html’,’shop_variable_product_price’, 10, 2 );
// function shop_variable_product_price( $price, $product ){
// $variation_min_reg_price = $product->get_variation_regular_price(‘min’, true);
// $variation_min_sale_price = $product->get_variation_sale_price(‘min’, true);
// if ( $product->is_on_sale() && !empty($variation_min_sale_price)){
// if ( !empty($variation_min_sale_price) )
// $price = ‘‘ . wc_price($variation_min_reg_price) . ‘
// ‘ . wc_price($variation_min_sale_price) . ‘‘;
// } else {
// if(!empty($variation_min_reg_price))
// $price = ‘‘.wc_price( $variation_min_reg_price ).’‘;
// else
// $price = ‘‘.wc_price( $product->regular_price ).’‘;
// }
// return $price;
// }
Do you think it’s possible to make it work with such a hook somehow?
Thank you in advance