/* Change price display for Variable Products */ add_filter( 'woocommerce_get_price_html', 'cssigniter_change_variable_price_display', 10, 2 ); function cssigniter_change_variable_price_display( $price, $product_obj ) { global $product; if ( 'variable' !== $product->get_type() || 'product_variation' === $product_obj->post_type ) { return $price; } $prices = array( $product->get_variation_price( 'min', true ), $product->get_variation_price( 'max', true ) ); // Translators: %s is the lowest variation price. $price = $prices[0] !== $prices[1] ? sprintf( __( 'Dès: %s', 'your-text-domain' ), wc_price( $prices[0] ) ) : wc_price( $prices[0] ); return $price; }
Warning: Cannot modify header information - headers already sent by (output started at /home/loscanin/l-os.ch/wp-content/themes/meow/functions.php:1908) in /home/loscanin/l-os.ch/wp-includes/pluggable.php on line 1450

Warning: Cannot modify header information - headers already sent by (output started at /home/loscanin/l-os.ch/wp-content/themes/meow/functions.php:1908) in /home/loscanin/l-os.ch/wp-includes/pluggable.php on line 1453