cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying block to a group

SOLVED

Displaying block to a group

Is there a way for magento to display specific static block only to specific group?

For example show one banner for Retail users, and another one for Not logged in users.

 

Using Magento CE 2.2.5

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Displaying block to a group

Hello @ivan_golubovic

 

This is not Magento native feature, you have to do these customizations. 

Manish Mittal
https://www.manishmittal.com/

View solution in original post

4 REPLIES 4

Re: Displaying block to a group

Hello @ivan_golubovic

 

You can create a configuration in admin panel as attached screenshot:

 

Magento 2 CMS Pages for Customer Groups   Static Block Visibility in Magento 2   ITORIS.png 

Based on that you can call block where ever you want according to the customer group. 

Manish Mittal
https://www.manishmittal.com/

Re: Displaying block to a group

Where did you find that option? In block settings there is no such option. 

http://prntscr.com/kvsbu7

Re: Displaying block to a group

Hello @ivan_golubovic

 

This is not Magento native feature, you have to do these customizations. 

Manish Mittal
https://www.manishmittal.com/

Re: Displaying block to a group

@ivan_golubovicMagento does not come with out of the box solution you are looking for. This is what @Manish Mittal is trying to explain you. If you want to show different banner before and after you can use "Customer Group" to manage the same. However, you would have to extend the banner manager extension you may be using. Similarly same check/customization is needed in case you want to show different blocks.

 

It is upto you how you want to handle is. You can directly put checks in your code or you can provide the configuration in the Magento admin which is better approach and can be managed by non-techninal use as well. There used to be an extension for Magento1 not sure if same is available for Magento 2. You can look for a solution in Magento marketplace as well to achieve what you are looking for.

 

Problem solved? Please give 'Kudos' and accept 'Answer as Solution'.

 

 

- Tarandeep
Problem solved?Please give 'Kudos' and accept 'Answer as Solution'.