{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}
{$_count} |
|
{for $j=1 to $i}{forelse}[`no rate`]{/for}
|
{/if}
{/for}
{/if}
{foreach $product.pages as $a}
{/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`]
{/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}
{/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}
{$_count} |
|
{for $j=1 to $i}{forelse}[`no rate`]{/for}
|
{/if}
{/for}
{/if}
{/if}
{* @event frontend_product.%plugin_id%.menu *}
{foreach $frontend_product as $_}{$_.menu}{/foreach}
{* @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}