Reputation:
I want to remove product from wishlist in product listing page(default/template/wishlist/item/column/image.php).
I have seen the remove url function in wishlist page $this->getItemRemoveUrl($item)
. but it doesn’t work in image.php.
Even i tried,
echo Mage::helper(‘wishlist’)->getRemoveUrl($_product)
it gives URL but not showing parameters.
eg:-
domain.com/wishlist/index/remove (not working)
domain.com/wishlist/index/remove/item/3 (actual)
So how can i solve this
Upvotes: 3
Views: 2264
Reputation: 77
this function should work for you
Mage::helper('wishlist')->getRemoveUrl($_product)
Upvotes: 4
Reputation: 539
Please compare your xml file with the magento default xml file
May be there is any function
missing or commented
Also there is another possibility or error
in
helper('wishlist')->getRemoveUrl($_product)
may be $_product
contains additional white spaces or symbols
please check it
Upvotes: 3
Reputation: 1963
Using the getModel
you can delete the wishlist product
as below
Mage::getModel('wishlist/item')->load($id)->delete();
Upvotes: 1