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: 2024-03-28 01:04:15 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]
    }
  ]
}