Display Category Data At Home Page {$Categories|Fn_Print_R}

I want to know how I can pass all categories to home page and display it as a tree

{$categories|fn_print_r}

Currently I have checked using debug in templates categories not there. I want to know how i can do it from backend.

I mean where from i can get the $categories and pass it to home page.

and how to do it please

Try

{$categories = 0|fn_get_categories_tree}
{$categories|fn_print_r}

Try

{$categories = 0|fn_get_categories_tree}
{$categories|fn_print_r}

Hi ecom labs.

Really appriciated it works perfect but I also want to increase my knowledge,

{$categories = 0|fn_get_categories_tree}

in this line i can understand we are passing categories tree to $categories variable but what is this means

 0|

how do i know what i have to put before

|

line

please clarify.

it will be much appriciated if you can give answer with an example from hook base.

Try

{$categories = 0|fn_get_categories_tree}
{$categories|fn_print_r}

Actually I want to get images for all categories and display on home page and user should click to go to that category

Hi ecom labs.

Really appriciated it works perfect but I also want to increase my knowledge,

{$categories = 0|fn_get_categories_tree}

in this line i can understand we are passing categories tree to $categories variable but what is this means

 0|

how do i know what i have to put before

|

line

please clarify.

it will be much appriciated if you can give answer with an example from hook base.

For example, if you want to get tree of specific branch, you should specify category ID instead of 0

ecom labs can you help me to do below?

Actually I want to get images for all categories and display on home page and user should click to go to that category

You can call the fn_get_categories function with the get_images=true parameter, for example