• Resolved vandehee

    (@vandehee)


    Heyy goodday

    I have the woocommerce plugin and your plugin. I now want to create a registration page for buyers and a separate registration form for sellers. Because now I receive an email when I create an account for both. Do you know which 2 separate URLs those are or how I can create this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Jeff Alvarez

    (@superlemon1998)

    hi @vandehee,

    We currently do not have that feature on vendor dedicated registration page, I’ll raise a feature request for this.

    Having said that, what you can do is create a custom registration form and have it automatically assign the vendor role and then a custom code to activate the vendor role.

    You may need to use a 3rd party plugin that allows you to create a form and assigned certain roles when registering through the form, also please reach out to said plugin support team going forward as you may need to tweak the snippets:

    if ( ! function_exists( 'wcv_update_vendor_status' ) ) {
    	/**
    	 * Update vendor status
    	 *
    	 * @param  int $user_id the user id.
    	 */
    	function wcv_update_vendor_status( $user_id ) {
    		$user = get_user_by( 'id', $user_id );
    		if ( in_array( 'vendor', $user->roles, true ) ) {
    			update_user_meta( $user_id, '_wcv_vendor_status', 'active' );
    		}
    	}
    	add_action( 'user_register', 'wcv_update_vendor_status', 10, 1 );
    }

    or

    if ( ! function_exists( 'wcv_update_vendor_status_on_add_role' ) ) {
        /**
         * Update vendor status on add role
         *
         * @param int $user_id the user id.
         * @param string $role the new role.
         */
        function wcv_update_vendor_status_on_add_role( $user_id, $role ) {
            if ( 'vendor' === $role ) {
                update_user_meta( $user_id, '_wcv_vendor_status', 'active' );
            }
        }
        add_action( 'add_user_role', 'wcv_update_vendor_status_on_add_role', 10, 2 );
    }
    Thread Starter vandehee

    (@vandehee)

    Ok thank you, and do you have a po file for me for loco translate in Dutch? it doesn’t work yet via loco translate plugin. Or do you know how it is translated into my language?

    Thread Starter vandehee

    (@vandehee)

    hey goodday,

    It dont works, i think a error conflict. Do you know another option to translate the Wc vendor plugin?

    • This reply was modified 2 years, 1 month ago by vandehee.
    Plugin Support Jeff Alvarez

    (@superlemon1998)

    Hi @vandehee,

    For loco translate please try moving the translation location, this should fix the issue with the content not being translated properly.

    See: Microsoft​ Edge – Plugins ‹ vendor — WordPress and 5 more pages – Personal – Microsoft​ Edge – 21 March 2024 (loom.com)

    Thread Starter vandehee

    (@vandehee)

    oke it dont translate.. Is there another option for translate the text email for my users if they are registered from the plugin? , not on the settings i saw..

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

The topic ‘2 registration pages apartment’ is closed to new replies.