{* * Copyright ETS Software Technology Co., Ltd * * NOTICE OF LICENSE * * This file is not open source! Each license that you purchased is only available for 1 website only. * If you want to use this file on more websites (or projects), you need to purchase additional licenses. * You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. * * @author ETS Software Technology Co., Ltd * @copyright ETS Software Technology Co., Ltd * @license Valid for 1 website (or project) for each purchase of license *}
0 && !$question_enabled || $nb_comments > 0 && !$review_enabled && $nb_questions < 1} style="display: none;" {/if}>
{if !$back_office || !$employee}

{if $review_enabled && !$question_enabled} {l s='Product Review' mod='ets_reviews'} {elseif $question_enabled && $review_enabled } {l s='Product Reviews / Q&A' mod='ets_reviews'} {elseif !$review_enabled && $question_enabled} {l s='Questions & Answers' mod='ets_reviews'} {/if}

{if $review_enabled}

{l s='Average rating' mod='ets_reviews'}

{$average_grade|floatval|string_format:'%.1f'}
{$nb_reviews|intval} {if $nb_reviews > 1}{l s='Reviews' mod='ets_reviews'}{else}{l s='Review' mod='ets_reviews'}{/if}
{if $grade_stats|count > 0} {foreach from=$grade_stats key='type' item='stats'}
{if $type == 1}★☆☆☆☆ {elseif $type == 2}★★☆☆☆ {elseif $type == 3}★★★☆☆ {elseif $type == 4}★★★★☆ {elseif $type == 5}★★★★★{/if} {$stats.name|escape:'html':'UTF-8'} {$stats.grade_total|intval}
{/foreach} {/if}
{/if}
{if $review_enabled}
{/if} {if $question_enabled} {/if}
{include file="./all-photo.tpl"}
    {if $review_enabled}
  • {l s='Reviews' mod='ets_reviews'} ({$nb_reviews|intval}) {if $grade_stats|count > 0} {/if}
  • {/if} {if $question_enabled}
  • {l s='Questions & Answers' mod='ets_reviews'} ({$nb_questions|intval})
  • {/if}
  • {if isset($sort_by) && $sort_by|count > 0} {/if}
  • {if isset($sort_by_question) && $sort_by_question|count > 0} {/if}
{/if}
{$PRODUCT_COMMENTS_LIST nofilter} {$PRODUCT_QUESTIONS_LIST nofilter}