weberinformatics/magento2-hide-products

Magento 2 extension for hiding products by customer groups.

dev-master 2019-03-27 13:30 UTC

This package is auto-updated.

Last update: 2021-03-27 18:15:47 UTC


README

After installing and configuring the extension, products will be hidden for specific customer groups.

Installation

To install use the following composer command:

composer require weberinformatics/magento2-hide-products

Then enable the module:

bin/magento module:enable WeberInformatics_HideProducts
bin/magento setup:upgrade

And clean the cache:

bin/magento cache:clean

Configuration

Add rules for hiding products in etc/config.json. Example:

{
  "hideRules": [
    {
      "productId": 1,
      "customerGroupIds": [1, 2]
    },
    {
      "productId": 3,
      "customerGroupIds": [4, 5]
    }
  ]
}