Overview of the Issue
When accessing WooCommerceAnalyticsCategories, 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.
Need Help with This Issue?
Ask a support question and we’ll look into it with you.
Ask a support question