1

I created a block to home page, the code is: {{block type="catalog/product_new" column_count="6" products_count="12" name="home.catalog.product.new" alias="product_homepage" template="catalog/product/new.phtml"}}

but the block title not show in the home page, the block title not show in the page

just has a '<h3 class ="section-title padding-right"></h3>' tag. h3

And I found this code in the new.phtml template file:

<h3 class="section-title padding-right"><?php echo $this->getBlockName(); ?></h3>

why? how to display the block title?

asked Oct 16, 2013 at 12:04

1 Answer 1

1

Try it like this:

{{block type="catalog/product_new" column_count="6" products_count="12" name="home.catalog.product.new" alias="product_homepage" template="catalog/product/new.phtml" block_name="New Products"}}

This is not in the default magento theme, but maybe it works.

answered Oct 16, 2013 at 12:08

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.