1. Home
  2. Docs
  3. Magento 2 B2B Extensions
  4. Magento 2 Hide Price
  5. User Guide

User Guide

1. Hide Price for Magento 2 Overview

Hide Price for Magento 2 extension allows admin to hide product price and replace Add to Cart button with a custom message or a custom URL. Developed as the standard version of Hide Price Call For Price extension, Hide Price for Magento 2 guarantees to have all hide price functions with some new upgrades.

2. How Does Hide Price for Magento 2 Work?

The extension applies hide price function for both Product Config and Global Config, but the product config has higher priority.

For example: If a product is set with hide price action A in Product Config and the category with that product is set with hide price action B in Global Config, then that product will follow action A.

2.1 Product Config

Go to Products ⇒ Catalog ⇒ Product Edit Page ⇒ Hide Price.

Product config

In Product Config of each product, an additional tab named Hide Price is added for admin to set hide price for each product.

In Hide Price Action, choose 1 of the following 4 options:

  • Disable: Disable hide price for each product. (If admin disables hide price in Product Config, that product will still show price even if hide price is enabled for the whole category with that product in).
  • Use Hide Price Global Config: Apply hide price in Global Config by default.
  • Hide Price and “Add to Cart” Button: Hide both product price and Add to Cart button. (1)
  • Show Price and Hide “Add to Cart” Button: Hide Add to Cart button but still show product price. (2)

Only when (1) and (2) is chosen, the following config can be enabled.

In Hide Price Message, enter a custom message which is shown in place of the Add to Cart button.

In Hide Price for Customer Groups, choose the customer groups to apply hide price.

In Hide Price URL, enter an URL in the form of the full link.

Ex: http://demom2.bsscommerce.com/magento2-hide-price/customer/account/login/ Use this link to redirect customers to Customer Login Page.

Frontend Display

2.2 Global Config

Go to Stores ⇒ Configuration ⇒ BSSCommerce ⇒ Hide Price General Config.

General config

In Enabled, choose Yes to enable the extension or No to disable it.

In ‘Add to Cart’ Button Selector, fill in the selector of Add to Cart button depending on the website’s theme.

Go to Stores Configuration BSSCommerce Hide Price Hide Price Global Config.

Hide price setting

In Hide Price Action (3), choose 1 of the following 2 options:

  • Hide Price and “Add to Cart” Button: Hide both product price and Add to Cart button.
  • Show Price and Hide “Add to Cart” Button: Hide Add to Cart button but still show product price.

In Hide Price Message, enter a custom message which is shown in place of the Add to Cart button.

In Apply for Categories (4), apply hide price action (3) for all products in the chosen categories.

In Apply for Customer Groups (5), apply hide price action (3) for all customers in the chosen customer groups.

Only when admin finish (4) and (5), the hide price action (3) can be enabled.

In Hide Price URL, enter an URL in a form of the full link to redirect customers to the desired page.

*Note: If a product belongs to two categories A and B. If A is applied with hide price function and B is not applied, hide price function will apply for that product in both A and B.

Was this article helpful to you? Yes No

How can we help?