Hello all,
I'm currently using K2Store, and on the table list of the products summary, I want to have a column that shows the item's category.
So after a few reluctant searches of how to call the category into this view, I found the following:
<?php
$parent = JTable::getInstance('K2Category', 'Table');
$parent->load($item->category->parent);
echo $parent->name;
?>
However this gives an undefined property error of category.
How can I call in an items category to anyview when using K2? I thought this being the K2Store, that it would automatically be able to read and call any K2 data anyway, obviously not!