cancel
Showing results for 
Search instead for 
Did you mean: 

Change empty category static block

SOLVED

Change empty category static block

Hello,

I have this template on a Magento 1.9.2.4 installation:

http://www.templatemonster.com/free-magento-1-9-template.html#gref

And when the user reaches the main page of an empty category, there's a default CMS that has this message:

"This is a custom CMS block displayed if category is empty.
You can replace it with any custom content."

I want to change it, but the problem is that the static block doesn't show in the Admin Panel. Where can I change this page?

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Change empty category static block

Hi,

 

You can find this under file -

app/design/frontend/default/themename/template/catalog/product/list.phtml

 

This is just a plain message which you can customize or can call a static block instead. 

 

You can call static block inside phtml file as follows -

 

 <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('cms_empty_category_block')->toHtml(); ?>

 

cms_empty_category_block - is the block id that can be used

View solution in original post

2 REPLIES 2

Re: Change empty category static block

Hi,

 

You can find this under file -

app/design/frontend/default/themename/template/catalog/product/list.phtml

 

This is just a plain message which you can customize or can call a static block instead. 

 

You can call static block inside phtml file as follows -

 

 <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('cms_empty_category_block')->toHtml(); ?>

 

cms_empty_category_block - is the block id that can be used

Re: Change empty category static block

Thank you, it worked!