/*
Theme Name: Soho Child
Theme URI: http://demo.select-themes.com/soho/
Description: A child theme of Soho Theme
Author: Select Themes
Author URI: http://select-themes.com
Version: 1.0.1
Template: soho
*/





/* 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( __( 'Începând de la: %s', 'your-text-domain' ), wc_price( $prices[0] ) ) : wc_price( $prices[0] );

    return $price;
}