Skip to content

Instantly share code, notes, and snippets.

View hesselberg's full-sized avatar

Lars Hesselberg hesselberg

View GitHub Profile
@hesselberg
hesselberg / _getchildcategory.html
Last active January 16, 2017 22:41
Shoporama recursive categories
<button>›</button>
<ul>
<{foreach from=$childcategories item="childcategory"}>
<{if $childcategory->getInMenu()}>
<li>
<a href="<{$childcategory->getUrl()|escape}>"><{$childcategory->getName()|escape}></a>
<{if $childcategory->getChildren()}>
<{include file="_getchildcategory.html" childcategories=$childcategory->getChildren()}>
<{/if}>
</li>