Thread Starter
Dmitry
(@damdamdam)
The programming solution was not found unfortunately.
Adding
“woocommerce_shop_page”: {},
or
“woocommerce_archive_description”: {},
into woocommerce.json did not help.
Adding
add_filter( ‘woocommerce_shop_page’, ‘wpm_translate_value’);
add_filter( ‘woocommerce_archive_description’, ‘wpm_translate_value’);
into
class-wpm-woocommerce.php
also did not help
So I had to made a work around.
Added new shortcode in functions.php
function shop_main_page_descr( ) {
$descr = __(‘shopdescr’, ‘construction-field’);
return $descr ;
};
add_shortcode(‘shopdescr’, ‘shop_main_page_descr’);
and added appropriate html to ‘shopdescr’ into theme’s locale via Loco tranlsate.
But nonetheless, the main shop page still displayed
[:ru]html of ‘shopdescr'[:].
So I had to disable WP Multilang plugin, manually delete [:ru] and [:] on shop page, than enable it again.
What a waste of time!
Hope this issue will be resolved for WP Multilang with Woocommerce integration.
It could be your theme. What theme are you using? Try Storefront to see if that fixes the issue.
I’m running WP Multilang successfully in combination with WooCommerce.
Dmitry, как вы решили данную проблему? У меня тоже на странице shop не работает плагин. Тема Retail.
-
This reply was modified 7 years, 8 months ago by
Natalya.