title: Magento Bundle - Get attribute of option
body: <p>In select.phtml under /template/bundle/catalog/product/view/options/type/bundle/option/select.phtml it has the function for creating options for the select drop downs for bundled products.</p>
  
  <p>The default set up uses <code>echo $this-&gt;getSelectionTitlePrice($_selection, false)</code> for the options under a <code>foreach $_selections as $_selection</code></p>
  
  <p>This produces [PRODUCT OPTION NAME] +[PRICE DIFFERENCE]</p>
  
  <p>I'm bundling clothing and I want to change this to be the size attribute of that option ('pos_sizes') because the product name doesn't have the size in it and the size attribute is the only difference and there won't be a price difference. So I'm pretty much wanting to change the options to just the drop down options to the [POS_SIZES] attribute.</p>
  
  <p>I've tried a number of methods including variations of</p>
  
  <pre><code>$_option-&gt;getAttributeText('pos_sizes')
  
  $attribute=Mage::getModel('catalog/product')-&gt;getResource()-&gt;getAttribute("pos_sizes")
  </code></pre>
  
  <p>But can't get the attribute of the option to show up.</p>
  
  <p>The available variables at the top of select.phtml are</p>
  
  <pre><code>&lt;?php $_option      = $this-&gt;getOption(); ?&gt;
  &lt;?php $_selections  = $_option-&gt;getSelections(); ?&gt;
  &lt;?php $_default     = $_option-&gt;getDefaultSelection(); ?&gt;
  &lt;?php list($_defaultQty, $_canChangeQty) = $this-&gt;_getDefaultValues(); ?&gt;
  </code></pre>