I found the following code for adding an item to a wishlist with configuration
$wishlist = Mage::getModel('wishlist/wishlist')->loadByCustomer($customerId, true); $product = Mage::getModel('catalog/product')->load($productId); //NOTE! I'm not sure this array format is correct so that may be the problem $buyRequest = new Varien_Object(array('color'=>'blue','size'=>'large')); // any possible options that are configurable and you want to save with the product $result = $wishlist->addNewItem($product, $buyRequest); $wishlist->save();
The add to wishlist works successfully, except that either a) the color and size configuration are not stored anywhere, b) they're stored somewhere I don't know or c) they're not correct in syntax. Can someone please narrow this down and clarify?