{strip} {$wa->globals("hideSidebar", true)} {$wa->globals("showBottomBanner", true)} {$badge_html = $wa->shop->badgeHtml($product.badge)} {* PRODUCT PAGE *}

{$product.name|escape}

{* OVERVIEW *} {capture assign="_description"} {if !empty($product.description)}

[`Overview`]

{$product.description}
{/if} {/capture} {* PAGES *} {capture assign="_pages"} {if $product.pages}
{foreach $product.pages as $page} {$page.name|escape} {/foreach}
{/if} {/capture} {* FEATURES *} {capture assign="_features"} {if !empty($product.features)}

[`Features`]

{foreach $product.features as $f_code => $f_value} {$_true_params = ["weight", "brand", "model", "width", "height", "depth", "color", "manufacturer"]} {$_is_good_param = ($f_code|in_array:$_true_params)} {$_itemprop = ""} {if $_is_good_param}{$_itemprop = $f_code}{/if} {$_feature = $features[$f_code]} {if $_feature.type == 'divider'} {else} {/if} {/foreach}
{$_feature.name|escape}
{$_feature.name|escape}
{if is_array($f_value)} {if $_feature.type == 'color'} {implode('
', $f_value)} {else} {implode(', ', $f_value)} {/if} {else} {$f_value} {/if}
{/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 *}
{* 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 *}
  • {/if}
{/if}
{else}
[`Empty photo`]
{/if}
{if $product.tags}
[`Tags`]: {foreach $product.tags as $t} {/foreach}
{/if}
{function name=in_stock n=0 low=5 critical=2} {if $n > $low or $n === null} [`In stock`] {elseif $n > $critical} {* _w("Only %d left in stock", "Only %d left in stock", $n) *}{_w("Only a few items left")} {elseif $n > 0} {_w("Only %d left in stock", "Only %d left in stock", $n)} {else} {if $wa->shop->settings('ignore_stock_count')}[`Pre-order only`]{else}[`Out of stock`]{/if} {/if} {/function} {foreach $product.skus as $sku}
{if $sku.stock} {foreach $stocks as $stock_id => $stock} {if isset($sku.stock[$stock_id])} {$stock_count = $sku.stock[$stock_id]} {else} {$stock_count = null} {/if}
{$stock.name|escape}: {in_stock n=$stock_count low=$stock.low_count critical=$stock.critical_count}
{/foreach} {else} {in_stock n=$sku.count} {/if}
{/foreach} {if $product.sku_type}
[`Product with the selected option combination is not available for purchase`]
{/if}
[`SKU`] {$product.skus[$product.sku_id].sku|default:""|escape}


{if !empty($product.summary)}
{$product.summary}
{/if}
{* PRODUCT CART *}
{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 *}
{foreach $frontend_product as $_}{$_.block_aux}{/foreach}
{/if}
{* PRODUCT REVIEWS *}
{* @event frontend_product.%plugin_id%.menu *} {foreach $frontend_product as $_}{$_.menu}{/foreach} {* @event frontend_product.%plugin_id%.block *} {foreach $frontend_product as $_}{$_.block}{/foreach}
{$_description}
{$_features}
{$_product_rate = round($product.rating, 1)} {for $_i = 0 to 4} {$_icon_class = "star-empty"} {if $_i < $_product_rate} {$_delta = $_product_rate - $_i} {if $_delta >= 1} {$_icon_class = "star"} {elseif round($_delta) == 1} {$_icon_class = "star-half"} {/if} {/if} {/for} {$reviews_total_count}
[`Customer reviews and ratings`]
{if !empty($reviews)}
    {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}
{else}

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

{/if}
{if !empty($reviews)} {/if}
{if $_pages != null}
{$_pages}
{/if}
{* RELATED PRODUCTS *} {$crossselling = $product->crossSelling(12)} {if !empty($crossselling)} {/if} {* RELATED PRODUCTS *} {$upselling = $product->upSelling(12)} {if !empty($upselling)} {$compare_ids = array_merge(array($product.id), array_keys($upselling))} {/if} {/strip}