Repository Forums Support WooCommerce Pricing Rules PRO How to show price 'From…' Reply To: How to show price 'From…'

#274
rdtzn1
Participant

Don’t worry – I worked it out.

In case anyone else wants to change this, I just replaced the following line in soft79-wc-pricing-rules/soft79-wc-pricing-rules.php:

return sprintf( _x( '%1$s–%2$s', 'Price range: from-to', 'woocommerce' ), wc_price( $product->get_display_price( $min_price ) ), wc_price( $product->get_display_price( $max_price ) ) ) . $suffix;

With:

return sprintf( _x( '%1$s%2$s', 'Price range: from-to', 'woocommerce' ), 'From: ', wc_price( $product->get_display_price( $min_price ) ) ) . $suffix;