Magento 2 User Profile extension facilitates customers to create a private profile in your Magento 2 store with their unique details like age, gender, bio, etc.
Table of Content
- Extension Installation Guide
- Configuration
- User Profile Page in Frontend
- Edit User Profile from the Backend
- For Magento Marketplace Customers
-
- Find the Composer name and version of the extension in the extension’s composer.json file.
- Login to your SSH and run:
- composer require meetanshi/magento-2-user-profile
- Enter your authentication keys. Your public key is your username; your private key is your password.
- Wait for Composer to finish updating your project dependencies and make sure there aren’t any errors.
- To verify that the extension installed properly, run the command:
- php bin/magento module:status Meetanshi_CustomerProfile
- By default, the extension is probably disabled.
- Enable the extension and clear static view files:
- php bin/magento module:enable Meetanshi_CustomerProfile --clear-static-content
- php bin/magento setup:upgrade
- For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
- For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
- php bin/magento cache:flush
- For Meetanshi Customers
- Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP.
- Login to your SSH and run below commands step by step:
- php bin/magento setup:upgrade
- For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
- For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
- php bin/magento cache:flush
- Configuration
To configure the extension, login to Magento 2 backend, move to Stores à Configuration à Meetanshi à User Profile where you can find various settings to configure the extension.
- User Profile: Enable or disable User Profile extension from here.
- Enable Profile Image: Set YES to enable and show profile image on the registration and user profile page.
- Profile Picture Required: Set Yes to mandate the profile picture upload for users.
- Enable Cover Image: Set YES to enable and show cover image on the registration and user profile page.
- Cover Image Required: Set Yes to mandate the cover image upload for users.
- Enable First Name on Profile Page: Set YES to enable and show first name on the registration and user profile page.
- Enable Last Name on Profile Page: Set YES to enable and show last name on the registration and user profile page.
- Enable Gender on Profile Page: Set YES to enable and show gender on the registration and user profile page.
Note: To enable this option select "Yes" here and select "Optional" to Stores > Configuration > Customers > Customer Configuration > Name and Address Options > Show Gender, and save config. - Enable User Profile Link on Reviews Tab: Set YES to enable user profile link on the product page for the reviews given by the user.
- Enable Location: Set YES to enable and show location on the registration and user profile page.
- Enable Date of Birth on Profile Page: Set YES to enable and show birth date on the registration and user profile page.
Note: To enable the option, select "Yes" here and set "Optional" to Stores > Configuration > Customers > Customer Configuration > Name and Address Options > Show Date of Birth, and save config.
- Enable Profession: Set YES to enable and show profession of a user on the registration and user profile page.
- Enable Bio: Set YES to enable and show bio on the registration and user profile page.
- Bio Required: Set YES to mandate bio text for the users.
- Enable Hobbies: Set YES to enable and show hobbies of the user on the registration and user profile page.
- Enable Website URL: Set YES to enable and show website URL of the user on the registration and user profile page.
- Enable Email: Set YES to enable and show the email of the user on the registration and user profile page.
- Enable Contact No: Set YES to enable and show contact number of the user on the registration and user profile page.
- Show Account Creation Date: Set YES to display account creation date on the user profile page.
- Show Last Login History: Set YES to display the last login history on the user profile page.
- User Profile Page in Frontend
Once the required configurations are done, users can see profile link in the top link section. If a user is not logged in, he gets redirected to the sign-up page where he can register and create a profile by entering additional details.
- User Profile Page
If the user is already logged in, he gets redirected to the his profile page. The profile page includes and shows all the enabled fields from the configuration. On hover of the various icons, the user can see tooltip with the related details. Also, he can see various tabs including recently viewed products, new arrivals, whishlisted products, reviews added and order placed by him.
- Edit User Profile from “My Account”
Users can edit profile information from “Account Information” tab under My Account section.
- User Profile Link in Product Reviews Tab
If the logged-in users have submitted reviews for the products, after their reviews get displayed on the product page, their profile link is attached on the profile image (only if the profile is set to public) on the products review tab. Also, not logged-in or other users can see the reviews and click the profile image to see the user profile.
- If a not logged-in user or other profile users click on the user profile link from the product reviews tab, they can see the profile of the users with the tabs like wishlist and reviews. All the other tabs are invisible for the other users.
- Edit User Profile from the Backend
The admin can edit user profile information of the users from Customers à All Customers à Edit Customer à Account Information tab.