On the same page I have a Category dropdown.
I want to display the details of the chosen Category on the page each time a different Category is selected.
I'm using this code to get the Category ID from the URL. Then 'products_getcategory' smarty plugin pulls in the Category details.
Code: Select all
{if !empty($smarty.get.catid)}
<a class="list-group-item active bg-yellow" href="#">
{products_getcategory categoryid=$smarty.get.catid assign='caty'}
<span class="catyname">{$caty->name}</span> is sponsored by {$caty->fields.sponsored.field_value}
</a>
{/if}They are also missing when I use {$caty|print_r}.
I'm sure I'm missing something. If you've got this to work please let me know how.
Thanks
Simon66



