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?
You need to rewrite the method
_addItemToWishList from the controller
Mage_Wishlist_IndexController and replace the last line.
$this->_redirect('*', array('wishlist_id' => $wishlist->getId()));
You have to put:
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 in
What you're looking for is an Ajax solution. There are many extensions available to implement this for you, here are a few examples:
- VS Ajax- Add To Cart, Add To Wishlist, Add to Compare, Paging, Toolbar,
- AJAX - Add to Cart, Add to Wishlist
Alternately, if you'd like to implement it yourself, here is a guide:
This includes an extensive walkthrough on implementing this feature - as well as the module attached.