-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Product archive description not translated #2
Comments
Hi @josk79, I could not find an existent filter to enable for this case so far. Could you test on your configuration, to change function in
as this
and then add 'woocommerce_format_content' to the array If this works well for you, submit this change to https://github.com/woothemes/woocommerce, they are friendly on new filters and their next release will have it. |
Actually, when you submit to Woocommerce, this version would be more flexible, just in case:
|
I made a copy/paste error in the solution in the first post, just fixed it. What do you think about this: |
This they may oppose, since it may have an effect on others. |
It is safe to make a change that does nothing to the current users, otherwise they will be hesitant. A new filter at that place would be fine, but I think my version is more advantageous to us and possibly to others since it provides a common flexibility. |
Besides, there might be other uses of |
Yes you're right. That makes sense... |
Closed in woocommerce/woocommerce@09bee8c |
WooCommerce fetches the archive content this way:
wc-template-functions.php function woocommerce_product_archive_description():
If displayed by the theme, you see the [:en]raw[:] content.
changing WooCommerce to do it this way fixes the issue:
$description = wc_format_content( apply_filters('the_content', $shop_page->post_content) );
but can it be fixed by adding some kind of hook in WooCommerce qTranslate X ?
The text was updated successfully, but these errors were encountered: