OK, so… the code edits linked to above works fine for editing or hiding fields in the Vendor dashboard, but…the system still ‘expects’ some data in those fields, and so will always prompt the vendor to ‘add a payment’ etc.
So, use the code as is from https://nayemdevs.com/changing-bank-withdrawal-form-fields-on-vendor-dashboard/
Put it in your child theme’s functions.php file.
Then, to hide a field, yet still have the system accept that the vendor has filled in all fields to complete the payment info, just change the value and input type for the respective field.
So, if you don’t need the IBAN field, find it in the code you’ve copied from the link above, it will look like this…
<input type="hidden" name="settings[bank][iban]" value="<?php echo esc_attr( $iban ); ?>" class="dokan-form-control" placeholder="<?php esc_attr_e( 'IBAN', 'dokan-lite' ) ?>" type="text">
Change the value value=”<?php echo esc_attr( $iban ); ?>” to value=”N/A”
Change the input type type=”text” to type=”hidden”
The example above should end up looking like this…
<input name="settings[bank][iban]" value="N/A" class="dokan-form-control" placeholder="<?php esc_attr_e( 'IBAN', 'dokan-lite' ) ?>" type="hidden">
This works for me, to hide the unnecessary fields, and… satisfies the system that those hidden fields have been filled in anyway, so considers that section completed by the vendor when calculating the percentage of their profile that is complete.
Hope that helps anyone else that comes look for this.