{strip} {$favorite_p = waRequest::cookie("shop_favorite", '', waRequest::TYPE_STRING)} {assign var=favorite_p_split value=","|explode:$favorite_p} {if isset($microsheme)}{$microsheme = false}{else}{$microsheme = true}{/if} {foreach $products as $p}
get("view") == 'favorite'}data-type="favorite"{/if} {if $microsheme}itemscope itemtype ="http://schema.org/Product"{/if}>
1}data-url="{$p.frontend_url}{if strpos($p.frontend_url, '?')}&{else}?{/if}cart=1"{/if} method="post" action="{$wa->getUrl('shop/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}
{if !$wa->isMobile()} {if $microsheme}{/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}
{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)} {if $microsheme} {/if}
{if $microsheme} {/if}
{else}
{if $p.compare_price > 0}{shop_currency($p.compare_price)}{/if} {shop_currency($p.price)} {if $microsheme} {/if}
{if $microsheme} {/if}
{/if}
{if method_exists(shopStorequickorderPlugin, 'product_button') && $wa_app == "shop"} {if $wa->shop->settings('ignore_stock_count') || $p.count === null || $p.count > 0}
{else}
{/if} {shopStorequickorderPlugin::product_button()}
{/if} {if isset($actions) == 'favorite'}{/if}
{/foreach} {/strip}