Introduction

The Magento 2 Hide Price for Guest extension by FMEextensions is designed to enhance control over pricing visibility on your store. This extension hides prices from guest users and prompts them to log in to view prices. This is especially useful if you want to create a sense of exclusivity or encourage user registration.

Key Features

  • Hide prices for guest users
  • Customizable "login to view price" message
  • Control price visibility per product or category
  • Encourage user registration for price access
  • Restrict price viewing to specific customer groups
  • Easy configuration and management

Compatibility

This extension is compatible with the following Magento versions.

  • 2.1.x
  • 2.2.x
  • 2.3.x
  • 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.4.5, 2.4.6, 2.4.7

Installation Guide

Method 1

  1. Unzip fme_hide-price-for-guest-x.x.x.zip to a local folder.
  2. Make folder FME into your_magento_directory/app/code/ (if you don't find code folder within app folder, please create it first).
  3. Create the following folders (as mentioned in step 2):
  • app/code/FME
  • app/code/FME/HidePriceForGuest
  1. Copy all the contents from fme_hide-price-for-guest-x.x.x to newly created HidePriceForGuest folder.
  2. Now open console or shell.
  3. Go to your Magento directory and run the following commands:
  • php bin/magento module:enable FME_HidePriceForGuest
  • php bin/magento setup:upgrade
  • php bin/magento setup:static-content:deploy -f (-f may not work in Magento versions less than 2.2.x.)
  • chmod command for var/ pub/static and generated/ folders
  1. Reload the Magento admin and you will see FME Extensions on the left side menu of your admin panel.

Method 2

  1. Unzip fme_hide-price-for-guest-x.x.x.zip to a local folder.
  2. Make folder FME into your_magento_directory/app/code/ (if you don't find code folder within app folder, please create it first).
  3. Create the following folders (as mentioned in step 2):
  • app/code/FME
  • app/code/FME/HidePriceForGuest
  1. Copy all the contents from fme_hide-price-for-guest-x.x.x to newly created HidePriceForGuest folder.
  2. Go to your_magento_directory/app/etc/
  3. Open config.php file in etc folder
  4. Add the following line in $modules array at the end ‘FME_HidePriceForGuest’=>1,
  5. Now open console or shell.
  6. Go to your Magento directory and run the below commands
  • php bin/magento setup:upgrade
  • php bin/magento setup:static-content:deploy -f (-f may not work in Magento versions less than 2.2.x.)
  • chmod command for var/ pub/static and generated/ folders
  1. Reload the Magento admin and you will see FME Extensions on the left side menu of your admin panel.