proconcept Posted January 14, 2019 Share Posted January 14, 2019 Hello everyone, I am trying to display a list of subcategories in product.tpl (prestashop 1.7) but the function getProductCategoriesFull returns all categories any ideas on how to filter the depth of subcategories to display ?? For my case I want to display only 3rd level categories in that list. Thanks in advance ! <label class="label">{l s='Compatible Printer Models :' d='Shop.Theme.Catalog'} </label> <ul class="productcats"> {foreach from=Product::getProductCategoriesFull(Tools::getValue('id_product')) item=cat name=cats} <li class="billakos"><a href="{$link->getCategoryLink({$cat.id_category})}" title="{$cat.name}">{$cat.name}</a></li> {/foreach} 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