WPML
Status
Open
Reported for
WPML Multilingual & Multicurrency for WooCommerce 5.3.2
Topic tags
WCML

Overview of the issue

When accessing WooCommerce > Analytics > Categories, the same category is displayed multiple times depending on the number of site languages and orders.

Workaround

Please, make sure of having a full backup of your site before proceeding.


  • Open …/wp-content/plugins/woocommerce-multilingual/classes/Reports/Categories/Query.php file.

  • Look for line 40.

  • Change:
    } )->toArray();

  • For:
    } )->unique('category_id', true)->toArray();

Note: keep in mind that this workaround will eliminate duplicated categories in the Analytics page. However, the order count may not align with the total number of items ordered.

All known issues →