01-16-2025, 07:36 PM
Hello, I'm trying to write a code in the template to reach a specific goal: I need the list of the product's categories, but I need to "filter" them somehow.
What I need is to view just some of them, specifically the ones that are direct subfolders of Category ID 59. I just managed to have a list of all of them, filtering them just by ID (it will not work, the ID's are mixed so I can't use a simple < or > method). I couldn't find any variable that contains useful info's such as the parent category, the depth level... Just ID, Name, nothing useful for my goal.
Can someone help me? I'm running Prestashop 1.7.8.8, Themevolty theme. I'm not posting the code I tried because I think it's a dead end, it's better to start from scratch but if you think it will be useful I'll post it right away.
Thank you in advance.
What I need is to view just some of them, specifically the ones that are direct subfolders of Category ID 59. I just managed to have a list of all of them, filtering them just by ID (it will not work, the ID's are mixed so I can't use a simple < or > method). I couldn't find any variable that contains useful info's such as the parent category, the depth level... Just ID, Name, nothing useful for my goal.
Can someone help me? I'm running Prestashop 1.7.8.8, Themevolty theme. I'm not posting the code I tried because I think it's a dead end, it's better to start from scratch but if you think it will be useful I'll post it right away.
Thank you in advance.