From d096710842ac476943d46f8b29c25a087d6fafaa Mon Sep 17 00:00:00 2001 From: Moon Date: Tue, 30 Mar 2021 12:06:28 -0700 Subject: [PATCH] Fix variation bug with Products reports (https://github.com/woocommerce/woocommerce-admin/pull/6647) * Update query param name * Add changelog * Fix typo --- .../woocommerce-admin/TESTING-INSTRUCTIONS.md | 20 +++++++++++++++++++ .../analytics/report/variations/table.js | 2 +- plugins/woocommerce-admin/readme.txt | 1 + 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/plugins/woocommerce-admin/TESTING-INSTRUCTIONS.md b/plugins/woocommerce-admin/TESTING-INSTRUCTIONS.md index 1133f81cd48..302029f70c4 100644 --- a/plugins/woocommerce-admin/TESTING-INSTRUCTIONS.md +++ b/plugins/woocommerce-admin/TESTING-INSTRUCTIONS.md @@ -2,6 +2,25 @@ ## Unreleased + +### Fix varation bug with Products reports #6647 + + +1. Add two variable products. You want to have at least one variable for each product. + +Product A - color:black +Product A - color:white + +Product B - size:small +Product B - size:medium + +2. Make an order for each product. +3. Navigate to Analytics -> Products +4. Choose 'Single product' from the 'Show' dropdown and search for the product. +5. Confirm that the "Variations" table shows the correct variations. If you searched for the 'Product A', then you should see color:black and color:white. + +In case the report shows "no data", please reimport historical data by following the guide on [here](https://docs.woocommerce.com/document/woocommerce-analytics/#analytics-settings__import-historical-data) + ### Check active plugins before getting the PayPal onboarding status #6625 - Go to the WooCommerce home page @@ -24,6 +43,7 @@ - Go to Tools > WP Mail Logging Log (`/wp-admin/tools.php?page=wpml_plugin_log`) and verify the testing email note was sent. - View the message and press `Test action` (a broken image will be visible under the button, but that's expected and only visible in a test environment). + ### Payments task: include Mercado Pago #6572 - Create a brand new store. diff --git a/plugins/woocommerce-admin/client/analytics/report/variations/table.js b/plugins/woocommerce-admin/client/analytics/report/variations/table.js index 8c3c3f81407..63530cb8c60 100644 --- a/plugins/woocommerce-admin/client/analytics/report/variations/table.js +++ b/plugins/woocommerce-admin/client/analytics/report/variations/table.js @@ -271,7 +271,7 @@ class VariationsReportTable extends Component { orderby: query.orderby || 'items_sold', order: query.order || 'desc', extended_info: true, - products: query.products, + product_includes: query.products, variations: query.variations, } } title={ __( 'Variations', 'woocommerce-admin' ) } diff --git a/plugins/woocommerce-admin/readme.txt b/plugins/woocommerce-admin/readme.txt index 3802b86ad60..0e4f9c5e4f1 100644 --- a/plugins/woocommerce-admin/readme.txt +++ b/plugins/woocommerce-admin/readme.txt @@ -75,6 +75,7 @@ Release and roadmap notes are available on the [WooCommerce Developers Blog](htt == Unreleased == +- Fix: Fix unreleated variations showing up in the Products reports #6647 - Tweak: Add tracking data for the preview site btn #6623 - Tweak: Add check to see if value for contains is array, show warning if not. #6645 - Fix: Event tracking for merchant email notes #6616