{$product.name|escape} {if !empty($product.rating) && $product.rating > 0} {/if}
{$video = $product->video}
{if $video}
{if !empty($video.images[0])}
{$_thumb = $video.images[0]}
{$_absolute_thumb_uri = "{$wa->url(true)}{$_thumb|substr:1}"}
{/if}
{/if}
{if $product.images || $video}
{if $product.images}
{/if}
{if count($product.images) > 1 || (count($product.images) === 1 && $video)}
{/if}
{* @event frontend_product.%plugin_id%.block *}
{foreach $frontend_product as $_}{$_.block}{/foreach}
{if $product.description}
{$_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}
{$wa->shop->badgeHtml($product.badge)}
{$wa->shop->productImgHtml($product, '750', [ 'itemprop' => 'image', 'id' => 'product-image', 'alt' => $product.name|escape ])}
{if $video}
{/if}
{foreach $product.images as $image}
{/foreach}
{/if}
{$product.description}
{/if}
{if !empty($_skus_features_html[$product.sku_id])}{$_skus_features_html[$product.sku_id]}{/if}
{if $product.categories}
[`Categories`]: {foreach $product.categories as $c}{if $c.status} {$c.name|escape} {/if}{/foreach}
{/if} {if $product.tags} {/if}{sprintf('[`%s reviews`]', $product.name|escape)}
{if !empty($rates)}{$_count} |
-
{foreach $reviews as $review}
- {include file="review.html" reply_allowed=false inline} {/foreach}
{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}