{$product.name|escape} {if !empty($product.rating) && $product.rating > 0} {$wa->shop->ratingHtml($product.rating, 16)} {$product.rating} {$reviews_total_count} {/if}

{include file="product.cart.html" inline}
[`Add to comparison table`] [`Remove from comparison table`] [`Compare`] {count($compare)}
{* @event frontend_product.%plugin_id%.cart *} {foreach $frontend_product as $_}{$_.cart}{/foreach}
{* @event frontend_product.%plugin_id%.block_aux *} {if !empty($frontend_product)}
{foreach $frontend_product as $_}{$_.block_aux}{/foreach}
{/if}
{if $product.images} {/if} {* @event frontend_product.%plugin_id%.block *} {foreach $frontend_product as $_}{$_.block}{/foreach} {if $product.description}
{$product.description}
{/if} {if $product.features} {foreach $product.features as $f_code => $f_value} {/foreach}
{$features[$f_code].name|escape} {if is_array($f_value)} {if $features[$f_code].type == 'color'} {implode('
', $f_value)} {else} {implode(', ', $f_value)} {/if} {else} {$f_value} {/if}
{/if} {if count($product.categories) > 1} {/if} {if $product.tags}

[`Tags`]: {foreach $product.tags as $t} {$t} {/foreach}

{/if}

{sprintf('[`%s reviews`]', $product.name|escape)}

{if !empty($rates)}

[`Average customer rating:`] {$wa->shop->ratingHtml($product.rating, 16)} ({$reviews_total_count}) {if $product.rating > 0}{sprintf('[`%s out of 5 stars`]', $product.rating)}{/if}

{$_total_count = 0} {foreach $rates as $_rate => $_count} {$_total_count = $_total_count + $_count} {/foreach} {* foreach $rates as $_rate => $_count *} {for $i = 5 to 0 step -1} {if empty($rates[$i]) || !$rates[$i]}{$_count = 0}{else}{$_count = $rates[$i]}{/if} {if $i || $_count} {/if} {/for}
{$_count}
{for $j=1 to $i}{forelse}[`no rate`]{/for}
{/if}
    {foreach $reviews as $review}
  • {include file="review.html" reply_allowed=false inline}
  • {/foreach}
{if !$reviews}

{sprintf('[`Be the first to write a review of this product!`]', 'reviews/')}

{else} {sprintf(_w( 'Read all %d review on %s', 'Read all %d reviews on %s', $reviews_total_count, false ), 'reviews/', $reviews_total_count, $product.name|escape) } {/if}
{$upselling = $product->upSelling(12)} {$crossselling = $product->crossSelling(12)} {if $upselling || $crossselling}
{if $crossselling} {/if} {if $upselling} {/if}
{/if}