• Resolved indrapalkushwaha

    (@indrapalkushwaha)


    Hi Team,

    We want that that “balance credited for referring new member” only added once admin marked order to “Completed’

Viewing 1 replies (of 1 total)
  • Plugin Author Subrata Mal

    (@subratamal)

    @indrapalkushwaha Please use the attached code in theme functions.php file to credit referral use only on order status completed.

    add_filter( 'woocommerce_order_is_paid_statuses', 'woocommerce_order_is_paid_statuses_callback', 10, 1 );
    if ( ! function_exists( 'woocommerce_order_is_paid_statuses_callback' ) ) {
    	function woocommerce_order_is_paid_statuses_callback( $stases ) {
    		$stases = array('completed');
    		return $stases;
    	}
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Referral balance credited once order marked to “Completed”’ is closed to new replies.