Jump to content

Add ’Categories’ block to regular CMS Page


Recommended Posts


I have a CMS page on my PrestaShop website.
I'd like this page to include the HTML that is generated in the 'Categories' block.

So it would be the exact same code, but I would style it differently.

In my /themes/prestashop/cms.tpl (LINE 43), I tried:

       {if $cms->id == 6}

{l s='Categories' mod='blockcategories'}

           {foreach from=$blockCategTree.children item=child name=blockCategTree}
               {if $smarty.foreach.blockCategTree.last}
                   {include file="$branche_tpl_path" node=$child last='true'}
                   {include file="$branche_tpl_path" node=$child}


But this doesn't show my categories, only gives me the heading 'CATEGORIES'.

How do I do this?

Many thanks

Share this post

Link to post
Share on other sites

  • 2 months later...

The problem is that you call category block inside cms.tpl. But that tpl has no reference to categories.
Hope I'm not wrong but you should add some code to cms controler to have the categories to call inside tpl.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More