Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Vendors › Directory
- This topic has 7 replies, 2 voices, and was last updated 4 years, 7 months ago by Ramamurthy Krishnan.
- AuthorPosts
- March 23, 2020 at 4:32 pm #112796sheridandoyleParticipant
Hi, is it possible to disable the email sign up so I can create store accounts that will be listed in a directory? I am unable to do so at this point because an email is required to create the account. Thank you.
- March 26, 2020 at 12:44 am #113207Ramamurthy KrishnanKeymaster
Hi,
The email field is mandatory for vendor registration and this is logical for any user registration as well. The email verification should be mandatory for a verified user.
Thanks,
- March 26, 2020 at 4:36 am #113220sheridandoyleParticipant
Hi, that is not the way I wish to use the accounts for the time being.
Are you saying there is no code snippet to allow stores to be created without an email? I would like for the username and password to only be mandatory.
I need to create over 100 stores which I will add myself. The business owners can email me if they wish to claim their account at a later date. They can add their email then.
- March 26, 2020 at 8:00 pm #113348Ramamurthy KrishnanKeymaster
Hi,
You can create as many vendors after logged in as a administrator, just use a test email id while creating those vendors. Later when business owners claim for their account from you just provide them with a store access and they (business owners) will change the email id of their wish.
Thanks,
- April 10, 2020 at 7:09 am #117524sheridandoyleParticipant
Thank you for your response but that is not going to work. I would need to create over 100 test email addresses and I do not have the time to do that. I am willing to pay someone to make the email on sign-up optional. Are you able to provide me an approximate quote?
- April 10, 2020 at 9:57 am #117541Ramamurthy KrishnanKeymaster
Hi,
Sorry email id field is mandatory so that can’t be an optional field during registration. Every user registration requires a valid email address. It should pass WordPress email validation rule. You may check from wp-admin -> Add user also. It is WordPress standard.
Thanks,
- April 10, 2020 at 11:00 am #117556sheridandoyleParticipant
I’m not 100% convinced. I’ve just added a code snippet that has disabled the mandatory email for WordPress users and you can see the code snippet in the link below. I’ve also attached a screenshot to show email is no longer required for WordPress users.
Website: https://www.wppluginsforyou.com/how-to-create-users-without-email-in-wordpress/
Snippet:
// This will suppress empty email errors when submitting the user form
add_action(‘user_profile_update_errors’, ‘my_user_profile_update_errors’, 10, 3 );
function my_user_profile_update_errors($errors, $update, $user) {
$errors->remove(’empty_email’);
}// This will remove javascript required validation for email input
// It will also remove the ‘(required)’ text in the label
// Works for new user, user profile and edit user forms
add_action(‘user_new_form’, ‘my_user_new_form’, 10, 1);
add_action(‘show_user_profile’, ‘my_user_new_form’, 10, 1);
add_action(‘edit_user_profile’, ‘my_user_new_form’, 10, 1);
function my_user_new_form($form_type) {
?>
<script type=”text/javascript”>
jQuery(‘#email’).closest(‘tr’).removeClass(‘form-required’).find(‘.description’).remove();
// Uncheck send new user email option by default
<?php if (isset($form_type) && $form_type === ‘add-new-user’) : ?>
jQuery(‘#send_user_notification’).removeAttr(‘checked’);
<?php endif; ?>
</script>
<?php
}Attachments:
You must be logged in to view attached files. - April 10, 2020 at 1:24 pm #117579Ramamurthy KrishnanKeymaster
Hi,
Yes the above code will work while creating users from wp-admin -> Add user. But we recommend a mandatory email field while adding vendors from WCFM store manager and also from vendor registration page.
Thanks,
- AuthorPosts
- You must be logged in to reply to this topic.