if we click on "add to wish list" button, it’s displaying the "WISHLIST" page.
I don’t want to display the wishlist page. instead of that, I want to be on the same page. but the item should
"add to wishlist".
please help me to find a solution.
if we click on "add to wish list" button, it’s displaying the "WISHLIST" page.
I don’t want to display the wishlist page. instead of that, I want to be on the same page. but the item should
"add to wishlist".
please help me to find a solution.
2
Answers
You should customize the process of Magento add to the wishlist.
Magento using
dataPost.js
for posting form of wishlist.You can change to use ajax to achieve it.
You can override the Add Controller of Wishlist Module and change the redirect URL to current URL :
Create a Module for example Wishlist/Example
etc/di.xml
Under Controller/Index/Add.php file :
Here in the Controller all we change is
By