PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, October 26, 2022

[FIXED] How to get Category Description in prestashop template

 October 26, 2022     php, prestashop, prestashop-1.7, smarty     No comments   

Issue

I want to show a category description in my products list page (in the filters part). But I only have the name and id of the category and can't find a method in the category class that also gives me the description.

Can you help me? :)


Solution

I was able to get the category information with this method:

{assign var='cat' value=Category::getNestedCategories($categoryId)}
{$cat[categoryId].description nofilter}

Thank you for your help.



Answered By - patricia
Answer Checked By - Cary Denson (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing