{if not $prod_from} {if $act eq 'search'} {assign var=prod_from value='search'} {elseif $acquired_products} {assign var=prod_from value='acquired'} {elseif $newest_products} {assign var=prod_from value='newest'} {elseif $bestsellers_products} {assign var=prod_from value='bestsellers'} {elseif $rated_prods} {assign var=prod_from value='rated'} {elseif $random_prods} {assign var=prod_from value='random'} {elseif $manuf_prods} {assign var=prod_from value='manufacturer'} {elseif $article_prods} {assign var=prod_from value='article'} {elseif $wished_products} {assign var=prod_from value='wishlist'} {elseif $featured_products} {assign var=prod_from value='featured'} {elseif $tag_prods} {assign var=prod_from value='tag'} {else} {assign var=prod_from value=''} {/if} {elseif $prod_from eq 'catalog'} {assign var=prod_from value=''} {/if} {if $cur_category and not $rated_prods and not $random_prods and not $manuf_prods and not $article_prods and $act ne 'search' and $CONFIG.modules.products_compare.avail eq 'Y'} {assign var=compare_enabled value=true} {else} {assign var=compare_enabled value=false} {/if}
{foreach from=$products item=product name=prods} {assign var=prod_id value=$product.id} {assign var=prod_href value=$LINKS->Product($product, $prod_from)} {if $cur_category} {assign var=category_id value=$cur_category.id} {else} {assign var=category_id value=$product.cat} {/if}

{if $compare_enabled} {/if}

{strip} {if $product.thumb and $product.thumb ne $smarty.const.NO_PICTURE} {$product.alt|replace:' {elseif $product.img} {$product.alt|replace:' {else} {$product.alt|replace:' {/if} {/strip} {if $product.discount and $CONFIG.settings.prodlist_show_discount eq 'on'}

{$product.discount}

{/if} {if $product.img}
{/if}
{if $smarty.session.products_list.featured[$product.id] and $prod_from ne 'featured'}

{$LABEL.lbl_featured2}

{elseif $smarty.session.products_list.bestsellers[$product.id] and $prod_from ne 'bestsellers'}

{$LABEL.lbl_bestseller}

{elseif $smarty.session.products_list.newest[$product.id] and $prod_from ne 'newest'}

{$LABEL.lbl_newest2}

{/if} {if $CONFIG.modules.discussions.avail eq 'Y'}
{math equation="round(r * 4)" r=$product.rating|default:0 assign=rated_index} {section name=rating loop=21 start=1} {/section}
{/if} {if $CONFIG.settings.prodlist_row_view ne 'on'} {if $product.short_descr} {capture name=short_descr}{strip} {if $CONFIG.modules.discussions.avail eq 'Y'} {$product.short_descr|truncate:70:"...":true} {else} {$product.short_descr|truncate:90:"...":true} {/if} {/strip}{/capture} {if $CONFIG.settings.prod_allow_html_short_descr eq 'on'} {$smarty.capture.short_descr|close_tags} {else} {$smarty.capture.short_descr|nl2br} {/if} {else} {$LABEL.lbl_short_descr_is_empty} {/if} {else} {if $product.short_descr} {if $CONFIG.settings.prod_allow_html_short_descr eq 'on'} {$product.short_descr|close_tags} {else} {$product.short_descr|nl2br} {/if} {else} {$LABEL.lbl_short_descr_is_empty} {/if} {/if}
{if $CONFIG.settings.prices_for_only_registered eq 'on' && !$smarty.session.customer_info.id} {include file="_system_/helptip.html" id="product-`$prod_id`-price-`$prod_from`" text=$LABEL.tip_prices_for_only_registered label="`$LABEL.lbl_price`"} {else} {if $CONFIG.settings.prices_same_font_size eq 'on'} {$product.$PRODUCT_PRICE_FIELD} {else} {strip} {if $SHOP_CURRENCY.left_side eq 'Y'}{$SHOP_CURRENCY.short_name}{/if} {$product.price_int}{if $product.price_fract}{$product.price_fract}{/if} {if $SHOP_CURRENCY.left_side ne 'Y'}{$SHOP_CURRENCY.short_name}{/if} {/strip} {/if} {/if}
{assign var=form_id value="product_form_`$product.id`_`$prod_from`"}

{if (($CONFIG.modules.prod_options.avail eq 'Y' and $product.options) or ($product.qty lte 0 and $product.qty ne '')) and $prod_from ne 'acquired'} {assign var=show_cart_button value=false} {else} {if $product.egood eq 'Y'} {else} {/if} {assign var=show_cart_button value=true} {/if}
{include file="_system_/button.html" link=$prod_href title=$LABEL.link_see_details}  {include file="_system_/button.html" js="CartBox.addProduct(`$prod_id`, `$category_id`, '`$form_id`'); document.getElementById('`$form_id`').prod_qty.value = 1;" id="sv-button-cart-`$prod_id`" title=$LABEL.link_add_to_cart into_cart=true}

{if $product.egood eq 'Y'}
{/if}

{if $product.egood eq 'Y' and $product.is_free eq 'Y' and $CONFIG.settings.free_egoods_allowed eq 'on' and $product.egood_pins ne 'Y'} {assign var=download_link_visible value=true} {else} {assign var=download_link_visible value=false} {/if} {if $kupivkredit_is_active and $show_cart_button} {$LABEL.lbl_vkredit} {elseif $prod_from eq 'wishlist' and $smarty.session.customer_info.id} {assign var=tmp_link value=$LINKS->Account('wishlist')} {$LABEL.link_delete} {elseif $prod_from eq 'acquired' and $smarty.session.customer_info.id} {$LABEL.link_delete} {elseif $CONFIG.modules.wishlist.avail eq 'Y'} {if not $wishlist_js_included} {include file="products/wishlist_js.html"} {assign var=wishlist_js_included value=true} {/if} {if $download_link_visible} {$LABEL.link_to_wishlist} {else} {$LABEL.link_prod_to_wishlist} {/if} {/if} {if $download_link_visible} | {$LABEL.link_download} {/if}
{if $prod_from eq 'acquired'} {foreach from=$product.options item=var_id} {/foreach} {elseif $CONFIG.modules.prod_options.avail eq 'Y' and $product.options and $product.def_vars_selected} {foreach from=$product.options item=option} {foreach from=$option.variants item=variant} {if $product.def_vars_selected[$variant.id]} {/if} {/foreach} {/foreach} {/if}
{foreachelse} {$LABEL.lbl_empty_list} {/foreach}
{literal} {/literal}