{strip}
{$_cart_url = $wa->getUrl(‘shop/frontend/cart’)}
{if $wa->param(‘checkout_version’) == 2}
{if method_exists($wa->shop, ‘checkout’)}
{$_cart_url = $wa->shop->checkout()->cartUrl()}
{else}
{$_cart_url = $wa->getUrl(‘shop/frontend/cart’)}
{/if}
{/if}
{$favorite_p = waRequest::cookie(«shop_favorite», », waRequest::TYPE_STRING)}
{$features = $wa->shop->features($products)}
{assign var=favorite_p_split value=»,»|explode:$favorite_p}
{if isset($microsheme)}{$microsheme = false}{else}{$microsheme = true}{/if}
{foreach $products as $p}
{$img = $wa->shop->productImgUrl($p, ‘400×0’)}
{if $img}{$_img = $wa->shop->productImgUrl($p, ‘400×0’)}{else}{$_img = «`$wa_theme_url`img/no-foto-catalog.gif»}{/if}
{$product = $wa->shop->product($p.id)}
{$video = $product->video}
{$status = $wa->shop->settings(‘ignore_stock_count’) || $p.count === null || $p.count > 0}
1}data-photo-array=»{foreach $product.images as $image}{$image.url_crop|replace:»96×96″:»400×0″}{if !$image@last};{/if}{/foreach}»{/if}>
{if count($product.images) > 1 && !$wa->isMobile()}
{/if}
{if !empty($p.features) && $theme_settings.mini_features_list}
{if in_array($f_code, explode(‘,’, $theme_settings.mini_features_list|replace:’ ‘:»))}
{foreach $f_value as $color}
{implode(‘, ‘, $f_value)}
{/if}
{/if}
{/foreach}
{/if}
{if $theme_settings.catalog_var == 1}
{if $p.compare_price > 0}
{if $theme_settings.catalog_discount}
{$percent = 100-($p.price/$p.compare_price)*100}-{$percent|round:0}%
{/if}
{/if}
{else}
{/if}