CMS DisplayRules for Magento 2

The Documentation


After downloading the package, please proceed with the following steps:

Step 1:

Please unzip the archive.

Step 2:

Disable cache at System -> Cache Management.

Step 3:

Unload the contents of the module package to the Magento root folder. This will not over write the existing Magento files, only the new contents will be added.

Step 4:

Using SSH, go to Magento root folder and run command below:

1. Run command to update database : php bin/magento setup:upgrade

2. Run command to deploy : php bin/magento setup:static-content:deploy

Step 5:

Refresh your admin user access rights: log out from your store admin and then login back. Next, please Enable Cache.

Activation

To enable or disable the extension following STORES -> Configuration -> CMSIDEAS EXTENSIONS-> CMS Display Rules – Yes/No.

To enable the extension for a specific store view, click the "Store View" control. Then, choose the necessary store view.

CMS Page Display Rules

Once the extension has been enabled, there is an additional section "Page Display Rules" appears in the page management page.

To  set  CMS  page  display  rules, go to Content -> Elements -> Pages -> choose the required page.

 Click "Select" in the "Action" column and then select "Edit". Scroll down and expand section "Page Display Rules".


Show Page to the following User Groups – Select customer groups the page will be visible to. Hold the "Ctrl" key to select multiple groups.

Starting on – Limit the visibility period for selected groups.

Ending on – Set the end date when the visibility period is over.

Otherwise, display another CMS instead – Replace the selected page and display the other one.

Redirect Rules for CMS Pages

To redirect the page, click on dropdown "Otherwise, display another CMS instead". Then select the page for redirect there.


Static Block Display Rules

Once the extension has been enabled, there is an additional section "Static Block Display Rules" appears in the "Blocks" settings.

To set static block display rules, go to Content -> Elements -> Blocks -> choose the required block. Click "Select" in the "Action" column and then select "Edit". Scroll down and expand section "Static Block Display Rules".

Show Static Block to the following User Groups – Select customer groups the block will be visible to. Hold the "Ctrl" key to select multiple groups.

Starting on – Limit the visibility period for selected groups.

Ending on – Set the end date when the visibility period is over.

Otherwise, display another Static Block instead – Replace the selected block and display the other one.


Redirect Rules for Static Blocks

To replace the static block, click on dropdown "Otherwise, display another Static Block instead". Then select a block for replacement.

Redirect Rules on Frontend

The redirect principle for Block: Static Block 1 for not logged in users -> Static Block 2 for Retailer -> Static Block 3 for Wholesaler -> Otherwise, hide Static Block.

The redirect principle for Page: CMS Page 1 for not logged in users -> CMS Page 2 for Retailer -> CMS Page 3 for Wholesaler -> Otherwise, hide CMS Page.

Not logged in customers will view:

Retailers will view:


Wholesaler will view:

If you face problems with the installation or customization of our product please do not hesitate to contact us via our support ticket system:
 
email: team@cmsideas.net
 
ticket: http://support.cmsideas.net
 
blog: http://blog.cmsideas.net