I need to change add to cart success message after adding product into cart through plugin.
Currently i have used below code for override cart method and its working fine.
<preference for="Magento\Checkout\Controller\Cart\Add" type="CustomPackage\Checkout\Controller\Magento\Checkout\Cart\Add" />
but i need to go through plugin so how can i do that ?
I seen some documentation and in
plugin its used
so i don't understand that how my code execute without use Add method ? and how can i edit success message ?
I need to below message :
any idea please share.