Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1179071

    hostchimney
    Participant

    Hi guys, such a great product you built, congs on this.

    I am building a local store on localhost, and it will be handling only deliveries and pickups. I want to change all woocommerce strings with ‘Shipping’ to ‘Delivery/Pick up’.

    I have tried using localization plugins but they were not working.

    I have perused your support, but could find anything tailored to this problem.

    Cheers.

    #1179160

    Christopher
    Moderator

    Hi there,

    Please follow this KB article to translate strings : https://community.theme.co/kb/translation

    Hope it helps.

    #1179197

    hostchimney
    Participant

    Thanks for the quick response.
    I followed the link and it was not helpful. I have attached the screenshots. I could only find one string to translate, which I don’t think is accurate.

    #1179206

    Rue Nel
    Moderator

    Hello There,

    Thanks for sending the screenshots. Since what you are trying to accomplish requires a template customization, we would like to suggest that you use a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    After the child theme is set up, please add the following code in your child theme’s functions.php file

    add_filter('gettext', 'translate_text' );
    function translate_text($translated) { 
      $translated = str_ireplace('Shipping', 'Delivery/Pick up', $translated);
      return $translated; 
    }

    We would loved to know if this has work for you. Thank you.

    #1179223

    hostchimney
    Participant

    I installed the child theme, activated it, edited the functions.php file of the child theme with the code you gave me but there was not change.

    #1179230

    hostchimney
    Participant

    Just realized that it worked at the word press backend, but I am interested in it working at the front end.

    Regards.

    #1179232

    Christopher
    Moderator

    Hi there,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks.

    #1179234

    hostchimney
    Participant

    Christopher, I am working on a localhost. I am planning to put it up after this change.

    Regards.

    #1179243

    hostchimney
    Participant

    Guys, the help I got worked only for back end (screenshot). How can I get it to display on the front end of the website.

    The client won’t allow me to make the site live without such an amend, please help.

    Regards.

    #1179245

    hostchimney
    Participant

    Guys, since X controls the front-end, is it also over riding the translation, by any chance?

    #1179250

    Christopher
    Moderator

    Hi there,

    It’s really hard to investigate without checking your site.
    Please upload your site in a staging URL so we can better help you with this.

    Thanks.

    #1180040

    hostchimney
    Participant

    I have figured it out. I copied the woo commerce folder in x to the child theme’s folder then I replaced all instances of ‘_x_’ in the woocommerce folder to ‘woocommerce’. Then used a string translator to change the ‘Shipping’ string to what I needed.

    #1180042

    Christopher
    Moderator

    Thanks for sharing and glad to hear that you were able to fix this.