• Hello! I need to count how many orders per city for this year. I can get the gran total spent in the store with

    
    if ( $order_data['billing']['city'] === 'Rio de Janeiro' ){
    				$total_riodejaneiro += $order->get_total();
    			}
    

    Now, how can I get the number of sales so I can figure out the average ticket?

  • The topic ‘How can I get the up to date order counts for the year?’ is closed to new replies.