Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Minhaz Irphan Mohamed

    (@minhazmohamed)

    I want to have the following fields for the Vendor on the Vendor dashboard and on the website’s Dokan -> Withdraw section and on the WordPress User Settings page:

    Swift Code to IFCS code
    IBAN to Bank branch

    I also would love to hide the bank address field everywhere as well. Hope there is a way to do this through the child theme because each country has their own required information to do a bank withdrawal

    Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @minhazmohamed,

    To change any string of Dokan you can use the translation method. I have changed the string on my local environment as shown in this screenshot and the output is like this one. To get to know how to translate the Dokan plugin, please follow this third-party blog.

    If you want to remove any field of the bank form of Dokan, it is required to add the necessary CSS. However, there are some fields on that form which are made required. So, removing them only with CSS will not work. To make those fields to be non-required, you can use dokan_bank_payment_required_fields this hook. I am adding a sample code below to use the hook as it is already available to us.

    #-- Remove Bank Payment Required Fields --#
    function remove_bank_required_fields( $fields ){
        unset( $fields['ac_type'] );
        unset( $fields['ac_name'] );
        unset( $fields['ac_type'] );
        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 Minhaz Irphan Mohamed

    (@minhazmohamed)

    Hi @jahidulhassan,

    Thank you for getting back to me.

    So to clarify further, does the string change happen only on the Dokan dashboard or would Loco Translate change the label on Dokan’s Withdraw Request page on the WP Dashboard and the user’s page on the WP Dashboard?

    Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @minhazmohamed,

    This is supposed to change the string on your entire site. Please try the process and share your feedback if you found anything different.

    Thread Starter Minhaz Irphan Mohamed

    (@minhazmohamed)

    Hi @jahidulhassan,

    I tried using the Loco translate plugin and the changes show on the Dokan dashboard but not on the WordPress dashboard -> Dokan -> Withdrawal

    The changes I made:
    1) https://snipboard.io/gVKQy7.jpg
    2) https://snipboard.io/4HI5C1.jpg

    The screenshot of it not working: https://snipboard.io/WUA7t8.jpg

    Please advice me on how we can make this work.

    Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @minhazmohamed,

    Thanks for the detailed response. I found it in my local environment too. I have reported the issue to the concerned team already. You can follow up on that by keeping an eye on this link.

    Thanks!

    Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @minhazmohamed,

    Due to inactivity, we are marking this topic as resolved. Feel free to open a new one if you face any further issues.

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Is there a way to customize the bank withdrawal fields?’ is closed to new replies.