This thread is resolved. Here is a description of the problem and solution.
Problem:
Product attribute terms with the same slug (using the method described here https://wpml.org/errata/translated-term-slug-identical-to-the-original-term-slug/) are assigned to the wrong language product with the wrong term count. This happens only after using the sync feature in WooCommerce → WooCommerce Multilingual → Attributes → Sync variations.
Solution:
Update the WooCommerce Multilingual to the latest version but if you're using the version prior to 4.12.0, go to /wp-content/plugins/woocommerce-multilingual/inc/translation-editor folder, and edit the class-wcml-synchronize-product-data.php file. Just look for this line of code:
if ( is_taxonomy_hierarchical( $taxonomy ) ) {
and replace it with
if ( is_taxonomy_hierarchical( $taxonomy ) || true ) {
Once you did this, just simply synchronize again the terms and the count will work fine.
Это форум технической поддержки WPML – плагина для многоязычной WordPress.
Доступно для чтения всем, но только клиенты, купившие WPML, могут оставлять сообщения. Сотрудники WPML отвечают на сообщения форума 6 дней в неделю, 22 часов в сутки.
Сотрудники Службы поддержки сегодня не доступны на форуме Russian. Создайте обращение и мы возьмемся за решение вашего вопроса, как только будем в сети. Благодарим за понимание.
This topic contains 24 ответов, has 3 голосов.
Last updated by Radu 1 месяц, 2 недели назад.
Assigned support staff: Radu.