title: get quote's product attribute
body: <p>Hi I'm trying to get a product attribute admin value or id (since it's multilanguage) from the cart items. I've tried many versions of code like this one:</p>
  
  <pre><code>    $session = Mage::getSingleton('checkout/session');
      foreach ($session-&gt;getQuote()-&gt;getAllItems() as $item) {
          $_product = Mage::getModel('catalog/product')-&gt;load($item-&gt;getId());
          $attribute = $_product-&gt;getAttribute('producttype');
      }
  </code></pre>
  
  <p>But I only ever get false or null. Also how can I be sure to not get the store specific language value, but the attributes admin value/id? Maybe there's an even better way to read out the item attributes directly from the quote items without having to load the product first? Thanks in advance!</p>
  
  <hr>
  
  <p>Solved with:</p>
  
  <pre><code>    $session = Mage::getSingleton('checkout/session');
      foreach ($session-&gt;getQuote()-&gt;getAllVisibleItems() as $_item)
      {
          $_product = Mage::getModel('catalog/product')-&gt;load($_item-&gt;getProductId());
          $attributeId = $_product-&gt;getProducttype();
      }
  </code></pre>
  
  <p>and comparing by value ID instead of text.</p>