Вставить товар на страницу (блога, сайта)

Для темы Shopping

{if $wa->shop}
{$products = $wa->shop->productSet("promo")}
<ul class="thumbs li200px product-thumbs">
{foreach $products as $p}
    {include file="`$wa->shop->themePath('shopping')`thumbs.html"}
{/foreach}
</ul>
{/if}


Для темы Classic

<p>{if $wa->shop}
{$products = $wa->shop->productSet("promo")}
{include file="`$wa->shop->themePath('classic')`list-thumbs.html"}
{/if}
</p>

Смотрите также: