- Status
- Resolved
- Reported for
- WPML Multilingual & Multicurrency for WooCommerce 5.1.2
- Resolved in
- WCML 5.2.0
- Related plugin/theme
- WooCommerce
- Topic tags
- Bug
Overview of the issue
If you have WooCommerce products and categories set to use the default language as a fallback for untranslated content and you only translate the category without translating the product, categories aren’t displayed on the the translated shop page or widgets.
Workaround
Our developers are aware of this situation. In the meantime, you can use the following filter to display categories on your shop page. Be sure to make a full backup of your site before proceeding.
Add this code into your theme’s functions.php file:
add_filter('woocommerce_product_subcategories_hide_empty', '__return_false');