How to change the bank’s withdrawal table field on the supplier instrument board (IBAN place occupies)

Dokan has multiple payment systems to maintain the transaction process. One of them is \”bank transfer\”. Administrators use bank transfers to send commissions directly to supplier accounts. It is a popular withdrawal method.

银行表格

The supplier needs to fill in the default bank withdrawal table with the necessary information in order to collect commissions through bank transfer.

However, according to regions or countries, the system of bank transfer may change. Some countries need you to provide SWIFT code, and some countries need Iban numbers. Some countries call the iBAN number as a routing number.

Although you can make some adjustments to dokan, you cannot change the IBAN occupied symbols and other fields without any custom. You need to add a simple code to adjust the table field of the bank withdrawal form.

We will show you how to customize Dokan’s default bank withdrawal form field.

Three steps to customize the default bank withdrawal form in the supplier instrument board

The bank transfer method field comes from

Dokan-Lite/Includes/withdraw-Functions.php file

. There is no default settings to change the label or delete fields. You can only add some code to change the label. The withdrawal method registration function Dokan_withdraw_register_methods There is a filter on the Dokan_withdraw_Methods. We will use this filter to complete this work.

Step 1: Install the theme

  • stiff 123] Step 1: Install the theme of the sub –
  • When you customize any type of customization, you need to use your sub -theme. Otherwise, you may lose your data after updating the plug -in or theme. Therefore, if there is no market in your market, please create a children’s theme.

Step 2: Insert the code in the functions.php file of the sub -theme

Open your folder open your folder /Finder and navigate to

WP-CONTENT-\u0026 GT; Themes-\u0026 GT; Your Child theme name-\u0026 gt; open functions.php.

Copy the following code. 为子主题创建文件夹

