{* $Id: products_t.tpl,v 1.4.2.5 2010/12/15 11:57:05 aim Exp $ vim: set ts=2 sw=2 sts=2 et: *} {list2matrix assign="products_matrix" assign_width="cell_width" list=$products row_length=$config.Appearance.products_per_row} {assign var="is_matrix_view" value=true} {if $products_matrix} {foreach from=$products_matrix item=row name=products_matrix} {*Display product name*} {foreach from=$row item=product name=products} {if $product} {if $active_modules.Product_Configurator and $is_pconf and $current_product} {assign var="url" value="product.php?productid=`$product.productid`&pconf=`$current_product.productid`&slot=`$slot`"} {else} {assign var="url" value="product.php?productid=`$product.productid`&cat=`$cat`&page=`$navigation_page`"} {if $featured eq 'Y'} {assign var="url" value=$url|cat:"&featured=Y"} {/if} {/if}
{$product.product|amp}

{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.tmbn_x image_y=$product.tmbn_y product=$product.product tmbn_url=$product.tmbn_url} {/if} {/foreach} {*Display price/market_price/taxes*} {foreach from=$row item=product name=products} {if $product}
{$lng.lbl_our_price}: {currency value=$product.taxed_price}
{alter_currency value=$product.taxed_price}
{if $product.appearance.has_market_price and $product.appearance.market_price_discount gt 0}
{$lng.lbl_market_price}: {currency value=$product.list_price} {if $product.appearance.market_price_discount gt 0} {if $config.General.alter_currency_symbol ne ""}, {/if}
{$lng.lbl_save_price} {$product.appearance.market_price_discount}% {/if}
{/if} {/if} {/foreach} {*Display buy_now/details/pconf_add_form buttons*} {foreach from=$row item=product name=products} {if $product} {if $active_modules.Product_Configurator and $is_pconf and $current_product} {include file="modules/Product_Configurator/pconf_add_form.tpl"} {elseif $active_modules.Product_Configurator and $product.product_type eq "C"} {assign var="url" value="product.php?productid=`$product.productid`&cat=`$cat`&page=`$navigation_page`"} {if $featured eq 'Y'} {assign var="url" value=$url|cat:"&featured=Y"} {/if} {include file="customer/buttons/details.tpl" href=$url} {elseif $config.Appearance.buynow_button_enabled eq "Y" and $product.product_type ne "C"} {if $login ne ""} {include_cache file="customer/main/buy_now.tpl" product=$product cat=$cat featured=$featured is_matrix_view=$is_matrix_view login="1" smarty_get_cat=$smarty.get.cat smarty_get_page=$smarty.get.page smarty_get_quantity=$smarty.get.quantity} {else} {include_cache file="customer/main/buy_now.tpl" product=$product cat=$cat featured=$featured is_matrix_view=$is_matrix_view login="" smarty_get_cat=$smarty.get.cat smarty_get_page=$smarty.get.page smarty_get_quantity=$smarty.get.quantity} {/if} {else}   {/if} {/if} {/foreach} {if not $smarty.foreach.products_matrix.last} {/if} {/foreach}
{/if}