Page 1 of 1

how to get cPath String from categories_id (without query db)

Posted: Tue Oct 05, 2021 6:41 am
by loop
Hi All
i want to have the complete cPath from the categories_id and i'm wondering if that's possible, without use function tep_get_path($current_category_id = '')

I need a solution to use in productlisting, to have a link back to the according category and i do not want to query for every link the DB (that would create to much DB traffic)

thank you in advance!

Re: how to get cPath String from categories_id (without query db)

Posted: Tue Oct 05, 2021 7:14 am
by ecartz

Code: Select all

$category_tree->find_path($category_id)

Re: how to get cPath String from categories_id (without query db)

Posted: Tue Oct 05, 2021 7:33 am
by loop
Perfect, thank you!