-
AuthorPosts
-
April 4, 2014 at 7:13 am #29824
Hi,
I have some problems with the woocommerce extension. The site is running on wordpress 1.8.1 and woocommerce 2.1.6 and I downloaded the latest version of Theme X. When I add a product the review section isn’t functioning like it should (like the demo). How can I solve this? You can se an example on http://www.walktallproducts.com/be/product/test/
The second I have is with the translation of the woocommerce plugin. I defined the language in wp-config file and some of the text is being translated good. But there are also a lot of sentences witch do not translate while they are translated in the .po file. If if rename the themes/x/woocommerce folder the translation starts functioning good but off course the layout will be messed up.
I tried to copy the .po and .mo files to themes/x/woocommerce/language and to wp-content/languages/woocommerce but this doesn’t solve the problem.
I hope you guys can help me solve this problems
April 4, 2014 at 7:19 am #29826Hi,
I had the same problm, define your language in wp-config.php
define (‘WPLANG’, ‘en_GB’); for english UK etc
Then changing the .po and .mo makes no difference,
Enter the string you dont want
then enter domain which will be __x__
then enter the string you want to see.example
Cart
__x__
Basketregards
April 4, 2014 at 7:22 am #29827Thanks for the fast reply! I can’t see a plugin in your post, could you please tell me which plugin I need?
April 4, 2014 at 7:36 am #29834I found a way to fix the translation. I installed CodeStyling Localization and added a language to Theme X. Here I can find the sentences which I want to change.
Now I only need a solution to the first problem. Can someone help me fix the review section of the product page?
April 4, 2014 at 2:58 pm #29978sorry the plugin was “say what” in the wordpress repo. I didn’t have much look with the localization plugin it still didnt change some of the US to English.
April 4, 2014 at 3:02 pm #29981Hi, regarding your reviews it is not working as it should. I can confirm that wordpress 3.8.1 and woocommerce 2.1.6 and them x 1.8.1 are working correctly for me on the reviews section. you need to deactivate all plugins and activate them one by one or just recopy your existing woocommerce files again from the wordpress repo.
regards
April 7, 2014 at 7:38 am #30531Hi there,
We really appreciate your detailed reply.
Thanks
April 7, 2014 at 7:48 am #30536I tried disabling all plugins but no success (I didn’t install any other plugins as at the demo). Any idea what could cause this problem? It is a multi site WordPress installation, could this be the issue?
April 8, 2014 at 7:56 am #31032Hey Bart,
I’ve submitted a test review on the product page you’ve posted (see http://prntscr.com/383m8p). Please try to approve that review to see if it works.
Let us know the result.
Thanks.
April 14, 2014 at 6:04 am #33314Thanks for the support. I can accept the review and this function does work. The problem is that it does look different from the demo. The demo looks much better than the our website. I hope you guys could tell me why and how I can fix it so it will look/function like the demo.
April 15, 2014 at 5:51 am #33575Hi There,
What exactly is different in your opinion? To me both look the same.
September 18, 2014 at 1:03 pm #107355Still being a little of a newbie, I am not sure if I understand the answers above. However, I have problems with the cart and the checkout not being translated well on all items when I run the x theme. Seems this is because lots of the woocommerce code is duplicated under the /themes/x/woocommerce directory. Even if the wordpress\wp-content\languages\plugins directory has the woocommerce translations in place, they are not utilized when running the x theme.
My solution is to replace occurrences of “__x__” in the cart.php and cart_totals.php with “woocommerce”. Voila!
My question is this: Is this a bug in the theme, or is it something wrong with my configuration?
September 18, 2014 at 2:48 pm #107437Hi Kjetil,
Thank you for writing in!
If you have added your translation at WooCommerce .po file, then “__x__” will not work. You should add the translation for “__x__” theme .po files or the plugin translation.
Cheers!
September 19, 2014 at 12:58 pm #108165not sure if I understand. Can you please explain how to update the swedish site after I installed X, then? should not X refer to the same translation as the other plugins? why do I have to do special steps just because I installed X?
September 19, 2014 at 2:47 pm #108235Hi there,
X theme and woocommerce have textdomains, and each textdomain represent each translation domain/files.
http://codex.wordpress.org/Function_Reference/load_textdomain
X theme load the available translation file from designated language path.
If you add your translation to a different textdomain, while invoking another textdomain, then it will not show what you just translated. You will have to use the textdomain where your translation are.
http://codex.wordpress.org/I18n_for_WordPress_Developers
Thanks!
-
AuthorPosts