title: Magento programmatically creating a sales/quote_address object
body: <p>I am having an issue with creating and adding sales/quote_address objects to the multishipping checkout process.  Currently, whenever I create a new address object, it is just reusing the exact same object over and over; Thus, when I add items to one address, it will add them to all addresses.  As a check, I put a for loop after my main loop to echo out all of the ID's of the created addresses - it always echos out the number 3.  When i try to dynamically change the ID of the newly created addresses(commented out section) they won't even show up at all in the final for loop. My code is as follows:</p>
  
  <pre><code>//dynamically create the addresses and add them to the shipping information screen
  $idCounter = 1;
  foreach($dropshippersCombineWProducts as $dropshippersWCProducts) {
      $newAddress = null;
      $newAddress = Mage::getSingleton('sales/quote_address')-&gt;importCustomerAddress($customAddress);
  
      //$idCounter++;
      //$newAddress-&gt;setId($idCounter);
  
      foreach ($newAddress-&gt;getItemsCollection() as $item) {
          $item-&gt;isDeleted(true);
      }
  
      foreach ($dropshippersWCProducts[1] as $_item) { 
          $newAddress-&gt;addItem($_item);
      }
  
      $quote-&gt;setShippingAddress($newAddress);
  
      $newAddress-&gt;collectShippingRates();
  }
  
  $addresses = $quote-&gt;getAllShippingAddresses();
  foreach ($addresses as $address) {
      echo $address-&gt;getId();
  }
  </code></pre>
  
  <p>Any help would be much appreciated.</p>