• woowoffer

    (@woowoffer)


    Hello,
    I used the below code to show only from in the price table, but still shows from-to

    add_filter (‘soft79_wcpr_min_max_price_html’, ‘soft79_wcpr_min_max_price_html’, 10, 6);
    function soft79_wcpr_min_max_price_html( $new_price_html, $original_price_html, $product, $min_price, $max_price, $is_singular ) {
    if ( ! $is_singular ) {
    return sprintf( __(‘From %s’, ‘your-text-domain’), wc_price( $product->get_display_price( $min_price ) ) );
    }
    }

  • The topic ‘Show only “From”’ is closed to new replies.