{* * 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 $comments} {foreach from=$comments item=comment} {if $comment.content}
{l s='Grade' mod='productcomments'} 
{section name="i" start=0 loop=5 step=1} {if $comment.grade le $smarty.section.i.index}
{else}
{/if} {/section}
{$comment.customer_name|escape:'html':'UTF-8'}
{dateFormat date=$comment.date_add|escape:'html':'UTF-8' full=0}

{$comment.title}

{$comment.content|escape:'html':'UTF-8'|nl2br}

    {if $comment.total_advice > 0}
  • {l s='%1$d out of %2$d people found this review useful.' sprintf=[$comment.total_useful,$comment.total_advice] mod='productcomments'}
  • {/if} {if $logged} {if !$comment.customer_advice}
  • {l s='Was this comment useful to you?' mod='productcomments'}
  • {/if} {if !$comment.customer_report}
  • {l s='Report abuse' mod='productcomments'}
  • {/if} {/if}
{/if} {/foreach} {if (!$too_early AND ($logged OR $allow_guests))}

{l s='Write your review' mod='productcomments'} !

{/if} {else} {if (!$too_early AND ($logged OR $allow_guests))}

{l s='Be the first to write your review' mod='productcomments'} !

{else}

{l s='No customer reviews for the moment.' mod='productcomments'}

{/if} {/if}
{if isset($product) && $product}

{l s='Write your review' mod='productcomments'}

{if isset($product) && $product}
{$product->name|escape:html:'UTF-8'}

{$product->name}

{$product->description_short}
{/if}

{l s='Write your review' mod='productcomments'}

{if $criterions|@count > 0}
    {foreach from=$criterions item='criterion'}
  • {/foreach}
{/if} {if $allow_guests == true && !$logged} {/if}
{/if}