When clicking on the add to wishlist
button, I want to remain on the same page & perform the add function without redirecting to the wishlist page – is this possible?
Magento1.9 – Add to Wishlist Without Redirecting to Wishlist Page
magento-1.9redirectwishlist
Best Answer
You need to rewrite the method
_addItemToWishList
from the controllerMage_Wishlist_IndexController
and replace the last line.Instead of
You have to put:
[EDIT].
Here is an example on how you can rewrite a controller.
You need to rewrite (like I said)
Mage_Wishlist_IndexController
. The controller is found inapp/code/core/Mage/Wishlist/controllers/IndexController.php
.