Static Block by Customer Group - Magento 2

100% of 100

This extension provides the ability to restrict or display specific static blocks to different customer groups.

Composer Packed

Magento Community (Open Source) 2.1.x, 2.2.x, 2.3.x, 2.4.x
Magento Enterprise (Commerce) 2.1.x, 2.2.x, 2.3.x, 2.4.x

24/7 Support
90 Days Free Support
30 Days Money-Back Guarantee
Free Installation
Write Your Own Review

Static block by customer group extension allow you to restrict specific static blocks from the selective customers. These selective customers can be a set of different customer groups like not logged-in, general, retailers or wholesalers. Most of the online merchants are dealing with different set of customer groups and they require to display different content or blocks to their customers. This extension will be helpful for such merchants and help them to differentiate the content based on the customer groups. The configuration of the extension is also easy and allows to configure the customer groups in the static block itself.

Why Static Block by Customer Group?

  1. Different content for specific customer groups.
  2. Better control over the promotional content over the different audience.
  3. Flexibility to develop customer wise promotion strategy.
  4. 100% open source code.


  1. Ability to restrict the static blocks to specific customer groups.
  2. Compatible with custom created customer groups.
  3. Fully compatible with Magento's Full Page Cache and Varnish Cache.
  4. Compatible with multiple stores and websites.
  5. Compatible with static blocks which are included through widgets.

Option to restrict Static Block by Customer Group

  1. Backup your web directory and store database.
  2. Download the extension package and unzip it.
  3. Upload the content of the extension package to the root directory of the store.
  4. In SSH console of your server navigate to your store root directory:
    cd path_to_the_store_root_directory


    php -f bin/magento module:enable EH_Core php -f bin/magento module:enable EH_StaticBlockByCustomerGroup

    then run:

    php -f bin/magento setup:upgrade --keep-generated

    then run:

    php -f bin/magento cache:clean

    then run:

    php -f bin/magento indexer:reindex
Version 1.0.1 - December 07, 2019
- [Improved] Performance and stability improvement.
Version 1.0.0 - January 06, 2019
- Initial release.
- This extension provides the ability to restrict or display specific static blocks to different customer groups.