Manage Payout

This is where the admin can review vendors’ withdrawal requests and update the payment status for each vendor.

1: Choose Management Method for Payout

Go to Event >> Settings >> Tax & Profit >> Manage Payout by tab

In Manage Payout by tab, there are 2 options for you to choose:

  • Closed Event Option

  • Any Time Option

1: Manage Payout

1.1: Admin Sets Payout Method

Go to Events >> Manage Payout >> Payout Method >> Add New Payout Method

Admin add payout method

1.2: The vendor will select a Payout Method

Go to Vendor Dashboard >> My Profit >> Payout Method

Vendor choose Payout Method

1.3: The Vendor will withdraw amount from his account

Manage Wallet
Insert Amount to withdraw

1.4: The admin will see the vendor’s withdrawal request in the Payout Section

1.5: The admin can update the payout status to: Completed, Canceled, or Pending

2: Update Calculate Profit for Vendor

You can use filter hook: 'el_get_profit_id_booking' to calculate profit for Vendor.

// Some code
add_filter( 'el_get_profit_id_booking', 'get_profit_by_id_booking_customize', 10, 2 );

function get_profit_by_id_booking_customize ( $profit, $id_booking ) {

	if ($id_booking == null) return ;

	$id_event = get_post_meta( $id_booking, OVA_METABOX_EVENT . 'id_event', true );
	$total_after_tax = get_post_meta(  $id_booking, OVA_METABOX_EVENT . 'total_after_tax', true );
	$total_before_tax = get_post_meta( $id_booking, OVA_METABOX_EVENT .'total', true );


	$list_ticket_by_id_booking = EL_Ticket::instance()->get_list_ticket_by_id_booking($id_booking);
	$number_ticket = count($list_ticket_by_id_booking);

	$number_ticket_free = EL_Ticket::instance()->get_number_ticket_free_by_id_booking($id_booking);
	$number_ticket_paid = $number_ticket - $number_ticket_free; 

    $total_admin =  get_total_admin($id_event, $total_before_tax, $number_ticket_paid, $number_ticket_free);

	$profit = $total_before_tax - $total_admin;
	
    return $profit;
	
}

Last updated

Was this helpful?