• Resolved Selah

    (@tubescreamer)


    Hi,

    I’ve followed the instructions here to remove the “I am a vendor” and “I am a customer” options from the WooCommerce register form in the my account page.

    While the options were removed after commenting out the appropriate lines, when trying to register an account, I am getting an error saying “Cheating, eh?”.

    I want users to be regular customers by default when they are signing up through the register form on the my account page..

    • This topic was modified 1 year, 5 months ago by Selah.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi @tubescreamer

    You can use the Dokan Kits plugin to remove the ‘I am a vendor’ option, leaving only the customer registration option by default.

    I hope this helps.

    Thanks!

    Thread Starter Selah

    (@tubescreamer)

    Is this the only option? I’d rather not install an additional plugin that can do multiple things to only use one of those features.

    Hello @tubescreamer,

    You can follow this video tutorial to remove the I am a Vendor option from the My Account page.

    I believe this information proves helpful.

    Thanks!

    Thread Starter Selah

    (@tubescreamer)

    @fayeakuzzaman , this is the same video I linked in my first post in this thread..

    Hi @tubescreamer

    You can add the snippet provided below to the functions.php file of your child theme.

    // Remove Dokan's custom registration form fields
    remove_action('woocommerce_register_form', 'dokan_seller_reg_form_fields', 10);
    // Remove Dokan's registration validation
    remove_filter('woocommerce_process_registration_errors', [dokan()->registration, 'validate_registration'], 10);
    remove_filter('woocommerce_registration_errors', [dokan()->registration, 'validate_registration'], 10);

    I hope this helps!

    Thanks!

    Thread Starter Selah

    (@tubescreamer)

    Thanks, I’ll try it. Will this still allow me to create a separate vendor sign up form? Or will it affect the “upgrade to vendor” functionality in any way?

    Hello @tubescreamer,

    This snippet will indeed assist you in creating a separate vendor registration form. However, please rest assured that it will not impact the “Upgrade to Vendor” functionality in any way. Both features can work independently without interfering with each other.

    Thanks!

    Hello @tubescreamer,

    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!

    This problem has been raised by many people!
    But the creators of the Dokan plugin are not interested in fixing this problem!

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

The topic ‘Remove “I am a customer” and “I am a vendor” option from WC register form’ is closed to new replies.