Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $wishlist = Mage::getModel('wishlist/wishlist')->loadByCustomer('67', true);
- $product = Mage::getModel('catalog/product')->load('214');
- $buyRequest = new Varien_Object(array());
- $result = $wishlist->addNewItem($product, $buyRequest);
- $wishlist->save();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement