0

I want to place a static block in between the product list of the category 'shoes' (ID 20).

The static block is a simple banner for test: enter image description here

I want it in the second row, after the first two products of this row: enter image description here

I have already tried to use the display mode setting for the category in the backend: enter image description here

But when I do this, the static block is displayed above the grid, not inside.

1

you can write below code in your list.phtml file

<?php echo  $this->getLayout()->createBlock('catalog/category_view')->getCmsBlockHtml(); ?>

Try and let me know if its not working

  • It works, and very well. Also I am wondering, is there also another way to do this? Without using the list.phtml file? Just curious – Maarten Wolfsen Sep 6 '16 at 9:46
  • You can use this code any where just Need to set extra method after this code->setCategory($category_object); – Murtuza Zabuawala Sep 6 '16 at 9:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.