cancel
Showing results for 
Search instead for 
Did you mean: 

On homepage, how to display a message based on the customer group ?

SOLVED

On homepage, how to display a message based on the customer group ?

For example, with Catalog price rule :

 

IF customer_group=Family THEN display "Your discount is 20%" END IF

IF customer_group=Friends THEN display "Your discount is 10%" END IF

2 ACCEPTED SOLUTIONS

Accepted Solutions

Re: On homepage, how to display a message based on the customer group ?

Hi @thomas_rolland 

 

You can override the file where you want to show the custom message.

 

You can get the customer group using https://magento.stackexchange.com/questions/172617/how-to-get-current-customer-group-id-in-magento2

 

On the basis of this group id you can use the above conditions.

 

Thanks

---
If you've found my answer useful, please give"Kudos" and "Accept as Solution".

View solution in original post

Re: On homepage, how to display a message based on the customer group ?

Hello @thomas_rolland 

 

I found one ready extension which you can customize a bit to achieve the functionality you are looking for,

https://www.fmeextensions.com/magento-2-custom-message-display-on-cart-checkout-success-page.html

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

View solution in original post

3 REPLIES 3

Re: On homepage, how to display a message based on the customer group ?

Hi @thomas_rolland 

 

You can override the file where you want to show the custom message.

 

You can get the customer group using https://magento.stackexchange.com/questions/172617/how-to-get-current-customer-group-id-in-magento2

 

On the basis of this group id you can use the above conditions.

 

Thanks

---
If you've found my answer useful, please give"Kudos" and "Accept as Solution".

Re: On homepage, how to display a message based on the customer group ?

Hello @thomas_rolland 

 

I found one ready extension which you can customize a bit to achieve the functionality you are looking for,

https://www.fmeextensions.com/magento-2-custom-message-display-on-cart-checkout-success-page.html

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

Re: On homepage, how to display a message based on the customer group ?

hi @Rahul Gupta Thanks for your answer.

 

hi @theMageComp Thanks you, I just bought the module. It corresponds with what I wish.

 

Screenshot_2019-11-26 Panier.png