“From..” price display
-
Hello,
I’m using Elex dynamic pricing on one of my websites and it’s working great!
But I’m encountering a little trouble regarding the price display:
I want to disable the variable product price range which usually looks like $100-$999 and replaces it with: “From: ” in front of the minimum price.In order to achieve this I was using this snippet on my child theme function.php file:
add_filter( 'woocommerce_variable_price_html', 'from_variation_price_format', 9999, 2 ); function from_variation_price_format( $price, $product ) { $prices = $product->get_variation_prices( true ); $min_price = current( $prices['price'] ); $price = sprintf( __( 'From: %1$s', 'woocommerce' ), wc_price( $min_price ) ); return $price; }
This snippet was also working great prior to the activation of the ELEX plugin, and when I deactivate it, it works again.
Is their any way to combine this nice plugin and my way to display prices?
Thanks in advance! ??
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘“From..” price display’ is closed to new replies.