• Resolved stig0404

    (@stig0404)


    hello,

    I am trying to create a site where user is both customer and vendor, meaning that they can both advertise and also buy, like a marketplace where you can buy and sell items

    Can I use this for this purpose? and how can I make a register be both vendor and customer?

    rgs
    Stig

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @stig0404,

    You will be glad to know that if you register with the Dokan user role vendor, you will be able to sell a product also purchase a product. A vendor can also act as a customer and purchase from other vendors. However, the customer role is able to purchase only. So in case you need one user role with selling and buying ability, you can only use the vendor registration option and hide the ‘I am customer’ option from the registration page.

    You are unable to make the change by default. You can hide the customer registration button.

    /wp-content/plugins/dokan-lite/templates/global/seller-registration-form.php
    Comment out line no: 60-63

        <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>

    Use // to comment out. Make the changes using a child theme so that you do not lose the changes during an update. It is recommended to use a child theme during such modification. The mentioned link can be useful to you for the purpose.

    I hope this helps ??

    This solution works, but I have another issue. When a user without an account, chooses to login with Social Logins, it automatically makes them the customer account role! I am unable to migrate them to seller account… is there a way to give them vendor privileges by default?

    Thanks!

    Hello @ryandesigned,

    The free version of Dokan does not have the social login feature. Can you please let me know if you are using any third-party plugin for the purpose?

    In the case of a third-party plugin, you may need integration between the plugin to make then work properly. Unfortunately, we are unable to help you with such customization, you will need expert help for the purpose.

    Thank you ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Register as both customer and vendor’ is closed to new replies.