Vendor Registration Validation

WCMp Vendor Frontend Reports

Vendor Registration Validation Resolved

Viewing 10 reply threads
  • Author
    Posts
    • #62889
      osama.designer
      Participant

      In the vendor registration the password field showing character validation. If i am click on register button. It registered instead validate it… I want to same as customer registration.

    • #62913

      Hi Osama, The customer registration page comes from WooCommerce.
      Now, WooCommerce already provides the password field validation, as you can see here – https://prnt.sc/nvf856.

      Can you please check again.

    • #62966
      osama.designer
      Participant

      yes but that was customer registration section.And i ask about vendor registration form. check this link
      http://eayuni.com/vendor-registration
      I want validation same like customer registration . If my password character minimum 12 the register button should be disable.

    • #62976

      @osama.designer, currently we display vendor that the added password is week/strong. However, this doesn’t control whether the vendor can click on the register button.

      However, you can do custom code and add this restriction. If you need reference of hook/filter, let us know.

    • #62988
      osama.designer
      Participant

      ok can you please made filter for this. its very helpful for us pleasee..

    • #63148

      Hi @osama.designer,
      In order to add the restriction, add this code to the function.php of the current active theme :

      add_filter('woocommerce_registration_errors', 'woocommerce_registration_errors_password_length', 10,3);
      function woocommerce_registration_errors_password_length($reg_errors, $sanitized_user_login, $user_email) {
             global $woocommerce;
             if(strlen($_POST['password'])<12){
                  return new WP_Error( 'registration-error', __( 'Password strength is too low.', 'woocommerce' ) );
             }
             return $reg_errors;
      }
      Copy
    • #64569
      osama.designer
      Participant
      This reply has been marked as private.
    • #64603

      Hi @osama.designer, it might be a permalink issue.

      So goto wp-admin >> settings >> permalink and click on Save Changes.

    • #64661
      osama.designer
      Participant

      I want that if admin create vendor store. after creation store credentials will send to vendor via email automatically. Is it possible? please help i am stuck.
      Thanks

    • #64831

      @osama.designer using

      do_action( 'user_register', $user_id )
      Copy

      hook you have to trigger

      wp_new_user_notification($user_id, null, 'user')
      Copy

      functionalities to send notificatation to user.
      And to modify email content or add extra you can use this

      apply_filters( 'wp_new_user_notification_email', $wp_new_user_notification_email, $user, $blogname )
      Copy

      filter

    • #75625
      MOUMITA Haldar
      Participant

      Hi @osama.designer,

      I presume that your issue is resolved, since, we haven’t heard back from you.

      We are marking this thread as resolved.

      Kindly open a new thread if you face any further query.

Viewing 10 reply threads

The topic ‘Vendor Registration Validation’ is closed to new replies.

COVID-19 Outbreak: WCMp team is supporting business affected by coronavirus

Read the Message Buy at Slashed Price