Tagged: x
-
AuthorPosts
-
September 17, 2016 at 1:08 am #1179071
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.
September 17, 2016 at 3:01 am #1179160Hi there,
Please follow this KB article to translate strings : https://community.theme.co/kb/translation
Hope it helps.
September 17, 2016 at 4:20 am #1179197Thanks 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.September 17, 2016 at 4:28 am #1179206Hello 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.
September 17, 2016 at 4:49 am #1179223I 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.
September 17, 2016 at 4:58 am #1179230Just realized that it worked at the word press backend, but I am interested in it working at the front end.
Regards.
September 17, 2016 at 4:58 am #1179232Hi 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 credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks.
September 17, 2016 at 5:00 am #1179234Christopher, I am working on a localhost. I am planning to put it up after this change.
Regards.
September 17, 2016 at 5:14 am #1179243Guys, 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.
September 17, 2016 at 5:18 am #1179245Guys, since X controls the front-end, is it also over riding the translation, by any chance?
September 17, 2016 at 5:32 am #1179250Hi 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.
September 18, 2016 at 5:14 am #1180040I 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.
September 18, 2016 at 5:17 am #1180042Thanks for sharing and glad to hear that you were able to fix this.
-
AuthorPosts