Magento 2 Hide Price

Magento 2 Hide Price extension hides the product price and "Add to Cart" button for the customer groups and categories to provide personal approach & organize private sales in Magento 2 stores.

 

Table of Content 

  1. Extension Installation Guide
  2. Configuration
  3. Product Specific Hide Price
  4. Hide Price on Frontend

 

  1. Extension Installation
  • For Magento Marketplace Customers

Find the extension’s Composer name and version in its composer.json file.

  • Login to your SSH and run:
    • composer require meetanshi/magento2-hide-price
  • 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 is installed properly, run the command:
    • php bin/magento module:status Meetanshi_HidePrice
  • By default, the extension is probably disabled. Enable the extension and clear static view files:

    • php bin/magento module:enable Meetanshi_HidePrice --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
  • That’s it.
  1. Configuration
    For configuring the extension, log in to Magento 2, move to Stores > Configuration > Hide Price where you can find various settings to enable the extension.
  • Hide Price: Enable or disable the extension from here.
  • Hide Price Scope: Set scope to enable hide price for. If you select product specific scope, make sure to enable product specific hide price as shown further in the document.
  • Select Categories: Select categories on which you want to enable Hide Price.
  • Hide Price Text: Set text or any HTML code to show in place of the product price.
  • Enable Hide Price for Selected Groups: Set “YES” to enable Hide Price for the specific customer group. If you select YES, you have to select customer groups from the drop down below this option.
  • Select Customer Groups: Select customer groups to enable hide price for.


 

  1. Product Specific Hide Price
    The extension facilitates to hide product specific price. To enabling it, select the product-specific hide price scope while configuring the extension. In Catalog > Products > Edit Product, enable the hide price from the tab and it’s done.


  

  1. Hide Price on Frontend
    Once you have configured the extension successfully, Price details will not be displayed in the frontend for the selected scope and set customer groups.
  • Hide Price on Category Page


 

  • Hide Price on Product Page

​​​​​​​
​​​​​​​