Hide Cart Product Price - Magento 2 module documentation

Author: Paweł Wasiluk

Hide Cart Product Price Module

Module overview

Control which customer group shoud be able to add product to cart and see price of your products. Hide Cart Product Price module lets you have it for single products.

Module compatibility

This module is compatibile with Magento Community versions: 2.3.

How it works

After Installing module you should head to Admin Panel, go to Customer > Customer Groups there you can add your new customer groups by your desire. mportant is to remember their ids, because we will be using them in next steps.

Now go to attribute edition page, Stores > Attributes > Product there find attributes by code that our module has added, that are: hide_buy_for_user_groups, hide_price_for_user_groups.
Edit mentioned attributes by adding options to them.
Image 1

The number under store view should be reflecting id of customer group.

Now you can go to product edit page and there mark what customer group will not see price and/or will not be able to add product to cart.
Image 2
Image 3

Installation

Composer

  1. Add repo to composer.json:
"repositories": [
    ...
    {
        "type": "vcs",
        "url": "git@git.auroracreation.com:aurora-modules/hidecartproductprice.git"
    }
    ...
],
  1. Add package to composer.json:
"require": {
    ...
    "aurora/hide-cart-product-price": "*"
    ...
},
  1. In Magento root folder run commands:
composer update aurora/hide-cart-product-price
php bin/magento module:enable Aurora_HideCartProductPrice
php bin/magento setup:upgrade

Manual

  1. Unzip archive.
  2. Upload extension files on your server to:
{Magento root}
└── app/
    └── code
  1. In Magento root folder run commands:
php bin/magento module:enable Aurora_HideCartProductPrice
php bin/magento setup:upgrade

Thank you for your interest in our products!