\u0026 lt; pHP /* You can change any fire or remove any featured for the Vendor -\u0026 gt; settings -\u0026 gt; paank transfermes coshd Thrat. placed on your child-theme functions.php file */ add_filter( \u0026#39;dokan_withdraw_methods\u0026#39;, \u0026#39;wp1923_change_whithdraw_callback\u0026#39;, 12 ); function wp1923_change_whithdraw_callback( $methods ) { $methods[\u0026#39;bank\u0026 #39;] [\u0026#39; callback \u0026#39;] \u003d \u0026#39; wp12232_render_bank_html \u0026#39; $ methods [\u0026#39; bank \u0026#39;] [\u0026#39; title \u0026#39;] #39;Wire Transfer\u0026#39;, \u0026#39;dokan-lite\u0026#39; ); //title can be changed as per your need return $methods; } function wp12232_render_bank_html( $store_settings ) { $account_name \u003d isset( $store_settings [\u0026#39; Payment \u0026#39;] [\u0026#39; Bank \u0026#39;] [\u0026#39; ac_name \u0026#39;]) $ Store_Settings [\u0026#39; Payment \u0026#39;] [\u0026#39; bank \u0026#39;] [\u0026#39; ac_name \u0026#39;]: \u0026#39; \u0026#39; $ account_number \u003d ISSET ($ Store_Settings [\u0026#39; payment \u0026#39;[\u0026#39; bank \u0026#39;] [\u0026#39; ac_number \u0026#39;]) $ Store_Settings [\u0026#39; Payment \u0026#39;] [\u0026#39; Bank \u0026#39;] [\u0026#39; ac_number \u0026#39;]: \u0026#39; \u0026#39;; $ Bank_name \u003d ISSET ($ Store_Settings [\u0026#39; Payment \u0026#39;] [\u0026#39; Bank \u0026#39] [\u0026#39; bank_name \u0026#39;) $ Store_Settings [\u0026#39; Payment \u0026#39;] [\u0026#39; Bank \u0026#39;] [\u0026#39; Bank_name \u0026#39;]: \u0026#39; \u0026#39;[\u0026#39; Payment \u0026#39;] [\u0026#39; Bank \u0026#39;] [\u0026#39; Bank_addr \u0026#39;]) $ Store_Settings [\u0026#39;] [\u0026#39; BANK \u0026#39;] [\u0026#39; Bank_addr \u0026#39;]: \u0026#39; \u0026#39; $ routing_number \u003d isset ($ Store_Settings [\u0026#39; Payment \u0026#39;] [\u0026#39; bank \u0026#39;[\u0026#39; routing_number \u0026#39;]) $ Store_Settings [\u0026#39; payment \u0026#39;] [\u0026#39; bank \u0026#39;] [\u0026#39; routing_number \u0026#39;]: \u0026#39;39; $ iban \u003d ISSET ($ Store_Settings [\u0026#39; Payment \u0026#39;] [\u0026#39; Bank \u0026#39;] [\u0026#39; iban \u0026#39;]39;] [\u0026#39; bank \u0026#39;] [\u0026#39; iban \u0026#39;]: \u0026#39; \u0026#39; $ swift_code \u003d isset ($ store_Settings[\u0026#39; Payment \u0026#39;] [\u0026#39; Bank \u0026#39;] [\u0026#39; swift \u0026#39;]) $ Store_Settings [\u0026#39; Payment \u0026#39;] [\u0026#39; Bank \u0026#39;] [\u0026#39; SWIFT \u0026#39;]: \u0026#39; \u0026#39; // get new added values like Other One \u0026 gt; \u0026 lt; div class \u003d \u0026 quot; dokan-form-qu \u0026 Quot;#39 ;, \u0026#39; Dokan-Lite \u0026#39;); \u0026 GT; \u0026 Quot; Type \u003d \u0026 QUOT.); \u0026 gt; \u0026 quot; class \u003d \u0026 quot; Dokan-Form-Control \u0026 Quot; placeholder\u003d\u0026quot;\u0026lt;php esc_attr_e( \u0026#39;Routing number\u0026#39;, \u0026#39;dokan-lite\u0026#39; ) \u0026gt;\u0026quot; type\u003d\u0026quot;text\u0026quot;\u0026gt; \u0026lt;/div\u0026gt; \u0026lt ;/div\u0026gt; \u0026lt;div class\u003d\u0026quot;dokan-form-group\u0026quot;\u0026gt; \u0026lt;div class\u003d\u0026quot;dokan-w8\u0026quot;\u0026gt; \u0026lt;input name\u003d\u0026quot;settings[bank][iban]\u0026quot; value\u003d \u0026quot;\u0026lt;php echo esc_attr( $iban ); \u0026gt;\u0026quot; class\u003d\u0026quot;dokan-form-control\u0026quot; placeholder\u003d\u0026quot;\u0026lt;php esc_attr_e( \u0026#39;IBAN\u0026#39;, \u0026#39;dokan- lite\u0026#39; ) \u0026gt;\u0026quot; type\u003d\u0026quot;text\u0026quot;\u0026gt; \u0026lt;/div\u0026gt; \u0026lt;/div\u0026gt; \u0026lt;div class\u003d\u0026quot;dokan-form-group\u0026quot;\u0026gt; \u0026lt;div class\u003d\u0026quot;dokan -w8\u0026quot;\u0026gt; \u0026lt;input value\u003d\u0026quot;\u0026lt;php echo esc_attr( $swift_code ); \u0026gt;\u0026quot; name\u003d\u0026quot;settings[bank][swift]\u0026quot; class\u003d\u0026quot;dokan-form-control\u0026quot; placeholder \u003d\u0026quot;\u0026lt;php esc_attr_e( \u0026#39;Swift code\u0026#39;, \u0026#39;dokan-lite\u0026#39; ); \u0026gt;\u0026quot; type\u003d\u0026quot;text\u0026quot;\u0026gt; \u0026lt;/div\u0026gt; \u0026lt;/ div \u0026 gt; \u0026 lt;!-.dokan-Form-found-\u0026 GT; \u0026 LT;!-Add Whatver you want-\u0026 gt; \u0026 lt; pHP}

Complete editorialDon’t forget to save the code afterwards.

   

Step 3: Refresh your website, you will see that the label has been changed [ 123]

After saving the code, return to your market and make a hard refresh. Then you will see that the bank transfer label has been changed, and the text of some place occupies has also been changed-

This is the supplier you can be in the supplier. The method of changing the default bank withdrawal form in the dashboard.

You can also view:

How to add new fields to the Dokan product form.

Make necessary changes and manage your supplier more effectively

When you have open source platforms like WordPress and plug -ins such as Dokan, customization becomes easy.

IBAN 占位符的更新表格 Rather than adding a plug -in and hindering the market performance, it is better to use the code for customization. This will make your market efficient, and you will have more space to add plug -in you actually need.

Using the code above, you can also change the text name of the bank to your bank name in the supplier setting area, or you may need to change the bank’s transfer to telegram.

If you encounter any problems, please tell us in the comments part.

Author:

Leave a Reply

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