title: magento get bundled product dropdowns
body: <p>I have associated a bundle product sku with simple product.</p>
  
  <p>Now I am trying to fetch bundled product options. </p>
  
  <pre><code>$selectionCollection = $bundled_product-&gt;getTypeInstance(true)-&gt;getSelectionsCollection(
        $bundled_product-&gt;getTypeInstance(true)-&gt;getOptionsIds($bundled_product), $bundled_product 
  </code></pre>
  
  <p>I have used the above code but it returns me all simple product under bundled. 
  But i want the array of options.
  From options i want array of selections so that i can iterate and create dropdown for every bundled option</p>
  
  <p>I looked into the core select.phtml</p>
  
  <pre><code>&lt;select onchange="bundle.changeSelection(this)" id="bundle-option-&lt;?php echo $_option-&gt;getId() ?&gt;" name="bundle_option[&lt;?php echo $_option-&gt;getId() ?&gt;]" class="bundle-option-&lt;?php echo $_option-&gt;getId() ?&gt;&lt;?php if ($_option-&gt;getRequired()) echo ' required-entry' ?&gt; bundle-option-select change-container-classname"&gt;
  
                  &lt;option value=""&gt;&lt;?php echo $this-&gt;__('Choose a option') ?&gt;&lt;/option&gt;
              &lt;?php foreach ($_selections as $_selection): ?&gt;
                  &lt;option value="&lt;?php echo $_selection-&gt;getSelectionId() ?&gt;"&lt;?php if ($this-&gt;_isSelected($_selection)) echo ' selected="selected"' ?&gt;&lt;?php if (!$_selection-&gt;isSaleable()) echo ' disabled="disabled"' ?&gt;&gt;&lt;?php echo $this-&gt;getSelectionTitlePrice($_selection, false) ?&gt;&lt;/option&gt;
              &lt;?php endforeach; ?&gt;
              &lt;/select&gt;
  </code></pre>
  
  <p>I want to replicate similar thing on view.phtml. However i am not able access those methods.
  Does anyone has idea how do i do that.</p>