1. Home
  2. 심플페이
  3. 매출통계
  4. 주문 상태 필터

주문 상태 필터

주문 상태별 매출 통계

  • 매출 통계 화면에서 주문 상태별 매출 건수와 매출액을 확인할 수 있습니다.ss-02
  • 워드프레스의 특성상 다양한 플러그인을 설치해서 사용할 수 있기 때문에, 쇼핑몰에 따라 추가된 주문 상태가 있을 수 있습니다. 추가된 주문상태를 매출통계화면에 반영할 수 있도록 필터 함수를 제공하고 있습니다.
  • function custom_merged_order_statuses( $merged_order_statuses ) {
            /**
    	 * on-delivery 주문상태의 데이터를 shipping 주문상태의 데이터에 합쳐서 표시합니다.
    	 */
    	if ( empty( $merged_order_statuses['shipping'] ) ) {
    		$merged_order_statuses['shipping'] = array ();
    	}
    
    	$merged_order_statuses['shipping'] = array_merge( $merged_order_statuses['shipping'], array (
    		'on-delivery'
    	) );
    
    	return $merged_order_statuses;
    }
    add_filter( 'pafw_sales_statistics_merged_order_statuses', 'custom_merged_order_statuses' );
    
Was this article helpful to you? Yes No