Page 1 of 1

LISE : Get Category Name of Item

Posted: Wed Oct 26, 2016 12:25 am
by Squire4Hire
Can someone please help me understand how to capture the Category Name of an item in LISE instead of the Category Index number?

Re: LISE : Get Category Name of Item

Posted: Wed Oct 26, 2016 9:27 pm
by Jo Morg
As per LISE help:

Code: Select all

{LISELoader item='category' identifier='category_id' instance='LISEInstance' value=$id assign='current_category_obj'}
{$current_category_obj|print_r:1} 
Where $id would be the id variable of the category and print_r will give you a clue of what are the properties of the object available to be used by Smarty.
Note: LISE does not give you the "Category Index number"... it will give you an unique id instead.