{* * 2007-2014 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA * @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {if isset($products) && $products} {*define numbers of product per line in other page for desktop*} {if $page_name !='index' && $page_name !='product'} {assign var='nbItemsPerLine' value=3} {assign var='nbItemsPerLineTablet' value=2} {assign var='nbItemsPerLineMobile' value=3} {else} {assign var='nbItemsPerLine' value=4} {assign var='nbItemsPerLineTablet' value=3} {assign var='nbItemsPerLineMobile' value=2} {/if} {*define numbers of product per line in other page for tablet*} {assign var='nbLi' value=$products|@count} {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines} {math equation="nbLi/nbItemsPerLineTablet" nbLi=$nbLi nbItemsPerLineTablet=$nbItemsPerLineTablet assign=nbLinesTablet} {foreach from=$products item=product name=products} {math equation="(total%perLine)" total=$smarty.foreach.products.total perLine=$nbItemsPerLine assign=totModulo} {math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineTablet assign=totModuloTablet} {math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineMobile assign=totModuloMobile} {if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if} {if $totModuloTablet == 0}{assign var='totModuloTablet' value=$nbItemsPerLineTablet}{/if} {if $totModuloMobile == 0}{assign var='totModuloMobile' value=$nbItemsPerLineMobile}{/if}
  • logged}onclick="window.location.href='{$product.link|escape:'html':'UTF-8'}';"{/if} class="product-container" itemscope itemtype="http://schema.org/Product" >
    {if $cookie->logged && $product.register_for_game == 1 && $sale_concours == 1}
    {/if}
    {if $cookie->logged} {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}
    {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)} {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} {if isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction > 0} {hook h="displayProductPriceBlock" product=$product type="old_price"} {displayWtPrice p=$product.price_without_reduction} {if $product.specific_prices.reduction_type == 'percentage'} -{$product.specific_prices.reduction * 100}% {/if} {/if} {hook h="displayProductPriceBlock" product=$product type="price"} {hook h="displayProductPriceBlock" product=$product type="unit_price"} {/if}
    {/if} {/if}
    {hook h="displayProductDeliveryTime" product=$product} {if $cookie->logged} {hook h="displayProductPriceBlock" product=$product type="weight"} {/if} {if $cookie->logged} {if (!$PS_CATALOG_MODE && $PS_STOCK_MANAGEMENT && ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}
    {if ($product.allow_oosp || $product.quantity > 0)} {elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)} {l s='Product available with different options'} {else} {l s='Out of stock'} {/if}
    {/if} {/if} {/if} {if $product.specific_prices.reduction_type == 'percentage'}
    -{$product.specific_prices.reduction * 100}%
    {/if}
    {$product.manufacturer_name|truncate:35:'...'|escape:'htmlall':'UTF-8'}
    {if isset($product.pack_quantity) && $product.pack_quantity}{$product.pack_quantity|intval|cat:' x '}{/if}
    {hook h='displayProductListReviews' product=$product}

    {$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}

    {if $cookie->logged} {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}
    {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)} {if !$priceDisplay} {convertPrice price=$product.price} {l s='TTC'} {else} {convertPrice price=$product.price_tax_exc} {l s='HT'} {/if} {if isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction > 0} {hook h="displayProductPriceBlock" product=$product type="old_price"}
    {l s='instead of'} {if !$priceDisplay} {displayWtPrice p=$product.price_without_reduction} {else} {displayWtPrice p=$product.price_without_reduction} {/if} {hook h="displayProductPriceBlock" id_product=$product.id_product type="old_price"} {/if} {hook h="displayProductPriceBlock" product=$product type="price"} {hook h="displayProductPriceBlock" product=$product type="unit_price"}
    {if !$priceDisplay || $priceDisplay == 2} {assign var='productPrice' value=$product.price} {elseif $priceDisplay == 1} {assign var='productPrice' value=$product.price_tax_exc} {/if} {if $product.unit_price_ratio > 0.000000} {math equation="pprice / punit_price" pprice=$productPrice punit_price=$product.unit_price_ratio assign=unit_price}

    {l s='soit'} {convertPrice price=$unit_price} {l s='l\'unité'}

    {/if} {/if}
    {/if} {/if} {*if isset($product.color_list)}
    {$product.color_list}
    {/if*}
    {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} {if isset($product.online_only) && $product.online_only} {l s='Online only'} {/if} {/if} {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE} {elseif isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE} {l s='Reduced price!'} {/if}
  • {if $cookie->logged } {hook h='displayProductAfter' position=$smarty.foreach.products.index } {/if} {if $smarty.foreach.products.index % 3 == 2 || $smarty.foreach.products.last} {if !$smarty.foreach.products.last} {addJsDefL name=min_item}{l s='Please select at least one product' js=1}{/addJsDefL} {addJsDefL name=max_item}{l s='You cannot add more than %d product(s) to the product comparison' sprintf=$comparator_max_item js=1}{/addJsDefL} {addJsDef comparator_max_item=$comparator_max_item} {addJsDef comparedProductsIds=$compared_products} {/if} {literal} {/literal}