Skip Navigation

Open

Reported for: WooCommerce Multilingual & Multicurrency 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.

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>