SRCDS Steam group


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Product categories in the product Description (or Product Details)
#1
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.
Reply
#2
I ran into something similar a while back and found that, at least for my case, using the "level" of the category helped a bit. If you're working with SilkPLM, you might want to check if they offer any other methods to retrieve hierarchical data. Sometimes the category structure is stored in a more nested format, and it can be easier to extract that if you loop through the categories instead of just filtering by ID. I know it's a bit of a hassle, but try checking out their documentation on this at https://silkplm.com/product-description-generator/ —they might have some more info hidden in there that could help.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)