title: Magento Multiple Wishlist creation programmatically
body: <p>I know how to add products to a customer's wishlist programmatically however it only adds to one wishlist. I have the multiple wishlist option set to enabled however I do not know how to create a new wishlist instead of merging products into the existing wishlist.</p>
  
  <pre><code>public function submitQuote(Mage_Adminhtml_Model_Session_Quote $quote)
  {
      $currentQuote = $quote-&gt;getQuote();
  
      $customer = $currentQuote-&gt;getCustomer();
  
      $items = $currentQuote-&gt;getAllVisibleItems();
  
      //$wishlist = Mage::helper('wishlist')-&gt;getWishlist();
      //Mage::register('wishlist', $wishlist);
      $wishlist = Mage::getModel('wishlist/wishlist');
      $curretDate = date('m/d/Y', time());
      $wishlist-&gt;setCustomerId($customer-&gt;getId());
      $wishlist-&gt;setName('Quote ' . $curretDate)
      -&gt;setVisibility(false)
      -&gt;generateSharingCode()
      -&gt;save();
  
      foreach ($items as $item)
      {
          $productId = $item-&gt;getProductId();
          $product = Mage::getModel('catalog/product')-&gt;load($productId);
          $buyRequest = $item-&gt;getBuyRequest();
  
          $result = $wishlist-&gt;addNewItem($product, $buyRequest);
          if(is_string($result))
          {
              Mage::throwException($result);
          }
          $wishlist-&gt;save();
      }       
  
      //Mage::unregister('wishlist');
  }
  </code></pre>