{{assign var=ColectionID value=130}}
{{getCollectionByCategory CollectionID=$ColectionID OrderColumn='ID' var=Categories ColumnID=6 Value='on'}}
{{assign var=ColectionPrefix value='Collection_'}}
{{assign var=ColectionPrefix value=$ColectionPrefix|concat:$ColectionID|concat:'_'}}
{{assign var=CategoryID 		value=$ColectionPrefix|concat:'ID'}}
{{assign var=CategoryAbbrev		value=$ColectionPrefix|concat:'5'}}
{{assign var=CategoryName 		value=$ColectionPrefix|concat:'1'}}
{{assign var=CategoryImage1 	value=$ColectionPrefix|concat:'2'}}
{{assign var=CategoryImage2 	value=$ColectionPrefix|concat:'3'}}
{{assign var=CategoryDesc    	value=$ColectionPrefix|concat:'4'}}
<h5>Product Categories</h5>
<ul>
{{foreach from=$Categories item=v key=k}}
{{assign var=canAccess value=0}}{{if $smarty.session.UserID gt 0}}
{{CollectionCanAccess userId=$smarty.session.UserID CollectionId=130 rowId=$v.$CategoryID var=canAccess}}{{/if}}
<li><a href="/store/{{$v.$CategoryAbbrev}}.html" {{if $canAccess eq true}}collectionid="130" collectionrowid="{{$v.$CategoryID}}" collectionrowname="{{$v.$CategoryName|addslashes}}"{{/if}}>{{$v.$CategoryName}}</a></li>
{{/foreach}}
</ul>