{strip} {foreach $products as $p}
get("view") == 'favorite'}data-type="favorite"{/if} itemscope itemtype ="http://schema.org/Product">
1}data-url="{$p.frontend_url}{if strpos($p.frontend_url, '?')}&{else}?{/if}cart=1"{/if} method="post" action="{$wa->getUrl('/frontendCart/add')}">
{$rating = $wa->shop->ratingHtml($p.rating, 16)} {if $rating} {$rating} {else} {/if} ({$p.rating_count})
{if $wa->shop->settings('ignore_stock_count') || $p.count === null || $p.count > 0} {if $p.count < 1 && $p.count !== null} [`Под заказ`] {else} [`In stock`] {/if} {else} [`Out of stock`] {/if}
{$product = $wa->shop->product($p)} {$sku = $product.skus[$product.sku_id]} {if $sku.sku}
[`Code`]: {$sku.sku|escape}
{/if}
{$badge_html = $wa->shop->badgeHtml($p.badge)}{if $badge_html}
{$badge_html}
{/if}{$p.name}
{if $p.compare_price > 0}{shop_currency($p.compare_price)}{/if} {shop_currency($p.price)} {if $p.compare_price > 0} {$percent = 100-($p.price/$p.compare_price)*100}-{$percent|round:0}% {/if}
{if $wa->shop->settings('ignore_stock_count') || $p.count === null || $p.count > 0}
{else}
{/if}
{/foreach} {/strip}