{* * 2007-2016 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-2016 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 $products} {if !$refresh}

{/if}
{assign var='nbItemsPerLine' value=4} {assign var='nbItemsPerLineTablet' value=3} {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=i} {math equation="(total%perLine)" total=$smarty.foreach.i.total perLine=$nbItemsPerLine assign=totModulo} {math equation="(total%perLineT)" total=$smarty.foreach.i.total perLineT=$nbItemsPerLineTablet assign=totModuloTablet} {if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if} {if $totModuloTablet == 0}{assign var='totModuloTablet' value=$nbItemsPerLineTablet}{/if}
  • {$product.name|truncate:30:'...'|escape:'html':'UTF-8'} {if isset($product.attributes_small)} {$product.attributes_small|escape:'html':'UTF-8'} {/if}

    {l s='Save' mod='blockwishlist'} {if $wishlists|count > 1} {foreach name=wl from=$wishlists item=wishlist} {if $smarty.foreach.wl.first} {l s='Move' mod='blockwishlist'} {/if} {/foreach} {/if}
  • {/foreach}
{if !$refresh}
{section name=i loop=11 start=2}
{/section}

* {l s='Required field' mod='blockwishlist'}

{if count($productsBoughts)} {foreach from=$productsBoughts item=product name=i} {foreach from=$product.bought item=bought name=j} {if $bought.quantity > 0} {/if} {/foreach} {/foreach}
{l s='Product' mod='blockwishlist'} {l s='Quantity' mod='blockwishlist'} {l s='Offered by' mod='blockwishlist'} {l s='Date' mod='blockwishlist'}
{$product.name|escape:'html':'UTF-8'} {$product.name|truncate:40:'...'|escape:'html':'UTF-8'} {if isset($product.attributes_small)}
{$product.attributes_small|escape:'html':'UTF-8'} {/if}
{$bought.quantity|intval} {$bought.firstname|escape:'html':'UTF-8'} {$bought.lastname|escape:'html':'UTF-8'} {$bought.date_add|date_format:"%Y-%m-%d"}
{/if} {/if} {else}

{l s='No products' mod='blockwishlist'}

{/if}