Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Add after <code>$_product = $this-&gt;getProduct();</code></p> <pre><code>/* CODE TO GET ATTRIBUTES */ $gridattributes = array(); $attributes = $_product-&gt;getAttributes(); foreach ($attributes as $attribute) { if ($attribute-&gt;getIsVisibleOnFront() &amp;&amp; !in_array($attribute-&gt;getAttributeCode(), $excludeAttr)) { $value = $attribute-&gt;getFrontend()-&gt;getValue($_product); if (!$_product-&gt;hasData($attribute-&gt;getAttributeCode())) { $value = Mage::helper('catalog')-&gt;__('N/A'); } elseif ((string)$value == '') { $value = Mage::helper('catalog')-&gt;__('No'); } elseif ($attribute-&gt;getFrontendInput() == 'price' &amp;&amp; is_string($value)) { $value = Mage::app()-&gt;getStore()-&gt;convertPrice($value, true); } if (is_string($value) &amp;&amp; strlen($value)) { $gridattributes[$attribute-&gt;getAttributeCode()] = array( 'label' =&gt; $attribute-&gt;getStoreLabel(), 'value' =&gt; $value, 'code' =&gt; $attribute-&gt;getAttributeCode() ); } } } ?&gt; </code></pre> <p>Add after <code>&lt;th&gt;&lt;?php echo $this-&gt;__('Product Name') ?&gt;&lt;/th&gt;</code>:</p> <pre><code>foreach($gridattributes as $attrib){ echo '&lt;th&gt;'.$this-&gt;htmlEscape($attrib[label]).'&lt;/th&gt;'; } </code></pre> <p>Add after <code>&lt;td&gt;&lt;?php echo $this-&gt;htmlEscape($_item-&gt;getName()) ?&gt;&lt;/td&gt;</code>:</p> <pre><code>foreach($gridattributes as $attribname=&gt;$attribval){ echo '&lt;td&gt;'.$this-&gt;htmlEscape($_item-&gt;getData($attribname)).'&lt;/td&gt;'; } </code></pre>
 

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