I'm creating an Ajax Handler where one of the methods is removing an item from the wishlist.
I know how to add a product to the wishlist:
$wishlist = Mage::getSingleton('wishlist/wishlist')->loadByCustomer(Mage::getSingleton('customer/session')->getCustomer());
if ($wishlist->addNewItem($product)) {
$wishlist->save();
$result['result']=true;
$result['count']=$wishlist->getItemsCount();
}
I just can't find the functionality relating to removing the item from the wishlist.
Any help appreciated!