"From + price" on wrong places

Homepage Forums WP Travel "From + price" on wrong places

This topic contains 1 reply, has 2 voices, and was last updated by  wensolutions 2 months, 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #19471

    Flukkini
    Participant

    Hi there, there’s an anomaly:
    the word “from” before “price” appears in two places where it is not supposed to:

    1) *total price of traveller cart* as once it is there price is FINAL.
    You can see the anomaly in this image:
    https://www.dropbox.com/s/je0rc46ugsm3wfr/1.jpeg?dl=0

    2) *total price of check out* as once it is there price is definitely FINAL.
    You can see the anomaly in this image:
    https://www.dropbox.com/s/34f6f5y5hovkm4m/2.jpeg?dl=0

    Can you fix it, please?
    Thank you and best regards.

    #19473

    wensolutions
    Keymaster

    Hello,

    To resolve the issue please replace the code as mentioned in your child themes functions.php file

    Code to remove: Find this code and remove:

    function wp_travel_customize_sale_price_display( $s, $c, $d ) {
       
       
        return sprintf( esc_html__('From %1s %2s', 'wp-travel' ), $c , $d );
    }
    add_filter( 'wp_travel_itinerary_sale_price', 'wp_travel_customize_sale_price_display', 99, 3 );

    Replace above code with below given code:

    function wp_travel_customize_sale_price_display( $s, $c, $d ) {
       
        if ( is_front_page() ) {
            return sprintf( esc_html__('From %1s %2s', 'wp-travel' ), $c , $d );
        }
        return $s;
    
    }
    add_filter( 'wp_travel_itinerary_sale_price', 'wp_travel_customize_sale_price_display', 99, 3 );

    This should resolve the issue.

    Thank you.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.