• Resolved rachelbjj

    (@rachelbjj)


    Hello,

    I’d like the users to be automatically considered as vendors when they sign up, and not only customers (in order to fix some redirection issues).

    How can I do that ?

    Thanks for your answer.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @rachelbjj,

    You can disable the customer registration option :

    /wp-content/plugins/dokan/templates/global/seller-registration-form.php
    Comment out the mentioned line :

    <label class="radio">
            <input type="radio" name="role" value="customer"<?php checked( $role, 'customer' ); ?>>
            <?php esc_html_e( 'I am a customer', 'dokan-lite' ); ?>
        </label>

    Then your user will only be able to register as a vendor.

    I hope this helps ??

    Hello, i’m looking for same thing, only vendor registration. But when i do this, i don’t have automaticaly the vendor registration. So i going on dokan-lite/includes/template-tags.php and on this :

    function dokan_seller_reg_form_fields() {
        $postdata = wc_clean( $_POST ); // WPCS: CSRF ok, input var ok.
        $role = isset( $postdata['role'] ) ? $postdata['role'] : 'seller';
        $role_style = ( $role == 'seller' ) ? 'display:none' : '';
    
        dokan_get_template_part( 'global/seller-registration-form', '', array(
            'postdata' => $postdata,
            'role' => $role,
            'role_style' => $role_style
        ) );
    }

    i have replace customer by vendor. But i need check customer and vendor agin to update form…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Customers automatically vendors’ is closed to new replies.