WooCommerce sidebar appears only in one language
Hi,
I use BeTheme+WooCommerce+WPML to run a bilingual shop.
I set it up so that shop pages will show the WooCommerce-sidebar. However, the sidebar is only on one language to be seen.
See here:
English: https://enerprof.de/product-category/batteries/power-banks/
I set it up so that shop pages will show the WooCommerce-sidebar. However, the sidebar is only on one language to be seen.
See here:
English: https://enerprof.de/product-category/batteries/power-banks/
German (sidebar is gone): https://enerprof.de/produkt-kategorie/akkus/powerbanks/?lang=de
Not sure if it's a WPML, WooCommerce or Theme issue, but I hope you could give me directions on how to solve it.
Cheers
Ishai
Ishai
Comments
Please see here: https://wpml.org/forums/topic/sidebar-appears-only-in-one-language/page/2/#post-3112528
Ishai
I use different plugins on the plugin|woocommerce sidebar, some are for all languages (like "Cart" or price filter), and some are for certain languages only (used for special announcements etc.). I don't know what's the "normal" way to use this sidebar, but these are quite standard.
Anyway, the plugin|woocommerce sidebar is completely gone on all shop-pages (single products, product categories, cart checkout etc.) - it doesn't appear empty or with missing plugins, so I am not sure how the way I use the plugins is related.
Thanks
Ishai
The 'plugin|woocommerce' sidebar is already set up this way.
I also already use WooCommerce Multilingual.
Please refer to the issue that the WPML-Support found in the theme:
"
Anyhow, We inspected CSS of this page and saw that nothing is
appearing after ‘.four-columns – sidebar’ line. So, I suspect that’s
some condition that doesn’t work on the secondary language.
I took a bit deeper look and found out that this in wp-content/themes/betheme/functions/theme-woocommerce.php:91
$layout
= get_post_meta( mfn_ID(),
'mfn-post-layout'
, true);
and the following condition which fails on the line 104:
}
elseif
( is_active_sidebar(
'shop'
) &&
$layout
!=
'no-sidebar'
){
We suspect that’s a setting somewhere in the theme where the Sidebar set to Yes.
Please send us WordPress dashboard and FTP access privately thru the contact form which is on the right side at http://themeforest.net/user/muffingroup#contact and we will check what might be the reason.
Notice!
Please attach a link to this forum discussion.
Thanks
I sent you all the details.
OK, sorry, I've switched off caching
https://pasteboard.co/HZ9b1uA.png
What exactly did you do to fix it? I now need to implement it on the production.
Cheers