How to Manage CMS Pages and Static Blocks Visibility in Magento 2 |
Magento 2 Extensions |
Written by ITORIS Team, 2017-09-28 |
When the hot season is coming it is time to think over how to improve your customers’ activity and sales. How to stimulate customers to log in and purchase products on sales? What benefits are brought to retailers if they register wholesale accounts? How to place different information for the not logged in users, retailers or wholesalers separately on CMS pages and static blocks in Magento 2? The CMS Display Rules extension helps to manage the visibility of pages and blocks for certain customer groups within a particular period of time. Need to ask customers to log in to offer some promotions? The article includes some guidelines about how to make static blocks visible during a certain period of time or how to create a chain of CMS pages dependent on the various conditions. Increase Customers’ Sign UpsThe extension encourages customers to register or log in and builds a customer loyalty to create a good customer base. You can offer your consumers unique information that not logged in users have no access to. For example, visit pages with some Christmas promotions or events. Let’s create a static block and customize it with the following message “Please Login to Take Part in Our Christmas Sales”. Then find tab “Static Block Display Rules” below the editor. The tab contains the set of conditions applied to this static block.
Choose the customer group that will see this particular static block. As our promotion has the time limitation enter the dates in the following input boxes. The last option is used to redirect the rest of customers to the selected static blocks in dropdown. We will use this setting to create the chain of dependent CMS pages later on. Leave the default option “No block, show nothing” and save the block. Now let’s open the Home Page for editing and insert our static block as a widget. Click button “Select block” to add the block from the list. Save the changes.
The following static block will appear on the Home page for all not logged in users on the start date.
Set a Chain of Redirects for Different GroupsIf you need to show different pages or blocks for certain customer groups, you can configure setting “Otherwise, display another Static Block/CMS instead”. Let’s imagine the following situation. You want to show different information for different customers, for example, the request to log in for the “NOT LOGGED IN” users, or information for “Retailers” about how to get started as wholesalers. To set the redirects we will need to create three different CMS pages for three different customer groups: not logged in users, retailers and wholesalers. The schema of redirects will look as follows: CMS Page 1 for Not Logged In -> CMS Page 2 for Retailers -> CMS Page 3 for Wholesalers -> Hide CMS Page. To make the chain work create three different CMS pages without rules’ configuration. 1. After the CMS Page 1 is created write the content for the Not Logged In users in the editor. Then choose the customer group from the list and select "CMS Page 2 for Retailers" in dropdown “Otherwise, display another CMS instead”. Now your retailers won’t see the message about registration or logging in, as other information will be available for them.
2. Then go to “CMS Page 2 for Retailers” and customize your message for them. Scroll the page down to “Page Display Rules” and choose “Retailers” in the user groups’ list. Select “CMS Page 3 for Wholesalers” in the last setting. Your wholesale customers will see the page created for them.
3. Finally open “CMS Page 3 for Wholesalers”, add your information, events or news and then select “Wholesale” from the list in “Page Display Rules”. Let’s finish this chain of redirects by choosing “No Page, show nothing” in “Otherwise, display another CMS instead”.
|