In Magento 2.x, By default, we can set coupon codes from Marketing->Cart Price Rules.
I've added a test code and it's working as expected. When I added the code in cart page (mysite.com/checkout/cart
) ,
I see the success message as follows:-
You used coupon code "TestCode1".
How to change this message to include whatever text I need to put?
Best Answer
You can override File named
CouponPost.php
.To achieve this you can create preference for this.
Hope it will help you. !!