{* *} {$shop_desktop = waRequest::cookie('shop_desktop')} {if $theme_settings.home_view == 'split' && $theme_settings.product_menu}
{$categories_shop = $wa->shop->categories(0, null, true)} {if $theme_settings.menu_type == 'split-menu'} {wa_print_tree tree=$categories_shop collapsible_class='tree' class='split-catalog hidden-md-down' unfolded=true elem =':name'} {else} {function shop_catalog_tree} {foreach $items as $item} {if empty($item.hide)}
  • {$item.name} {if !empty($item.childs)}{/if} {if !empty($item.childs)}
      {shop_catalog_tree items=$item.childs}
    {/if}
  • {/if} {/foreach} {/function} {/if} {if $theme_settings.catalog_news && $wa->blog} {$latest_posts = $wa->blog->posts(null, 3)} {if $latest_posts}
    {foreach $latest_posts as $post}
    {if isset($post.img)}
    {$post.title|strip_tags|truncate:400}
    {/if}
    {$post.datetime|wa_date:"humandate"} / {$post.datetime|date_format:"%H:%M"}
    {/foreach}
    {/if} {/if}
    {/if}
    {if $wa->isMobile() && $shop_desktop != '1'} {foreach $breadcrumbs as $b} {if $b@last}{$parent_url = $b.url}{$parent_name = $b.name}{/if} {/foreach} {if $parent_url} {/if}
    {$product.name|escape}
    {else} {include file="`$wa_active_theme_path`/breadcrumb.html" inline} {/if} {if $theme_settings.product_prevnext} {$prev = null} {$next = null} {$siblings = $wa->shop->products("category/`$product.category_id`")} {foreach $siblings as $sibling} {if $sibling.id == $product.id} {$next = $sibling} {/if} {if !$next && $sibling.id != $product.id} {$prev = $sibling} {/if} {if $next && $sibling.id != $product.id} {$next = $sibling} {break} {/if} {/foreach} {$last_sibling = end($siblings)} {if $last_sibling.id == $product.id} {$next = null} {/if} {if $prev || $next} {/if} {/if}
    {* Mobile product image *} {if $wa->isMobile() && $shop_desktop != '1'} {if $product.images}
    {else} {/if} {else} {* Desktop product image *} {if method_exists($product, 'getVideo')} {$video = $product->video} {if $video} {/if} {else} {$video = null} {/if} {if $product.images} {else} {/if} {/if}
    {$favorite_p = waRequest::cookie("shop_favorite", '', waRequest::TYPE_STRING)} {assign var=favorite_p_split value=","|explode:$favorite_p}
    {$sku = $product.skus[$product.sku_id]} {if $sku.sku}
    [`Code`]: {$sku.sku|escape}
    {/if}
    {if !empty($product.rating) && $product.rating > 0} {$wa->shop->ratingHtml($product.rating, 16)} {else} {/if}

    {$product.name|escape}

    {$product_available = $product.status} {if $product_available || count($product.skus) > 1}
    1}style="display: none;"{/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}: {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}
    {/if}
    {shop_currency($product.price)}
    {if $product.summary}

    {$product.summary}

    {/if} {if $product.sku_type} {$default_sku_features = $product.sku_features} {$product_available = $product.status} {if $theme_settings.selectable_features_control == 'inline'}
    {foreach $features_selectable as $f}
    {$f.name}: {foreach $f.values as $v_id => $v}{if !isset($default_sku_features[$f.id])}{$default_sku_features[$f.id]=$v_id}{/if}{if $v_id == ifset($default_sku_features[$f.id])}{strip_tags($v)}{/if}{/foreach}
    {foreach $f.values as $v_id => $v} {if !isset($default_sku_features[$f.id])}{$default_sku_features[$f.id]=$v_id}{/if} {if $f.type == 'color'}  {/if} {if $f.type == 'color'} {else}{$v}{/if} {/foreach}
    {/foreach}
    {else}
    {foreach $features_selectable as $f} {/foreach}
    {/if} {foreach $product.skus as $sku}
    {$sku_available = $product.status && $sku.available && ($wa->shop->settings('ignore_stock_count') || $sku.count === null || $sku.count > 0)} {if $sku.name}{/if} {if (!($sku.count === null) && $sku.count <= 0)} {else} {/if}
    {/foreach} {else} {$product_available = false} {if count($product.skus) > 1} {* SKU radio buttons *}
      {foreach $product.skus as $sku} {$sku_available = $product.status && $sku.available && ($wa->shop->settings('ignore_stock_count') || $sku.count === null || $sku.count > 0)}
    • {$sku.name|escape} {if $sku.sku} {$sku.sku|escape}{/if} ({shop_currency($sku.price, $product.currency)}{if $sku.compare_price} {shop_currency($sku.compare_price)}{/if}) {if (!($sku.count === null) && $sku.count <= 0)} {else} {/if}
    • {$product_available = $product_available or $sku_available} {/foreach}
    {else} {* in case there is only one SKU, don't display the selector *}
    {$sku = $product.skus[$product.sku_id]} {if $sku.name}{/if} {if !$sku.available} {elseif !$wa->shop->settings('ignore_stock_count') && !($sku.count === null || $sku.count > 0)} {else} {/if} {$product_available = $product.status && $sku.available && ($wa->shop->settings('ignore_stock_count') || $sku.count === null || $sku.count > 0)}
    {/if} {/if} {if $services}
    {foreach $services as $s}
    {if isset($s.variants)} {else} {/if}
    {/foreach}
    {/if}
    {if $product_available} {if method_exists(shopStorequickorderPlugin, 'product_button')}
    {shopStorequickorderPlugin::product_button()}
    {/if} {/if}
    {* @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 $theme_settings.product_share} {/if} {if !empty($product.categories)}
    {if count($product.categories) > 1} [`Categories`]: {foreach $product.categories as $c}{if $c.status}{$c.name|escape} {/if}{/foreach} {else} [`Category`]: {foreach $product.categories as $c}{if $c.status}{$c.name|escape} {/if}{/foreach} {/if}
    {/if} {if $product.tags}
    [`Tags`]: {foreach $product.tags as $t}{$t}{/foreach}
    {/if}
    {if $theme_settings.product_fix} {/if} {if $theme_settings.product_tabs_view == 2}
    {if $theme_settings.product_view == 1} {if $product.description} {$product.description} {else} [`Description of product`] {$product.name|escape} [`coming soon`] {/if} {else}
    {if $product.features}
    {else}
    {/if} {if $product.description} {$product.description} {else} [`Description of product`] {$product.name|escape} [`coming soon`] {/if}
    {if $product.features}
    {foreach $product.features as $f_code => $f_value} {$features[$f_code].name|escape} {$_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} {if is_array($f_value)} {if $features[$f_code].type == 'color'} {implode('
    ', $f_value)} {else} {implode(', ', $f_value)} {/if} {else} {$f_value} {/if} {/foreach}
    {/if}
    {/if}
    {if $theme_settings.product_view == 1} {if $product.features}
    {if $product.features}
    {foreach $product.features as $f_code => $f_value} {$features[$f_code].name|escape} {$_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} {if is_array($f_value)} {if $features[$f_code].type == 'color'} {implode('
    ', $f_value)} {else} {implode(', ', $f_value)} {/if} {else} {$f_value} {/if} {/foreach}
    {/if}
    {/if} {/if}
    {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}
    Loading...
    {foreach $product.pages as $a}
    {$a.content}
    {/foreach} {if $theme_settings.product_tabs1_text}
    {$theme_settings.product_tabs1_text}
    {/if} {if $theme_settings.product_tabs2_text}
    {$theme_settings.product_tabs2_text}
    {/if} {else} {if $product.description}
    [`Overview`]
    {$product.description}
    {/if} {if $product.features}
    [`Features`]
    {foreach $product.features as $f_code => $f_value} {$features[$f_code].name|escape} {$_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} {if is_array($f_value)} {if $features[$f_code].type == 'color'} {implode('
    ', $f_value)} {else} {implode(', ', $f_value)} {/if} {else} {$f_value} {/if} {/foreach}
    {/if} {if $theme_settings.product_tabs1_text}
    {$theme_settings.product_tabs1_header}
    {$theme_settings.product_tabs1_text}
    {/if} {if $theme_settings.product_tabs2_text}
    {$theme_settings.product_tabs2_header}
    {$theme_settings.product_tabs2_text}
    {/if} {foreach $product.pages as $a}
    {$a.name}
    {$a.content}
    {/foreach}
    [`Reviews`] ({$reviews_total_count})
    {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}
    Loading...
    {/if} {* @event frontend_product.%plugin_id%.menu *} {foreach $frontend_product as $_}{$_.menu}{/foreach}
    {if $frontend_product}
    {* @event frontend_product.%plugin_id%.block *} {foreach $frontend_product as $_}{$_.block}{/foreach}
    {/if} {$upselling = $product->upSelling(20)} {$crossselling = $product->crossSelling(20)} {if $upselling || $crossselling} {if $crossselling}
    {/if}