Trying to delete the word “From” in “From price”

This topic has 7 replies, 2 voices, and was last updated 2 years, 11 months ago ago by Bas Kling

  • Avatar: Bas_Kling
    Bas Kling
    Participant
    November 22, 2021 at 22:12

    Hi,

    I see that Xstore now offers the option to show the minimum price for variable products only.
    Hope you can help me: I’m looking for the string or class that displays the word “From” (in Dutch: ‘Vanaf’). Showing the minimum price only, I want to hide the word Vanaf: https://i.imgur.com/nNy2ISc.png

    6 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    November 23, 2021 at 11:31

    Hello,

    Go to translation of the theme, and change the Vanaf word to empty space

    Regards

    Avatar: Bas_Kling
    Bas Kling
    Participant
    November 23, 2021 at 13:54

    Is there another viable option other than mis-using the translation file? This is not something that will come up when we need to troubleshoot a related issue in the future

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    November 23, 2021 at 16:59

    try this

    add_action( ‘wp’, ‘etheme_template_custom_hooks’, 60 );

    function etheme_template_custom_hooks() {

    if ( etheme_get_option(‘product_variable_price_from’, false)) {

    add_filter( ‘woocommerce_format_price_range’, function ( $price, $from, $to ) {

    return wc_price( $from );

    }, 20, 3 );

    }

    }

    xstore-child/functions.php

    Regards

     

    Avatar: Bas_Kling
    Bas Kling
    Participant
    November 23, 2021 at 17:45

    Doesn’t seem to work

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    November 24, 2021 at 08:59

    Provide URL, temporary wp-admin and FTP access.

    Regards

    Avatar: Bas_Kling
    Bas Kling
    Participant
    November 24, 2021 at 10:15

    Realizing that the issue/request is beyond Xstore’s basic support, we’ve given this as an assignment to our developer. But thanks for wanting to resolve this for us.

    Regards,

  • Viewing 7 results - 1 through 7 (of 7 total)

The issue related to '‘Trying to delete the word “From” in “From price”’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.