{$favorite_p = waRequest::cookie("shop_favorite", '', waRequest::TYPE_STRING)}
{assign var=favorite_p_split value=","|explode:$favorite_p}
{if !$wa->isMobile()}
{if $theme_settings.product_prevnext}
{/if}
{/if}
{$wa->shop->badgeHtml($product.badge)}{$product.name|escape} {if $wa->user()->isAdmin()} {/if}
{$sku = $product.skus[$product.sku_id]}
{* sku or not sku? *}
{if $theme_settings.catalog_fav}
К списку сравнения ({if !$compare_p}0{else}{count(explode(',', $compare_p))}{/if})
{/if}
{/if}
{if $theme_settings.catalog_compare}
{$compare_p = waRequest::cookie('shop_compare', '', waRequest::TYPE_STRING)}
{$compare = $wa->shop->inComparison($product.id)}
{if $theme_settings.product_promo}
{* Promo icons *}
{* Description *}
{/if}
{if $theme_settings.catalog_viewed}
{$view_p = waRequest::cookie("shop_view", '', waRequest::TYPE_STRING)}
{/if}
{if $view_p}
{$products_ = $wa->shop->products('id/'|cat:$view_p)}
{$products_views = []}
{foreach explode(',', $view_p) as $a}
{$products_views[] = $products_[$a]}
{/foreach}
{/foreach}
{/if}
{if $theme_settings.navigation_always}
{* Tabs*}
{/if}
{if $product.features && $theme_settings.product_view == 1}
{/if}
{strip}
{capture assign="_file_template"}
{/capture}
{/strip}
{strip}
{capture assign="_error_template"}
{foreach $product.pages as $a}
{/foreach}
{if $theme_settings.product_tabs1_text}
{/if}
{if $theme_settings.product_tabs2_text}
{/if}
{if $product.description}
{$product.description}
{* Categories *}
{if !empty($product.categories)}
{if $product.features && $theme_settings.product_view != 1}
{/if}
{else}
[`Description of product`] {$product.name|escape} [`coming soon`]
{/if}
[`Features`]:
%text%
{/capture}
{/strip}
{$a.content}
{$theme_settings.product_tabs1_text}
{$theme_settings.product_tabs2_text}
[`You watched`]
{foreach $products_views|@array_slice:0:3 as $p}
{if !empty($theme_settings.lazyload_catalog)}
{$img = $wa->shop->productImgUrl($p, '600x0')}
{if $img}{$_img = $wa->shop->productImgUrl($p, '600x0')}{else}{$_img = "`$wa_theme_url`img/no-foto-catalog.gif"}{/if}
{else}
{$wa->shop->productImgHtml($p, '600x0', ['alt' => $p.name, 'default' => "`$wa_theme_url`img/no-foto-catalog.gif"])}
{/if}
{shop_currency($p.price)}
{if $p.compare_price > 0}
{shop_currency($p.compare_price)}{/if}