Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function removeWishList($customer_id,$product_id)
- {
- $itemCollection = Mage::getModel('wishlist/item')->getCollection()
- ->addCustomerIdFilter($customer_id);
- foreach($itemCollection as $item) {
- $item->delete();
- //Mage::getModel('wishlist/item')->load($product_id)->delete();
- }
- }
- Mage::getModel('wishlist/item')->load($id)->delete();
- **$itemCollection = Mage::getModel('wishlist/item')->getCollection()
- ->addCustomerIdFilter($customerId);
- foreach($itemCollection as $item) {
- if($item->getProduct()->getId() == $productId){
- $item->delete();
- }
- }**
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement