Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Please open wp-content/plugins/dokan-lite/includes/withdraw-functions.php and check the below function-

    function dokan_withdraw_method_bank( $store_settings )

    You have to modify the function to edit bank payment form 🙂

    Thread Starter hmchenaran.s

    (@hmchenarans)

    One more question

    i added the following codes into function file:

    function Add_Other_withdraw_methods($methods) {
        $methods = array(
    	    'CartToCart' => array(
                'title'    => __( 'Cart To Cart', 'dokan-lite' ),
                'callback' => 'dokan_withdraw_method_CartToCart'
            )
        );
    
        return $methods;
    }
    add_filter( 'dokan_withdraw_methods', Add_Other_withdraw_methods ,1);

    with these codes i added my custom payment method. user can request withrawl with my custom payment method. all things is true.

    but now, I want to consider several forms for my custom payment method
    i added the following codes into function file:

    function aa( $dokan_settings ) {
        $dokan_settings = array(
                    'payment'      => array(),
                );
        if ( isset( $_POST['settings']['CartToCart'] ) ) {
            $CartToCart = $_POST['settings']['CartToCart'];
    		$dokan_settings['payment']['CartToCart'] = array(
                'cartnumber'        => sanitize_text_field( $CartToCart['cartnumber'] )
            );
        }
    	return $dokan_settings;
    }
    add_filter( 'insert_settings_info', 'aa' );
    

    in payment settings show my custom payment methode with my custom form, but it is not save the value of my form.

    • This reply was modified 8 years, 9 months ago by hmchenaran.s.

    Hello,

    You need to use dokan_store_profile_saved filter to save your custom payment settings.

    You can see the reference code at /wp-content/plugins/dokan/classes/template-settings.php.

    Let me know if you need further assistance.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘edit bank payment form’ is closed to new replies.