Перейти к содержимому Перейти к боковой панели

Resolved

Reported for: WooCommerce Multilingual & Multicurrency 5.1.2

Resolved in: WCML 5.2.0

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');

2 комментария к “WooCommerce - Product categories are not visible on the shop page or widgets”