{$product.name|escape}
{if !empty($product.summary)}{$product.summary}
{/if}
{* OVERVIEW *}
{capture assign="_description"}
{if !empty($product.description)}
{/if}
{/capture}
{* PAGES *}
{capture assign="_pages"}
{if $product.pages}
{else}
{$_description}
{$_pages}
{$_features}
{/if}
[`Overview`]
{$product.description}
{foreach $product.pages as $page}
{$page.name|escape}
{/foreach}
{/if}
{/capture}
{* FEATURES *}
{capture assign="_features"}
{if !empty($_skus_features_html[$product.sku_id])}{$_skus_features_html[$product.sku_id]}{/if}
{/capture}
{* IMAGE GALLERY *}
{if $product.images}
{$_video = $product->video}
{if empty($_video.images[0])}
{$_video = false}
{/if}
{$_thumb = $_video.images[0]}
{$_absolute_thumb_uri = "{$wa->url(true)}{$_thumb|substr:1}"}
{* MAIN IMAGE *}
{if $_video}
{/if}
{$wa->shop->productImgHtml($product, '750', [ 'itemprop' => 'image', 'alt' => $product.name|escape ])}
{if !empty($badge_html)}
{$_description}
{$_pages}
{$_features}
{$badge_html}
{/if}
{* THUMBS *}
{if count($product.images) > 1 || (count($product.images) === 1 && $_video)}
-
{foreach $product.images as $image}
- {* @hint link id needed for change product image on sku change event *} {$wa->shop->imgHtml($image, '96x96')} {/foreach} {if $_video}
-
{* @hint link id needed for change product image on sku change event *}
{* PRODUCT CART *}
[`Customer reviews and ratings`]
{* TAGS *}
{if $product.tags}
{/if}
{include file="product.cart.html" inline}
{if !empty($frontend_product)}
{* @event frontend_product.%plugin_id%.cart *}
{foreach $frontend_product as $_}{$_.cart}{/foreach}
{* @event frontend_product.%plugin_id%.block_aux *}
{* PRODUCT REVIEWS *}
{foreach $frontend_product as $_}{$_.block_aux}{/foreach}
{/if}
{if !empty($reviews)}
{if !empty($reviews)}
{/if}
-
{foreach $reviews as $review}
{if $review@iteration > 3}{break}{/if}
-
{if $review.title}
{$review.title}
{/if} {if $review.text}{$review.text}{/if}{* RATES *} {if !$review.parent_id && !empty($review.rate)}{$_review_rate = round($review.rate,1)} {for $_i = 0 to 4} {$_icon_class = "star-empty"} {if $_i < $_review_rate} {$_delta = $_review_rate - $_i} {if $_delta >= 1} {$_icon_class = "star"} {elseif round($_delta) == 1} {$_icon_class = "star-half"} {/if} {/if} {/for}{/if}{* NAME *} {* DATE *}{$review.datetime|wa_datetime:"humandatetime"}
{/foreach}
{sprintf('[`Be the first to write a review of this product!`]', 'reviews/')}
{/if}