• Resolved szelu77

    (@szelu77)


    Hello,

    We experience some performance issues on a busy Woo site (~1000 orders daily, 5 Shop Managers) which have been pin-pointed to slow queries run by Woo Status widget.

    I would like to leave Orders status (processing / on-hold) and Stock info (low in stock / out of stock) but remove Net Sales and Top Seller reports, as these are very slow queries in case of our database (4GB).

    Is there a function I could run to remove only Net Sales and Top Seller reports? Of course I mean preventing private function get_top_seller() and private function get_sales_report_data() (both in class-wc-admin-dashboard.php) from running these queries, not just hiding the results with CSS.

    Any help would be much appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Hi @szelu77!

    Could you please use the free Snipboard.io tool to send me a screenshot of the specific section you would like to remove?

    Cheers!

    • This reply was modified 4 years, 4 months ago by Rynald0s. Reason: wrong thread
    Thread Starter szelu77

    (@szelu77)

    Hi @rynald0s

    Many thanks for replying!

    I would like to remove top 2 rows as marked in red: https://snipboard.io/8x1eOX.jpg

    Best regards

    Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Hi @szelu77!

    You can use the following CSS code to see if that helps:

    #woocommerce_dashboard_status .wc_status_list li.sales-this-month {
    	display: none;
    }
    
    #woocommerce_dashboard_status .wc_status_list li.top-sellers { 
    display: none;
    }

    This code can be added to the “Additional CSS” section found in the customizer.

    Cheers!

    Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Howdy.

    We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please start a new thread.

    Cheers!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Removing sales from WooCommerce Status admin widget’ is closed to new replies.