• Resolved ctuxboy

    (@ctuxboy)


    Hello,

    How can i change this text on the checkout-page (screenshot)
    No shipping method has been selected. Please double check your address, or contact us if you need any help.

    I found this text in this file:
    ../includes/class-wc-checkout.php on line 712.

    Is it possible overriding with a hook or filter in the functions.php of my child-theme?

    PS: I know it is possible change it in the language-file (ex. with Loco translate) but after every update the text is changed to the original text)

Viewing 5 replies - 1 through 5 (of 5 total)
  • Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    I know it is possible change it in the language-file (ex. with Loco translate) but after every update the text is changed to the original text)

    Translating is the correct way. It sounds like your translation files are just set to be stored in the wrong location (likely in the plugin folder). There should be a setting for this in Loco translate,

    Another option is custom code in a child theme: https://www.speakinginbytes.com/2013/10/gettext-filter-wordpress/

    Thread Starter ctuxboy

    (@ctuxboy)

    Hi Caleb,

    Thanks for your answer.
    I try this in the next days ??

    Regards,
    Christophe

    The update-safe protected custom location for Loco Translate files is explained here:
    https://localise.biz/wordpress/plugin/manual/msginit#locations

    However, you’ll need to update your custom file yourself whenever there are any new strings. Instead, Caleb’s function is good, or you can try:
    https://www.ads-software.com/plugins/say-what/

    Thread Starter ctuxboy

    (@ctuxboy)

    Hi @lorro,

    Thanks for the useful link.
    I think relocate the Loco file can help me a lot, i have also other text that i will change and this can solve the problem.

    Thanks a lot guys for the help ??

    Christophe

    Thread Starter ctuxboy

    (@ctuxboy)

    Hi guys,

    It works perfect now with Loco Translate.
    Re-locate the language-file do the job ??

    Thanks for the help!!!

    Regards,
    Christophe

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Changing error text’ is closed to new replies.