Show Price After Login for Magento2 module allows the store owner to display product price and “Add to cart” button after login. The Product price and “Add to cart” button will not display until the customer does not login to the Magento2 Store. This is a wonderful stand-alone module for Magento2.
Features of Show Price After Login for Magento2
- Price and add to cart button will not display until the customer does not login.
- The customer can’t add the product to cart without login.
- This module also works with tier price.
- This module works with multi-store and multi-website of Magento2.
- The codes are open source so it can be customized easily.
Installation of Show Price After Login for Magento2
Customers will get a zip folder and they have to extract the contents of this zip folder on their system. The extracted folder has an src folder, inside the src folder you have the app folder. You need to transfer this app folder into the Magento2 root directory on the server as shown below.
If you have downloaded the module from Magento Connect then unzip the respective extension zip and create Webkul(vendor) then ShowPriceAfterLogin(module) name folder inside your magento root directory as app/code/Webkul/ShowPriceAfterLogin and then move all module’s files inside /app/code/Webkul/ShowPriceAfterLogin/ folder in magento root directory.
After the upload, you can see the folders in your Magento2 Root Directory.
After the successful installation, you have to run the command on Magento2 root directory-“php bin/magento setup:upgrade”
Also, run this command into the Magento2 Root- “php bin/magento setup:static-content:deploy” You can refer the below screenshot.
After running the commands, you have to flush the cache from Magento admin panel by navigating through->System->Cache management as shown below.
Configuration of Multi-Lingual Support
For the multilingual support, the admin will navigate through Store->Configuration->General ->Locale Options and select the locale as German (the language into which admin want to translate his store content).
Magento2 Show Price After Login Language Translation
If a user wants to translate their module from English to German then they need to follow the path app/code/Webkul/ShowPriceAfterLogin/i18n in their unzipped Magento Marketplace folder and will get a CSV file with name “en_US.csv”. Now they will rename that CSV as “de_DE.csv” and translate all right side content after the comma in the German language. After editing the CSV, save it and then upload it to the path app/code/Webkul/ShowPriceAfterLogin/i18n where they have installed Magento2 on their server. The module will get translated in the German Language. It supports both theLTRand RTL languages.
Show Price After Login for Magento2 at front-end
Now let us see the workflow of this module on the Product Page, Search Page & Category Page.
At the product page, the customer will not able to see Price and add to cart button. They will see “Please Login To View Price” button like the image below.
After clicking on “Please Login To View Price” the customer will be redirected to Login page.
After the success login, the customer can see Price of the product and Add to cart button on the product page.
On the Search page, when a customer searches any product and if that customer is not login, then they cannot see product price & Add to Cart button.
After login, the customer can see product price at the search page.
On hovering over the products, the customer can also see “Add To Cart” button on the search page.
When the customer is not login and if they go to the Category Page, then they will not see Product Price & Add To Cart Button.
After login, the customer can see product price at the Category page.
On hovering over the products, the customer can also see “Add To Cart” button on the Category page.
That’s all for the Show Price After Login for Magento2 still have any issue feel free to add a ticket and let us know your views to make the module better https://webkul.uvdesk.com/