title: Magento import products with custom attributes dropdown input
body: <p>I'm trying to programmatically import my products. Some of them have custom attributes. The attributes are already in magenta. How would I set them? I've tried the following things:</p>
  
  <pre><code>$attribute = Mage::getModel('eav/entity_attribute');
  $attribute-&gt;loadByCode( 1003, 'kleur' );   
  
  $values = array();
  $valuesCollection = Mage::getResourceModel('eav/entity_attribute_option_collection')
  -&gt;setAttributeFilter( $attribute-&gt;getId() )
  -&gt;setStoreFilter( Mage_Core_Model_App::ADMIN_STORE_ID, false)
  -&gt;load();
  
  foreach ($valuesCollection as $item) {
      $values[$item-&gt;getValue()] = $item-&gt;getId();
  }
  
  $simpleProduct-&gt;setData('kleur') = $data[6];
  $simpleProduct-&gt;setkleur($data[6]);
  </code></pre>
  
  <p>But both aren't working. Note the attribute has a dropdown input type.</p>