• Resolved ailaina123456

    (@ailaina123456)


    Hi,

    I would like to do the payout by bank transfer to my affiliates. I understand that the payments will have to be updated manually on the plugin.

    However, in the registration form there is no possibility to request for the affiliate bank details at this stage. Sending an email to each affiliate and managing the answers, storing the bank details of each affiliate and keeping it up date looks very long and prone to errors on both side.

    Is it possible to add a “payment mode tab” on the affiliate account, where the affiliate can key in, store and maintain his bank details?

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author iova.mihai

    (@iovamihai)

    Hey @ailaina123456,

    Thank you for reaching out! Currently, you cannot add a payment mode tab out of the box.

    However, you could leverage our fields API to extend the fields that are shown in the affiliate registration and affiliate account forms.

    Here’s a snippet for how this could look:

    function slicewp_custom_register_affiliate_fields_bank_details( $fields ) {
    	
    	$fields[] = array(
    		'type'  	  		  => 'heading',
    		'default_value'		  => __( 'Bank Account Details', 'slicewp' ),
    		'output_conditionals' => array( 'form' => array( 'affiliate_registration', 'affiliate_account' ) )
    	);
    
    	$fields[] = array(
    		'type'  	  		  => 'text',
    		'id'				  => 'slicewp-bank-name',
    		'name'				  => 'bank_name',
    		'label'				  => __( 'Bank Name', 'slicewp' ),
    		'is_required'		  => true,
    		'output_conditionals' => array( 'form' => array( 'affiliate_registration', 'affiliate_account' ) )
    	);
    
    	$fields[] = array(
    		'type'  	  		  => 'text',
    		'id'				  => 'slicewp-bank-account-number',
    		'name'				  => 'bank_account_number',
    		'label'				  => __( 'Bank Account Number', 'slicewp' ),
    		'is_required'		  => true,
    		'output_conditionals' => array( 'form' => array( 'affiliate_registration', 'affiliate_account' ) )
    	);
    
    	return $fields;
    
    }
    add_filter( 'slicewp_register_affiliate_fields', 'slicewp_custom_register_affiliate_fields_bank_details', 50 );

    Please copy the code and add it to your website. If you’re not sure how to add code snippets to your site, you can use the Code Snippets plugin (https://www.ads-software.com/plugins/code-snippets/).

    The above code will add a heading and two fields, one for the bank name and one for the bank account number. I believe this approach should work for this scenario.

    Please adapt the code to your needs (add extra fields for the needed information) and let me know how it goes.

    Thank you and best wishes,

    Mihai

Viewing 1 replies (of 1 total)
  • The topic ‘Affiliates store bank details information tab’ is closed to new replies.