Changing bank withdrawal form fields on vendor dashboard

Wire transfer is very common. When you are doing business over the Internet that time Bank to Bank transfer can be another solution to send or receive your payment.

Similarly, the best multivendor marketplace plugin Dokan has a withdraw method called “Bank Transfer”. This method can be used to send commission amount to the vendor directly in his bank account. Each country/region has a separate system of bank transfer. Like as, in Country A swift code is required on the other hand Country B required IBAN number. Also, in some country IBAN can be called in a different name like as Routing Number.

It is obvious that a plugin can not provide all the things you need. You might wish to change the text Name of Bank to Name of your Bank on the vendor settings area or you might need to change the Bank Transfer to Wire Transfer. You can easily do it by adding some piece of codes.

Where I will get the code?

If you are thinking like this then yes, it is possible but you have to do some simple code. No need to worry! I am giving you the code for free 😀

How can I change label or remove field?

The Bank transfer method feilds are coming from dokan-lite/includes/withdraw-functions.php file. Now there is no default settings to change the label or removing field. You can only add some codes to change the label. There is a filter on the withdraw method register function- dokan_withdraw_register_methods  which is dokan_withdraw_methods . I will use this filter to do the job.

Please install a child theme before moving forward because child theme is safe to modify any specifc function and you won’t lose your modification during the plugin or theme update. If you have installed a child theme then just insert the below code on your child-theme functions.php file –

After adding above codes you will see that Bank transfer label has been changed and also some of placeholders text are changed –

Label and Placeholders got changed

In that code snippet, you can do anything like as if you need you can add a new filed as per the code and also you can remove specific field.

Read more about Dokan withdraw methods here.

Share This Post

Related Post

37 thoughts on “Changing bank withdrawal form fields on vendor dashboard

  1. Hi

    I am finding following error when i insert above code in my functions.php

    syntax error, unexpected ‘<', expecting end of file

    Please do update the code.

    1. Hello, You must mistakenly inserted an extra string. Kindly check on your editor and fix it. Because when I am using my code its working fine. If still problem then fill the contact form then I will assist

        1. The code is working fine as it should as per this blog post. I have just tried again. Kindly make sure you have inserted the code correctly and on the correct location.

  2. Update – worked finally.

    In order to work enter the code under the existing <?php tag of your functions.php and remove the <?php from the beginning of the new code.

  3. But now my question is:
    When i remove a field it works but when someone try to withdraw with all other fields fully completed it says that all fields must be completed.

  4. Hi thanks it really helpful i added a field on the withdraw section but now i also need to make sure that the Data in visible on the backend user section can you please help me in it.

  5. It just doesnt work, I dont know why but Dokan is just not easy to make changes to or add small tweaks, while woocommerce itself is so easy to deal with.

    The developers didnt intend to make it easier for the general public.

  6. Hi, we live in Australia and the vendor form needs BSB and don’t need IBAN, SWIFT or Routing. How can I rename IBAN as BSB and remove the others unwanted please. I am using a child theme. Thanks

    1. You can rename field by using Loco-translate and to remove any field you need to use the same code which I have used above and then just remove the field which you need and rename.

  7. I have copied the above code you mentioned exactly as it is on child theme functions.php and then remove the other 2 codes such as swift and iban. On the checking the vendor page in admin, it is not removed at all.

  8. Hi great tutorial, but in my case I need to remove some fields like address2, postal code, email check and bank address. I hope you can help me with this. Thanks!

  9. worked. but i will like to know how to remove tag, virtual and downloadables from the edit page. how can i also make the description required

  10. Hi Nayem.

    I created a dokan child theme and inserted the code into the functions.php file and its not working.

    After that I created a Dokan folder inside my original theme and added the functions.php, not working either.

    Could you please provide further instructions on how to execute this process?

    Best regards

  11. Hi Nayem,

    When I add this code segment to my functions.php the save button is not appear in the vendor dashboard withdraw fields. so please share your suggestions to fix this error.

  12. Hi Nayem,

    Can we make the same change on seller setup payment page, i need to make changes in some field, pls help..

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: