{strip} {$features = $wa->shop->features($products)} {$favorite_p = waRequest::cookie("shop_favorite", '', waRequest::TYPE_STRING)} {assign var=favorite_p_split value=","|explode:$favorite_p} {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')}">
{$badge_html = $wa->shop->badgeHtml($p.badge)} {if $badge_html}
{$badge_html} {if $p.compare_price > 0}
{$percent = 100-($p.price/$p.compare_price)*100}-{$percent|round:0}%
{/if}
{else}
{if $p.compare_price > 0}
{$percent = 100-($p.price/$p.compare_price)*100}-{$percent|round:0}%
{/if}
{/if}
{$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} {if $p.summary}
{if $p.summary}{strip_tags($p.summary)|escape|truncate:300}{else}{strip_tags($p.description)|escape|truncate:300}{/if}
{/if} {if !empty($p.features)} {if !empty($p.features)}
    {foreach $product.features as $f_code => $f_value} {$features[$f_code].name|escape} {if is_array($f_value)} {if $features[$f_code].type == 'color'} {implode(' ', $f_value)} {else} {implode(', ', $f_value)} {/if} {else} {$f_value} {/if} {/foreach}
{/if} {/if}
{if $wa->shop->settings('ignore_stock_count') || $p.count === null || $p.count > 0}
{if $p.compare_price > 0}{shop_currency($p.compare_price)}{/if} {shop_currency($p.price)}
{else}
{if $p.compare_price > 0}{shop_currency($p.compare_price)}{/if} {shop_currency($p.price)}
{/if}
{/foreach} {/strip}