Home Forums WC Vendors Pro Support "apply to be a vendor" moved

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #61481
    netteran
    Participant

    After latest update of WC Vendors the checkbox at registration form changed it’s place (see screengrab).

    I’m using below code in my functions.php to add field for password repeat:

    // Add the code below to your theme's functions.php file to add a confirm password field on the register form under My Accounts.
    add_filter('woocommerce_registration_errors', 'registration_errors_validation', 10,3);
    function registration_errors_validation($reg_errors, $sanitized_user_login, $user_email) {
    	global $woocommerce;
    	extract( $_POST );
    	if ( strcmp( $password, $password2 ) !== 0 ) {
    		return new WP_Error( 'registration-error', __( 'Hasła nie są zgodne.', 'woocommerce' ) );
    	}
    	return $reg_errors;
    }
    add_action( 'woocommerce_register_form', 'wc_register_form_password_repeat' );
    function wc_register_form_password_repeat() {
    	?>
    	<p class="woocomerce-FormRow form-row">
    		<label for="reg_password2"><?php _e( 'Powtórz hasło', 'woocommerce' ); ?> <span class="required">*</span></label>
    		<input type="password" class="input-text" name="password2" id="reg_password2" value="<?php if ( ! empty( $_POST['password2'] ) ) echo esc_attr( $_POST['password2'] ); ?>" />
    	</p>
    	<?php
    }

    Now the checkbox for “Aply to be a vendor” has split the password fields apart.

    QUESTION:

    How to make this checkbox move e.g. to the very end of the form or to the very beginning of the form etc?

    Thanks in advance for your help.

    #61520
    Anna
    Member

    @netteran
    Are you using Pro 1.4.1 and free 1.9.10?
    I think we either need to change the hook or change the priority.
    Let me know.. As that hook had to be changed for the Apply to Become a Vendor checkbox for free version 1.9.10..

    #61535
    netteran
    Participant

    I’ve already menaged to fix it by manyally moving this part of code from functions:

    <p class="woocomerce-FormRow form-row">
    		<label for="reg_password2"><?php _e( 'Powtórz hasło', 'woocommerce' ); ?> <span class="required">*</span></label>
    		<input type="password" class="input-text" name="password2" id="reg_password2" value="<?php if ( ! empty( $_POST['password2'] ) ) echo esc_attr( $_POST['password2'] ); ?>" />
    	</p>

    and placing it directly in the form-login.php of Woocommerce template.

    THX!

    #61550
    Anna
    Member

    Cool! Thanks for letting me know- glad this is working for you now.

    #63856
    Folasola
    Participant

    please now did you do this as i have been looking for solutions on this for a very long time

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.