Note that there are some explanatory texts on larger screens.

plurals
  1. POAll Addtional Attributes for Grouped Products in Magento
    primarykey
    data
    text
    <p>Similar to the question asked at: <a href="https://stackoverflow.com/questions/1005394/magento-show-custom-attributes-in-grouped-product-table">Magento - Show Custom Attributes in Grouped Product table</a></p> <p>I'd like to display attributes of simple products in the grouped product page.</p> <p>However, I need it to work such that you do not explicitly specify which attributes get displayed. Instead, it displays all the attributes that would get displayed on the simple product view of that product.</p> <p>I've tried variations of:</p> <p>(from /template/catalog/product/view/type/grouped.phtml)</p> <pre><code>&lt;?php foreach ($_associatedProducts as $_item): ?&gt; &lt;tr&gt; &lt;td&gt;&lt;?php echo $this-&gt;htmlEscape($_item-&gt;getName()) ?&gt;&lt;/td&gt; &lt;!-- important problem part --&gt; &lt;?php foreach ($_item-&gt;getAttributes() as $arr): ?&gt; &lt;td&gt;&lt;?php echo $arr-&gt;getData() ?&gt;&lt;/td&gt; &lt;?php endforeach; ?&gt; &lt;!-- end of problem part --&gt; &lt;td class="a-right"&gt; &lt;?php echo $this-&gt;getPriceHtml($_item, true) ?&gt; &lt;/td&gt; &lt;?php if ($_product-&gt;isSaleable()): ?&gt; &lt;td class="a-center"&gt; &lt;?php if ($_item-&gt;isSaleable()) : ?&gt; &lt;a href="&lt;?php echo $_item-&gt;getUrlPath() ?&gt;"&gt;View&lt;/a&gt; &lt;?php else: ?&gt; &lt;p class="availability"&gt;&lt;span class="out-of-stock"&gt;&lt;?php echo $this-&gt;__('Out of stock.') ?&gt;&lt;/span&gt;&lt;/p&gt; &lt;?php endif; ?&gt; &lt;/td&gt; &lt;?php endif; ?&gt; &lt;/tr&gt; &lt;?php endforeach; ?&gt; </code></pre> <p>And other variations, however, I cannot limit the attributes being displayed to just the ones I need (i.e. just the additional attributes displayed on the simple product view; those set as Viewable on Frontend). Any ideas?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload