• Resolved nuzula

    (@nuzula)


    Hi,

    How can i hide/remove these fields

    1. IBAN
    2. Swift Code

    during

    1. Seller setup
    2. Settings/Payment page in vendor dashboard
    3. User page in admin dashboard if possible

    screenshot seller setup
    https://i.snipboard.io/Jajt0w.jpg

    screenshot seller settings payment page
    https://i.snipboard.io/Z6ebo5.jpg

    change routing number to ifsc code in above areas without losing backup when update

    • This topic was modified 5 years, 3 months ago by nuzula.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @nuzula ,

    These are all customizations requests that are hard to cover within these forum requests.

    You can find example codes to customize the setup wizard and bank details form in these two articles –

    How to change vendor setup wizard text in Dokan Multivendor
    Changing bank withdrawal form fields on vendor dashboard

    Thank you 🙂

    cliqueradar

    (@cliqueradar)

    I have also been looking at this.

    Why are these mandatory fields when calculating the score for completing a vendor profile?

    For instance, if you’re operating within the UK, and not taking on vendors from outside the UK, then the IBAN and Swift aren’t needed.

    Using the code linked to above, it’s easy enough to remove fields and change routing number to ‘sort code’ for UK banks (tho it should still be an option in Dokan set up, as lots of people won’t know how to do code edits), but… after editing the form fields to look the way you want them to… vendors fill in the details and hit save, but…they’re still getting the prompt to ‘Add a Payment method to gain 30% progress’, which is confusing for vendors, and therefore generating a continuous stream of support request, wanting to check if their payment details have been input correctly as the system is still asking them to add a payment method.

    Can the fields at least be prepopulated with ‘N/A’ for the fields that are not applicable?

    cliqueradar

    (@cliqueradar)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘How to hide/remove these fields’ is closed to new replies.