Files
kupshop/web/common/templates/product/product.template.tpl
2025-08-02 16:30:27 +02:00

23 lines
726 B
Smarty

{function printTemplateCategory}
{if $product_templates[$category]}
{$category = $product_templates[$category]}
{block "render-template-category"}
<div class="product-template" id="product-template-{$category.id}">
<div>
{foreach $category.values as $template}
{$template.text|inline_edit nofilter}
{/foreach}
</div>
</div>
{/block}
{/if}
{/function}
{if isset($position) and $product_templates[$position]}
{foreach $product_templates[$position] as $category => $_}
{printTemplateCategory category=$category}
{/foreach}
{elseif !isset($position)}
{printTemplateCategory category=$category}
{/if}