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
Solved! Go to Solution.
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".
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
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".
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
hi @Rahul Gupta Thanks for your answer.
hi @theMageComp Thanks you, I just bought the module. It corresponds with what I wish.