• Resolved ehsan82

    (@ehsan82)


    Hello,

    I want to change two text on Woocommerce archive and shop page. I am providing two screenshots for your better understanding.

    Woocommerce Archive page:

    https://ibb.co/ngMr8S2

    I want to change the text “Sold by” to “Seller”

    Checkout Page

    https://ibb.co/d2DJdCw

    I want to change the text “Vendor” to “Seller”.

    Please guide me so that I can make these two changes correctly.

    Regards,
    Ehsan

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Tanvir Hasan

    (@tanvirh)

    Hi @ehsan82,

    In order to change the strings “Sold by” to “Seller” and “Vendor” to “Seller” you can use the Loco Translate plugin. I’m adding the documentation link below to know more about how to change the string in Dokan using the Loco Translation plugin.

    You can find the documentation by navigating to this URL.

    I hope the information will help.

    Cheers!

    Thread Starter ehsan82

    (@ehsan82)

    Hello @tanvirh,

    Thanks a lot for your suggestion. I think I will be able to do as per your suggestion but it would be great if I could do this without installing another plugin.

    I just want to change these two text strings on two different pages.

    Is there any other way to do this other than installing a plugin?

    With best regards,
    Ehsan

    Plugin Support Tanvir Hasan

    (@tanvirh)

    Hi @ehsan82

    You can try the below-mentioned PHP codes add them inside the child theme function.php. After that replace the “Old String” and “New String here”. I hope the code will help you to translate the string.

    add_filter('gettext', 'change_vendor_string');
    function change_vendor_string($translated) {
        $translated = str_ireplace('Old String', 'New String here', $translated);
        return $translated;
    }

    Let me know if the codes worked for you.

    Thanks!

    • This reply was modified 2 years, 5 months ago by Tanvir Hasan.
    • This reply was modified 2 years, 5 months ago by Tanvir Hasan.
    Thread Starter ehsan82

    (@ehsan82)

    Hi @tanvirh,

    The code worked like a charm!

    I changed the function name for my 2nd text and able to change both the texts as per my requirements. Thanks a lot for giving me your time and support.

    Thanks again,
    With kind regards,
    Ehsan

    Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @ehsan82,

    As the purpose of this topic has been served, we are marking this as resolved. Feel free to open a new one if you come up with any further queries. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Changing Texts on Woocommerce Archive and Checkout Page’ is closed to new replies.