• Resolved Jaime

    (@wilfredo1234)


    How can I Delete the Phone Number when upgrading dokan to seller.
    Can someone help me thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Jaime

    (@wilfredo1234)

    example

    Plugin Support Tanvir Hasan

    (@tanvirh)

    Hi @wilfredo1234

    Remove the phone required field will require overriding the vendor migration form template then remove the required for the field. After that need to add custom CSS to hide the field. The entire process will require expertise with the template override and customization.

    We recommend consulting with a professional WordPress customization expert to assist you with the customization. I am sharing the file path below that can help with the customization.

    dokan-lite/templates/account/update-customer-to-vendor.php

    Thanks!

    Thread Starter Jaime

    (@wilfredo1234)

    I have deleted this file

    /plugins/dokan-lite/includes/Frontend/MyAccount/BecomeAVendor.php

                'phone'    => __( 'Enter your phone number.', 'dokan-lite' ),

    I have also deleted this file, but when registering it, the following pages no longer appear, it redirects to the main page

    /plugins/dokan-lite/templates/account/update-customer-to-vendor.php
        <p class="form-row form-group form-row-wide">
            <label for="shop-phone"><?php esc_html_e( 'Phone Number', 'dokan-lite' ); ?><span class="required">*</span></label>
            <input type="text" class="input-text form-control" name="phone" id="shop-phone" value="<?php echo esc_attr( $phone ); ?>" />
        </p>

    I have tried to use this code to Cancel mandatory phone message but it does not work.

    /* Cancel mandatory phone message */
    add_filter('dokan_customer_migration_required_fields', function(){
    return [
    'phone' => __( 'Please enter your phone number.', 'dokan-lite' ),
    ];
    });
    • This reply was modified 3 months, 2 weeks ago by Jaime.
    Plugin Support Tanvir Hasan

    (@tanvirh)

    Hi @wilfredo1234

    Kindly follow the steps shared in this article to learn how to override the Dokan template file: https://wpdoctor.press/overriding-dokan-plugin-template-easy/ and then apply the customization through the child theme. We recommend consulting with a professional WordPress customization expert to assist you with the customization.

    Thanks!

    Plugin Support Yeasin Arafat

    (@yeasinarafathridoy)

    Hi?@wilfredo1234,

    As we haven’t heard back from you for a while, we’ll consider this topic resolved. If you encounter any further issues, please don’t hesitate to open a new topic.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.