• Resolved D U Enoch

    (@eugyenoch)


    Hi,
    I admire your plugin a lot and would love to edit the bank payment form to make the “Routing number” field optional rather than required.
    How do I achieve this?
    I would prefer a code snippet for this.

    • This topic was modified 1 year, 1 month ago by D U Enoch.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @eugyenoch,

    Modifying the Bank Form of Dokan is unavailable as a default feature of Dokan right now. You will need to go through proper customization to achieve this. You can use dokan_bank_payment_required_fields this hook to achieve your goal. Please take a look at the below-mentioned code snippet and add it to your child theme’s functions.php file or a code snippet plugin like this one.

    #-- Remove Bank Payment Required Fields --#
    function remove_bank_required_fields( $fields ){
        unset( $fields['routing_number'] );
        return $fields;
    }
    add_filter( 'dokan_bank_payment_required_fields', 'remove_bank_required_fields' );

    I hope this will help. Thanks!

    Thread Starter D U Enoch

    (@eugyenoch)

    Thank you very much sir, your solution worked as expected.

    Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @eugyenoch,

    The pleasure is all mine to get to know that it helped. As the purpose of this topic has been served, I am marking this as resolved. Feel free to open a new one if you have any further queries or issues.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Routing number, optionality’ is closed to new replies.