Added $customer to filter woocommerce_customer_get_total_spent_query

This commit is contained in:
Diego Zanella 2017-05-23 17:06:16 +01:00
parent 885cb14029
commit a6bcc73846
1 changed files with 1 additions and 1 deletions

View File

@ -350,7 +350,7 @@ class WC_Customer_Data_Store extends WC_Data_Store_WP implements WC_Customer_Dat
AND posts.post_type = 'shop_order'
AND posts.post_status IN ( 'wc-" . implode( "','wc-", $statuses ) . "' )
AND meta2.meta_key = '_order_total'
" ) );
" ), $customer );
if ( ! $spent ) {
$spent = 0;