klemonnier Posted May 11, 2017 Share Posted May 11, 2017 Hello Prestashop Friends, I want to create a list of product categories in the header of my website (for all layouts and pages) and I don't want to use a module. My module categorytree is already used. I started a code but I have 2 problems.First one, this code works only on product page. I can't see the menu in other pages. Second one, I don't know how to get the URL. I tried $category.url or $category.link_rewrite and it s not working. <ul> {foreach from=$categories item="category"} <li><a href="">{$category.name}</a></li> {/foreach} </ul> I hope someone can help me. I'm in Prestashop 1.7.1.1. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now