Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>If you want to do it by yourself, you can implement an observer, check which filters are applied in the layered navigation and add your block to the <code>content</code> block.</p> <p>Your block then implements whatever logic you want to show the different informations for the manufacturer.</p> <p>I would try <code>controller_action_layout_generate_blocks_after</code>, <code>controller_action_layout_render_before</code> or <code>controller_action_layout_render_before_'.$this-&gt;getFullActionName()</code> whatever the FullActionName for the layered category is :-)</p> <p>About Observers you can find things at inchoos: <a href="http://inchoo.net/category/ecommerce/magento/events-observers/" rel="nofollow noreferrer">http://inchoo.net/category/ecommerce/magento/events-observers/</a></p> <p>To get the information wether a manufactuerer is choosen, I think there are two ways:</p> <ol> <li>get the information from the get <code>Mage::app()-&gt;getRequest()-&gt;getParam()</code> should work</li> <li>get the layout, then <code>$layout-&gt;getBlock('catalog.leftnav')</code> and pull the information somehow out of the block</li> </ol> <p>afterwards you can add your block.</p> <p>After reading this: <a href="https://stackoverflow.com/questions/11577155/magento-add-content-block-at-the-end-of-the-structual-block-content">Magento: Add content block at the end of the structual block &quot;content&quot;</a></p> <p>I would suggest to introduce your own update handle (because I don't know, how to prepend blocks to the beginning of <code>content</code>). with your own handle, you can use <code>before="-"</code> </p> <p>And as described here: <a href="http://www.classyllama.com/magento/add-custom-layout-handles-e-g-parent-categories" rel="nofollow noreferrer">http://www.classyllama.com/magento/add-custom-layout-handles-e-g-parent-categories</a></p> <p>you can add your handle via <code>$layout-&gt;getUpdate()-&gt;addHandle('manufacturer_informations');</code></p> <p>I would try something like this in the observer:</p> <pre><code>if($category = Mage::registry('current_category')) { if($category-&gt;getName() == 'MyBrand') { // ot maybe $category-&gt;getId() == ... //instantiate some $block } $layout-&gt;getBlock('content')-&gt;insert($block, 'brand-information'); } </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