I would approach the situation like:
- Create an user with subscriber role.
- Add a meta field to the user profile. This will be the password like field you will verify the user against.
- Use AJAX to verify the password(meta value) entered by the visitor and display product specification accordingly.
You do not have to worry about WP user roles or visitors getting access to admin side.
Hope this helps!
Related Posts:
- Private page protected with username and password
- Separate registration and login for different roles
- Check for correct username on custom login form
- Disallow user from editing their own profile information
- Add Confirm Password field in wp-login.php Password Reset page
- How to customise wp-login.php only for users who are setting a password for the first time?
- Give visitor access to password protected page/post via external script
- Send reset password link to user from custom lost password form
- Is it possible to get a user with just the password field?
- How can I retrieve the username and password from my WordPress installation?
- password protect individual pages
- Problem with logging in WP users automatically
- How to determine if a user has not changed default generated password
- Restricting frontend acess based on user role otherwise redirect to login form
- Right practice to edit WP reset password email
- Deny a user role to log in after register
- reset password link redirect to login page
- Password protect media attachment – share across guests
- Password reset – Disabled for LDAP accounts
- How to integrate external user tables with WP?
- Allow Users Only Edit Their Profile?
- Why wp_update_user doesn’t update user_activation_key on users with apostrophes in their email?
- Forgot Password/ Password Reset Page does not exist
- Correct passwords keep appearing as incorrect
- Forgot password needs to redirect from wp-login to a custom page
- How can I change the email sender name from wordpress to (myblogname) on the “lost password” email?
- Set Default User Role
- Lock out all WordPress Administrators except two specific users
- How to password-protect everything except the logo
- Generate email on meta value update
- Is there anyway to get the inputted password string from the login form?
- WordPress Login redirection according to user role
- How can I password protect a WordPress site without requiring users to log in?
- Password not resetting on wordpress?
- Prevent Subscriber Role to login
- autocomplete=”off” WordPress Login
- WordPress not logged in locally with correct username and password
- wordpress login without password just email address (NO 2 factor authentication with email)
- Password recovery URL has error – but not found in code or db
- Temporally disable password to login with empty password?
- I need to find which is the file that checks the DB for correct login (username, password)
- Login Based on ip
- URL Restrictions? Need only people who are logged in AND have a specific role (or roles) to access all pages for a site
- Login form does not store/remember/suggest users password
- Custom failed login error messages for users based on user role?
- Custom user roles are unable to login
- How to invalidate `password reset key` after being used
- WordPress password reset not working
- New user password confirmation sending wrong URL
- Locked out of WordPress admin area [closed]
- Global login to password protected pages
- Disable / Remove Password for Login WordPress
- How to password protect pages in WordPress
- Chosen user password in registration is not being accepted on Login
- User login without username, only password
- wp_lostpassword_url not escaped
- Trouble logging in and/or changing password
- Cannot login with correct username and password anymore
- Cant login, Password MUST be reset error, after reset
- Log in a user upon password reset?
- Can’t log in: “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”
- How to disable autocomplete on the wp-login.php page
- How can I add a custom script to footer of login page?
- moving server can not login
- Redirect after login based on user role (custom login page)
- wordpress custom login successful redirect hook
- Store brute-force IP addresses
- How to create a private login page for admin.?
- WordPress Security – How to block alternative WordPress access
- Different homepage for logged in users
- Deregister default wp-admin css on login screen only?
- How can I login as admin after redirect to custom login page
- Why would the login page reload indefinitely?
- Creating custom login errors
- Why is wp-login trying to send an email?
- Replacing default display name to login name
- Why does is_user_logged_in() return false after I change user password on the front end?
- my wp-login page doesn’t load [closed]
- Requiring login for specific pages
- login trouble WordPress can change IDs created by hoster site
- WordPress registration page template
- Custom page only editable by one user
- Reset Password Limit not working
- User not able to sign in after wp_authenticate() and wp_signon() wordpress
- Problem in auto login after registration
- Cant reset password my wordpress password not even with phpMyAdmin
- wp-cron event doesn’t run when custom login API is enabled
- Special link for no automatic login (no username and no password)
- WordPress Auto Login From Email Link
- Building a custom login form – encountering issues
- Making sure two different wordpress website has auto login
- How do i Redirect specific user(WooCommerce Sign-in not wordpress admin page sign-in) to specific page
- Improvements to “limit login attempts” plugin
- Add a required field to Registration
- Can’t login through wp-login.php on fresh installation
- Using wp_login_form passowrd as undefined
- Redirect non-members to about/intro page
- Handle POST request sent from an external site for login?
- How can I automatically change directory on ssh login?
- How to remove without touching the pluggable.php the wordpress_logged_in cookie to show the username on login?