list

{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}

{$badge_html = $wa->shop->badgeHtml($p.badge)}

{$badge_html}

{/if}

{$p.name|escape} 1}data-photo-array=»{foreach $product.images as $image}{$image.url_crop|replace:»96×96″:»400×0″}{if !$image@last};{/if}{/foreach}»{/if}>

{if $video && !$wa->isMobile()}

{/if}

{*

*}

{if $theme_settings.catalog_fav}

{/if}

{if count($product.images) > 1 && !$wa->isMobile()}

{foreach $product.images as $image}{/foreach}

{/if}

{if !empty($p.features) && $theme_settings.mini_features_list}

{foreach $p.features as $f_code => $f_value}
{if in_array($f_code, explode(‘,’, $theme_settings.mini_features_list|replace:’ ‘:»))}

{$features[$f_code].name|escape}: {if $features[$f_code].type == ‘color’}
{foreach $f_value as $color}
{implode(‘, ‘, $f_value)}

{/if}

{/if}
{/foreach}

{/if}

{if $theme_settings.catalog_var == 1}

{shop_currency_html($p.price)}
{if $p.compare_price > 0}
{shop_currency_html($p.compare_price)}
{if $theme_settings.catalog_discount}
{$percent = 100-($p.price/$p.compare_price)*100}-{$percent|round:0}%
{/if}
{/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’)}» data-cart-url=»{$_cart_url}» data-favorite-link=»{$wa->getUrl(‘shop/frontend/search’)}?view=favorite»>


{if $status}

{/if}

{else}

1}data-url=»{$p.frontend_url}{if strpos($p.frontend_url, ‘?’)}&{else}?{/if}cart=1″{/if} method=»post» action=»{$wa->getUrl(‘shop/frontendCart/add’)}» data-cart-url=»{$_cart_url}» data-favorite-link=»{$wa->getUrl(‘shop/frontend/search’)}?view=favorite»>

{shop_currency_html($p.price)}
{if $p.compare_price > 0}
{shop_currency_html($p.compare_price)}
{if $theme_settings.catalog_discount}
{$percent = 100-($p.price/$p.compare_price)*100}-{$percent|round:0}%
{/if}
{/if}

{*


{if $status}

{/if}

*}

{/if}

{/foreach}

{/strip}