Advertisement
valeraplusplus

old_shop2.2.130-product.tpl

Jul 29th, 2022
947
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Smarty 37.27 KB | None | 0 0
  1. {assign var="show_price" value=0}
  2. {if !(!$user && $shop2.my.hide_prices_non_reg)}
  3.     {assign var="show_price" value=1}
  4. {/if}
  5.  
  6. {assign var="show_price_on_request" value=0}
  7. {if $shop2.my.price_on_request && $product.buy_mode == 1 || ($shop2.price_on_request && $product.price == 0)}
  8.     {assign var="show_price_on_request" value=1}
  9. {/if}
  10.  
  11. {if $product.price_old}
  12.     {assign var="discount" value=$discounts[$product.discounts_applied.0]}
  13. {/if}
  14.  
  15. {if $smarty.get.product_preview}
  16.  
  17.     {include file="global:shop2.2.130-product-preview.tpl"}
  18.    
  19.    
  20. {elseif $smarty.get.products_only && !$smarty.get.product_preview}
  21.  
  22.     {include file="global:shop2.2.130-product-quick-view.tpl"}
  23.    
  24. {else}
  25.  
  26.     <div class="card-page">
  27.         <div class="card-page__top">
  28.            
  29.             {if $shop2.next_prev_link && !$shop2.fallback_mode}
  30.                 <div class="card-nav">
  31.                 <!--noindex-->
  32.                     <a rel="nofollow" class="card-nav__btn" href="#" onclick="this['h'+'ref'] = '{get_seo_url uri_prefix=$shop2.uri uri_postfix="prev" mode="product" alias=$product.alias}';">
  33.                         <span>
  34.                             {$shop2.my.gr_product_nav_prev|default:#SHOP2_PRODUCT_PREV#}
  35.                             <i>
  36.                                 <svg class="gr-svg-icon">
  37.                                     <use xlink:href="#icon_shop_card_prev"></use>
  38.                                 </svg>
  39.                                 <svg class="gr-svg-icon gr_small_icon">
  40.                                     <use xlink:href="#icon_shop_card_prev_small"></use>
  41.                                 </svg>
  42.                             </i>
  43.                         </span>
  44.                     </a>
  45.                 <!--/noindex-->
  46.                 <!--noindex-->
  47.                     <a rel="nofollow" class="card-nav__btn" href="#" onclick="this['h'+'ref'] = '{get_seo_url uri_prefix=$shop2.uri uri_postfix="next" mode="product" alias=$product.alias}';">
  48.                         <span>
  49.                             {$shop2.my.gr_product_nav_next|default:#SHOP2_PRODUCT_NEXT#}
  50.                             <i>
  51.                                 <svg class="gr-svg-icon">
  52.                                     <use xlink:href="#icon_shop_card_next"></use>
  53.                                 </svg>
  54.                                 <svg class="gr-svg-icon gr_small_icon">
  55.                                     <use xlink:href="#icon_shop_card_next_small"></use>
  56.                                 </svg>
  57.                             </i>
  58.                         </span>
  59.                     </a>
  60.                 <!--/noindex-->
  61.                 </div>
  62.             {/if}
  63.    
  64.             <form
  65.                 method="post"
  66.                 action="{$shop2.uri}?mode=cart&amp;action=add"
  67.                 accept-charset="utf-8"
  68.                 class="shop2-product">
  69.    
  70.                 <input type="hidden" name="kind_id" value="{$product.kind_id}"/>
  71.                 <input type="hidden" name="product_id" value="{$product.product_id}"/>
  72.                 <input type="hidden" name="meta" value='{$product.meta|@json_encode|htmlspecialchars|escape}'/>
  73.        
  74.                 <div class="shop2-product__left">
  75.                     <div class="card-slider{if !$product.params.images} card_slider_no_thumbs{/if}">
  76.                         <div class="card-slider__body">
  77.                             {if $product.new || $product.special || $product.flags || $discount.discount_type == "percent"}
  78.                                 <div class="product-flags">
  79.                                     {if $product.new || $product.special}
  80.                                         <div class="product-flags__left">
  81.                                             {if $product.new}<div class="product-flags__item new_item"><span>{$shop2.my.new_alias|default:'New'}</span></div>{/if}
  82.                                             {if $product.special}<div class="product-flags__item spec_item"><span>{$shop2.my.special_alias|default:'Sale'}</span></div>{/if}
  83.                                         </div>
  84.                                     {/if}
  85.                                     {if $product.flags || $discount.discount_type == "percent"}
  86.                                         <div class="product-flags__right">
  87.                                             {foreach from=$product.flags item=flag_id key=k name=foo}
  88.                                                 {assign var=flag value=$product_flag.$flag_id}
  89.                                                 {assign var=spec value=$product.special}
  90.                                                 {assign var=new value=$product.new}
  91.                                                 {if $smarty.foreach.foo.iteration <= 3}
  92.                                                     {if $flag.flag_id != '1' && $flag.flag_id != '2' && $flag.name}
  93.                                                         <div class="product-flags__item custom_item">
  94.                                                             <span style="background: {$flag.color};" data-custom-bg="{$flag.color}">{$flag.name}</span>
  95.                                                         </div>
  96.                                                     {/if}
  97.                                                 {/if}
  98.                                             {/foreach}
  99.                                             {if $discount.discount_type == "percent"}
  100.                                                 <div class="product-flags__item action_item">
  101.                                                     <span>-{$discount.value}%</span>
  102.                                                 </div>
  103.                                             {/if}
  104.                                         </div>
  105.                                     {/if}
  106.                                 </div>
  107.                             {/if} <!-- .product-flags -->
  108.                            
  109.                             {assign var=card_image_width value=$shop2.my.card_image_width|default:'750'}
  110.                             {assign var=card_image_height value=$shop2.my.card_image_height|default:'750'}
  111.    
  112.                             <div class="card-slider__items{if !$product.params.images} card_slider_no_thumbs{/if}">
  113.                                 <div class="card-slider__items-slider">
  114.                                     <div class="card-slider__item">
  115.                                         <div class="card-slider__image{if !$product.image_filename} no-image{/if}{if $shop2.my.gr_images_size}{if $site.product_settings.images_size=="2"} gr_image_3x4{elseif $site.product_settings.images_size=="3"} gr_image_2x3{elseif $site.product_settings.images_size=="4"} gr_image_4x3{elseif $site.product_settings.images_size=="5"} gr_image_3x2{else} gr_image_1x1{/if}{/if}">
  116.                                             {if $product.image_filename}
  117.                                                 <a href="{s3_img src=$product.image_filename}" class="gr-image-zoom">
  118.                                                     <img src="{s3_img width=$card_image_width height=$card_image_height src=$product.image_filename method=$shop2.my.s3_img_method}" {if $site.product_settings.images_view} class="gr_image_contain"{/if} alt="{$product.name|htmlspecialchars}" title="{$product.name|htmlspecialchars}" />
  119.                                                 </a>
  120.                                             {/if}
  121.                                         </div>
  122.                                     </div>
  123.                                     {if $product.params.images}
  124.                                         {foreach from=$product.params.images item=img key=k}
  125.                                             <div class="card-slider__item">
  126.                                                 <div class="card-slider__image{if $shop2.my.gr_images_size}{if $site.product_settings.images_size=="2"} gr_image_3x4{elseif $site.product_settings.images_size=="3"} gr_image_2x3{elseif $site.product_settings.images_size=="4"} gr_image_4x3{elseif $site.product_settings.images_size=="5"} gr_image_3x2{else} gr_image_1x1{/if}{/if}">
  127.                                                     <a href="{s3_img src=$img.filename}" class="gr-image-zoom">
  128.                                                         {if $shop2.my.gr_product_lazy_img}
  129.                                                             <img src="/g/spacer.gif" data-src="{s3_img width=$card_image_width height=$card_image_height src=$img.filename method=$shop2.my.s3_img_method}" class="{if $site.product_settings.images_view}gr_image_contain {/if}tns-lazy-img" alt="{$product.name|htmlspecialchars}" title="{$product.name|htmlspecialchars}" />
  130.                                                         {else}
  131.                                                             <img src="{s3_img width=$card_image_width height=$card_image_height src=$img.filename method=$shop2.my.s3_img_method}" {if $site.product_settings.images_view} class="gr_image_contain"{/if} alt="{$product.name|htmlspecialchars}" title="{$product.name|htmlspecialchars}" />
  132.                                                         {/if}
  133.                                                     </a>
  134.                                                 </div>
  135.                                             </div>
  136.                                         {/foreach}
  137.                                     {/if}
  138.                                 </div>
  139.                             </div>
  140.                            
  141.                             {assign var=card_small_image_width value=$shop2.my.card_small_image_width|default:'120'}
  142.                             {assign var=card_small_image_height value=$shop2.my.card_small_image_height|default:'120'}
  143.                            
  144.                             {if $product.params.images}
  145.                                 <div class="card-slider__thumbs">
  146.                                     <div class="card-slider__thumbs-slider">
  147.                                         <div class="card-slider__thumb">
  148.                                             <div class="card-slider__thumb-img{if !$product.image_filename} no-image{/if}{if $shop2.my.gr_images_size}{if $site.product_settings.images_size=="2"} gr_image_3x4{elseif $site.product_settings.images_size=="3"} gr_image_2x3{elseif $site.product_settings.images_size=="4"} gr_image_4x3{elseif $site.product_settings.images_size=="5"} gr_image_3x2{else} gr_image_1x1{/if}{/if}">
  149.                                                 {if $product.image_filename}
  150.                                                     <a href="javascript:void(0);">
  151.                                                         <img src="{s3_img width=$card_small_image_width height=$card_small_image_height src=$product.image_filename method=$shop2.my.s3_img_method}" {if $site.product_settings.images_view} class="gr_image_contain"{/if}/>
  152.                                                     </a>
  153.                                                 {/if}
  154.                                             </div>
  155.                                         </div>
  156.                                         {foreach from=$product.params.images item=img key=k}
  157.                                             <div class="card-slider__thumb">
  158.                                                 <div class="card-slider__thumb-img{if $shop2.my.gr_images_size}{if $site.product_settings.images_size=="2"} gr_image_3x4{elseif $site.product_settings.images_size=="3"} gr_image_2x3{elseif $site.product_settings.images_size=="4"} gr_image_4x3{elseif $site.product_settings.images_size=="5"} gr_image_3x2{else} gr_image_1x1{/if}{/if}">
  159.                                                     <a href="javascript:void(0);">
  160.                                                         <img src="{s3_img width=$card_small_image_width height=$card_small_image_height src=$img.filename method=$shop2.my.s3_img_method}" {if $site.product_settings.images_view} class="gr_image_contain"{/if}/>
  161.                                                     </a>
  162.                                                 </div>
  163.                                             </div>
  164.                                         {/foreach}
  165.                                     </div>
  166.                                 </div>
  167.                             {/if}
  168.                         </div>
  169.                     </div> <!-- .card-slider -->
  170.                 </div>
  171.                 <div class="shop2-product__right">
  172.                     <div class="shop2-product-additional">
  173.                         <div class="shop2-product-additional__left">
  174.                             {if $shop2.my.gr_product_h1_in_block}
  175.                                 <div class="gr-product-name">
  176.                                     <h1>{$h1|default:$page.h1|default:$page.name}</h1>
  177.                                 </div>
  178.                             {/if}
  179.                             <div class="shop2-product-additional__top">
  180.                                 {include file="global:shop2.2.130-product-article.tpl"}
  181.                                 {include file="global:shop2.2.130-rating.tpl"}
  182.                                 {if !$shop2.my.hide_vendor_name && $product.vendor_name !='' && $shop2.my.gr_thumbs_vendor}
  183.                                     <div class="gr-vendor-block">
  184.                                         <a href="{get_seo_url uri_prefix=$shop2.uri mode="vendor" alias=$product.vendor_alias}">{$product.vendor_name}</a>
  185.                                     </div>
  186.                                 {/if}
  187.                             </div>
  188.                             {if $product.note}
  189.                                 <div class="gr-product-anonce">
  190.                                     {$product.note|nl2br}
  191.                                 </div>
  192.                             {/if}
  193.                             {include file="global:shop2.2.130-product-options.tpl"}
  194.                         </div>
  195.                         <div class="shop2-product-additional__right">
  196.                             {include file="global:shop2.2.130-product-actions.tpl"}
  197.                             <div class="form-additional{if !$shop2.json.compare} form_additional_no_compare{/if}">
  198.                                 <div class="form-additional__top">
  199.                                     {if $shop2.my.gr_amount_flag}
  200.                                         {*if $product.buy_mode==1}
  201.                                             <div class="gr-amount-flag no_amount">
  202.                                                 {if $shop2.my.amount_flag_icon}
  203.                                                     <i>
  204.                                                         <svg class="gr-svg-icon">
  205.                                                             <use xlink:href="#icon_shop_not_available"></use>
  206.                                                         </svg>
  207.                                                         <svg class="gr-svg-icon gr_small_icon">
  208.                                                             <use xlink:href="#icon_shop_not_available_small"></use>
  209.                                                         </svg>
  210.                                                     </i>
  211.                                                 {/if}
  212.                                                 <span>{$shop2.my.gr_no_amount|default:'Нет в наличии'}</span>
  213.                                             </div>
  214.                                         {elseif $product.buy_mode==2 || $product.buy_mode==3}
  215.                                             <div class="gr-amount-flag pre_order">
  216.                                                 {if $shop2.my.amount_flag_icon}
  217.                                                     <i>
  218.                                                         <svg class="gr-svg-icon">
  219.                                                             <use xlink:href="#icon_shop_pre_order"></use>
  220.                                                         </svg>
  221.                                                         <svg class="gr-svg-icon gr_small_icon">
  222.                                                             <use xlink:href="#icon_shop_pre_order_small"></use>
  223.                                                         </svg>
  224.                                                     </i>
  225.                                                 {/if}
  226.                                                 <span>{$shop2.my.gr_has_amount_pre|default:'Предзаказ'}</span>
  227.                                             </div>
  228.                                         {else}
  229.                                             {if $product.amount>0}
  230.                                                 <div class="gr-amount-flag has_amount">
  231.                                                     {if $shop2.my.amount_flag_icon}
  232.                                                         <i>
  233.                                                             <svg class="gr-svg-icon">
  234.                                                                 <use xlink:href="#icon_shop_available"></use>
  235.                                                             </svg>
  236.                                                             <svg class="gr-svg-icon gr_small_icon">
  237.                                                                 <use xlink:href="#icon_shop_available_small"></use>
  238.                                                             </svg>
  239.                                                         </i>
  240.                                                     {/if}
  241.                                                     <span>{$shop2.my.gr_has_amount|default:'В наличии'}{if $product.amount>0} <ins>{$product.amount}</ins>{/if}</span>
  242.                                                 </div>
  243.                                             {/if}
  244.                                         {/if*}
  245.                                         {if $product.amount>0}
  246.                                             <div class="gr-amount-flag has_amount">
  247.                                                 {if $shop2.my.amount_flag_icon}
  248.                                                     <i>
  249.                                                         <svg class="gr-svg-icon">
  250.                                                             <use xlink:href="#icon_shop_available"></use>
  251.                                                         </svg>
  252.                                                         <svg class="gr-svg-icon gr_small_icon">
  253.                                                             <use xlink:href="#icon_shop_available_small"></use>
  254.                                                         </svg>
  255.                                                     </i>
  256.                                                 {/if}
  257.                                                 <span>{$shop2.my.gr_has_amount|default:'В наличии'}{if $product.amount>0} <ins>{$product.amount}</ins>{/if}</span>
  258.                                             </div>
  259.                                         {/if}
  260.                                     {/if}
  261.                                     {if $show_price}
  262.                                         <div class="product-price">
  263.                                             {if !$show_price_on_request}
  264.                                                 {include file="global:shop2.2.130-product-price-old.tpl"}
  265.                                             {/if}
  266.                                             {include file="global:shop2.2.130-product-price.tpl" obj=$product}
  267.                                         </div>
  268.                                     {/if}
  269.                                 </div>
  270.                                 {if $show_price}
  271.                                     <div class="form-additional__btns">
  272.                                         {*if $shop2.my.gr_info_form}
  273.                                             {if $product.buy_mode==1}
  274.                                                 {if !empty($product_info_form.my_form.dictionaries)}
  275.                                                     <div class="buy-one-click buy_one_click product_info_form{if $site.product_settings.mode_catalog || $site.gr_settings.mode_catalog} buy_one_click_action{/if}"
  276.                                                         data-remodal-target="buy-one-click"
  277.                                                         data-product-link="{$smarty.server.PROTOCOL}://{$smarty.server.HTTP_HOST}{get_seo_url uri_prefix=$shop2.uri mode="product" alias=$product.alias}"
  278.                                                         data-product-name="{$h1|default:$page.h1|default:$page.name}"
  279.                                                         data-api-url="{if $shop2.my.gr_one_click_placeholder}{$product_info_form.my_form.postform_api_uri}&param[tpl]=global:shop2.form.minimal.tpl&param[hide_title]=0&param[placeholdered_fields]=1&param[product_name]={$product.name}{else}{$product_info_form.my_form.postform_api_uri}&param[tpl]=global:shop2.form.minimal.tpl&param[hide_title]=0&param[placeholdered_fields]=0&param[product_name]={$product.name}{/if}">
  280.                                                         {$shop2.my.product_info_form|default:'Узнать о появлении'}
  281.                                                     </div>
  282.                                                 {/if}
  283.                                             {else}
  284.                                                 {include file="global:shop2.2.130-amount-btn.tpl" class="product-amount"}
  285.                                                 {if !$show_price_on_request}
  286.                                                     {include file="global:shop2.2.130-buy-btn.tpl" type=3}
  287.                                                 {/if}
  288.                                             {/if}
  289.                                         {else*}
  290.                                             {include file="global:shop2.2.130-amount-btn.tpl" class="product-amount"}
  291.                                             {if !$show_price_on_request}
  292.                                                 {include file="global:shop2.2.130-buy-btn.tpl" type=3}
  293.                                             {/if}
  294.                                         {*/if*}
  295.                                         <div class="clear">&nbsp;</div>
  296.                                        
  297.                                         {if $product.buy_mode==5 && $product.amount == 0}
  298.                                             <div class="buy-one-click buy_one_click product_info_form preorder-btn-js preorder-btn"
  299.                                                 {if $user.email}data-user-email="{$user.email}"{/if}
  300.                                                 data-product-kind_id="{$product.kind_id}"
  301.                                                 {*data-remodal-target="buy-one-click"*}
  302.                                             >
  303.                                                 {$shop2.my.gr_product_info_form|default:'Узнать о появлении'}
  304.                                             </div>
  305.                                         {/if}
  306.                                     </div>
  307.                                 {/if}
  308.                                 {*if $shop2.my.gr_info_form}
  309.                                     {if $product.buy_mode!=1}
  310.                                         {if !empty($one_click_form.my_form.dictionaries)}
  311.                                             <div class="buy-one-click buy_one_click{if $site.product_settings.mode_catalog || $site.gr_settings.mode_catalog} buy_one_click_action{/if}"
  312.                                                 data-remodal-target="buy-one-click"
  313.                                                 data-product-link="{$smarty.server.PROTOCOL}://{$smarty.server.HTTP_HOST}{get_seo_url uri_prefix=$shop2.uri mode="product" alias=$product.alias}"
  314.                                                 data-product-name="{$h1|default:$page.h1|default:$page.name}"
  315.                                                 data-api-url="{if $shop2.my.gr_one_click_placeholder}{$one_click_form.my_form.postform_api_uri}&param[tpl]=global:shop2.form.minimal.tpl&param[hide_title]=0&param[placeholdered_fields]=1&param[product_name]={$product.name}{else}{$one_click_form.my_form.postform_api_uri}&param[tpl]=global:shop2.form.minimal.tpl&param[hide_title]=0&param[placeholdered_fields]=0&param[product_name]={$product.name}{/if}">
  316.                                                 {$shop2.my.gr_one_click_btn|default:'Купить в 1 клик'}
  317.                                             </div>
  318.                                         {/if}
  319.                                     {/if}
  320.                                 {else*}
  321.                                     {if !empty($one_click_form.my_form.dictionaries) && $product.buy_mode!=1 && $product.buy_mode!=5}
  322.                                         <div class="buy-one-click buy_one_click{if $site.product_settings.mode_catalog || $site.gr_settings.mode_catalog} buy_one_click_action{/if}"
  323.                                             data-remodal-target="buy-one-click"
  324.                                             data-product-link="{$smarty.server.PROTOCOL}://{$smarty.server.HTTP_HOST}{get_seo_url uri_prefix=$shop2.uri mode="product" alias=$product.alias}"
  325.                                             data-product-name="{$h1|default:$page.h1|default:$page.name}"
  326.                                             data-api-url="{if $shop2.my.gr_one_click_placeholder}{$one_click_form.my_form.postform_api_uri}&param[tpl]=global:shop2.form.minimal.tpl&param[hide_title]=0&param[placeholdered_fields]=1&param[product_name]={$product.name}{else}{$one_click_form.my_form.postform_api_uri}&param[tpl]=global:shop2.form.minimal.tpl&param[hide_title]=0&param[placeholdered_fields]=0&param[product_name]={$product.name}{/if}">
  327.                                             {$shop2.my.gr_one_click_btn|default:'Купить в 1 клик'}
  328.                                         </div>
  329.                                     {/if}
  330.                                 {*/if*}
  331.                                
  332.                                 {include file="global:shop2.2.130-product-compare-btn.tpl"}
  333.                                 {if $shop2.my.gr_favorite}
  334.                                     {include file="global:shop2.2.130-favorite.tpl" data=$product}
  335.                                 {/if}
  336.                                
  337.                                 {if $product.meta.gr_samovyvoz_besplatno!='' || $product.meta.gr_besplatnaa_dostavka!=''}
  338.                                     <div class="order-info-block">
  339.                                         {if $product.meta.gr_samovyvoz_besplatno!=''}
  340.                                             <div class="order-info-block__item gr_samovyvoz_besplatno">
  341.                                                 <div class="order-info-block__item-body">
  342.                                                     <div class="order-info-block__title">
  343.                                                         <span>
  344.                                                             <ins>{$meta.gr_samovyvoz_besplatno.name}</ins>
  345.                                                             <i>
  346.                                                                 <svg class="gr-svg-icon gr_small_icon">
  347.                                                                      <use xlink:href="#icon_shop_delivery_info_small"></use>
  348.                                                                 </svg>
  349.                                                             </i>
  350.                                                         </span>
  351.                                                     </div>
  352.                                                     <div class="order-info-block__popup">
  353.                                                         <div class="order-info-block__close">
  354.                                                             <svg class="gr-svg-icon gr_big_icon">
  355.                                                                 <use xlink:href="#icon_shop_close"></use>
  356.                                                             </svg>
  357.                                                             <svg class="gr-svg-icon">
  358.                                                                 <use xlink:href="#icon_shop_close_small"></use>
  359.                                                             </svg>
  360.                                                             <svg class="gr-svg-icon gr_small_icon">
  361.                                                                 <use xlink:href="#icon_shop_close_mini"></use>
  362.                                                             </svg>
  363.                                                         </div>
  364.                                                         <div class="order-info-block__subtitle">{$meta.gr_samovyvoz_besplatno.name}</div>
  365.                                                         <div class="order-info-block__desc">{$product.meta.gr_samovyvoz_besplatno}</div>
  366.                                                     </div>
  367.                                                 </div>
  368.                                             </div>
  369.                                         {/if}
  370.                                         {if $product.meta.gr_besplatnaa_dostavka!=''}
  371.                                             <div class="order-info-block__item gr_besplatnaa_dostavka">
  372.                                                 <div class="order-info-block__item-body">
  373.                                                     <div class="order-info-block__title">
  374.                                                         <span>
  375.                                                             <ins>{$meta.gr_besplatnaa_dostavka.name}</ins>
  376.                                                             <i>
  377.                                                                 <svg class="gr-svg-icon gr_small_icon">
  378.                                                                      <use xlink:href="#icon_shop_info2_small"></use>
  379.                                                                 </svg>
  380.                                                             </i>
  381.                                                         </span>
  382.                                                     </div>
  383.                                                     <div class="order-info-block__popup">
  384.                                                         <div class="order-info-block__close">
  385.                                                             <svg class="gr-svg-icon gr_big_icon">
  386.                                                                 <use xlink:href="#icon_shop_close"></use>
  387.                                                             </svg>
  388.                                                             <svg class="gr-svg-icon">
  389.                                                                 <use xlink:href="#icon_shop_close_small"></use>
  390.                                                             </svg>
  391.                                                             <svg class="gr-svg-icon gr_small_icon">
  392.                                                                 <use xlink:href="#icon_shop_close_mini"></use>
  393.                                                             </svg>
  394.                                                         </div>
  395.                                                         <div class="order-info-block__subtitle">{$meta.gr_besplatnaa_dostavka.name}</div>
  396.                                                         <div class="order-info-block__desc">{$product.meta.gr_besplatnaa_dostavka}</div>
  397.                                                     </div>
  398.                                                 </div>
  399.                                             </div>
  400.                                         {/if}
  401.                                     </div>
  402.                                 {/if}
  403.                                
  404.                                 {if !$shop2.my.hide_share}
  405.                                     <div class="shop-product-share">
  406.                                         <div class="shop-product-share__title">{$shop2.my.gr_product_share_title|default:#GR_SHOP2_SHARE#}</div>
  407.                                         <div class="shop-product-share__body">
  408.                                             {if $shop2.my.gr_product_share_lazy}
  409.                                                 <noscript id="product-yashare-noscript">
  410.                                                     <script src="https://yastatic.net/es5-shims/0.0.2/es5-shims.min.js"></script>
  411.                                                     <script src="https://yastatic.net/share2/share.js"></script>
  412.                                                 </noscript>
  413.                                             {else}
  414.                                                 <script src="https://yastatic.net/es5-shims/0.0.2/es5-shims.min.js"></script>
  415.                                                 <script src="https://yastatic.net/share2/share.js"></script>
  416.                                             {/if}
  417.                                             <div class="ya-share2" data-services="{$shop2.my.gr_product_share_body|default:'messenger,vkontakte,odnoklassniki,telegram,viber,whatsapp'|escape}"></div>
  418.                                         </div>
  419.                                     </div> <!-- .shop-product-share -->
  420.                                 {/if}
  421.                                
  422.                                 {if $shop2.my.gr_product_print}
  423.                                 <div class="gr-shop-print">
  424.                                     <div class="gr-shop-print__btn">
  425.                                         <a href="{$smarty.server.PROTOCOL}://{$site.domain_mask}/{$product.alias}?print=1&products_only=1" target="_blank">
  426.                                             <span>
  427.                                                 <ins>{#SHOP2_PRINT#}</ins>
  428.                                                 <i>
  429.                                                     <svg class="gr-svg-icon">
  430.                                                         <use xlink:href="#icon_shop_print"></use>
  431.                                                     </svg>
  432.                                                     <svg class="gr-svg-icon gr_small_icon">
  433.                                                         <use xlink:href="#icon_shop_print_small"></use>
  434.                                                     </svg>
  435.                                                 </i>
  436.                                             </span>
  437.                                         </a>
  438.                                     </div>
  439.                                 </div>
  440.                                 {/if}
  441.                             </div>
  442.                         </div>
  443.                     </div>
  444.                 </div>
  445.             </form ><!-- .shop2-product -->
  446.         </div>
  447.        
  448.         <div class="card-page__bottom">
  449.            
  450.             {assign var=gr_product_item_desc value=$shop2.my.gr_product_item_desc|default:'global:shop2.2.130-product-item-desc.tpl'}
  451.             {include file=$gr_product_item_desc}
  452.            
  453.             {if $shop2.my.gr_comments_out}
  454.                 {assign var=gr_comments_block value=$shop2.my.gr_comments_block|default:'global:shop2.2.130-comments.tpl'}
  455.                 {include file=$gr_comments_block comments=$product.comments.items form=$product.comments.fields comments_success=$product.comments.comments_success}
  456.             {/if}
  457.            
  458.             {if $tags_full}
  459.                 <div class="shop-product-tags">
  460.                     <div class="shop-product-tags__title"><span>{$shop2.my.gr_product_tags_title|default:#SHOP2_TAGS#}</span></div>
  461.                     <div class="shop-product-tags__items">
  462.                         {foreach from=$tags_full item=e key=k name=foo}
  463.                             <a href="{get_seo_url mode="tag" url=$e.url}" class="shop-product-tags__item">
  464.                                 <span>
  465.                                     {$e.tag|htmlspecialchars}
  466.                                     <i>
  467.                                         <svg class="gr-svg-icon">
  468.                                             <use xlink:href="#icon_shop_tag_arr"></use>
  469.                                         </svg>
  470.                                         <svg class="gr-svg-icon gr_small_icon">
  471.                                             <use xlink:href="#icon_shop_tag_arr_small"></use>
  472.                                         </svg>
  473.                                     </i>
  474.                                 </span>
  475.                             </a>
  476.                         {/foreach}
  477.                     </div>
  478.                 </div>
  479.             {/if}
  480.            
  481.             {include file="global:shop2.2.130-product-in-folders.tpl"}
  482.            
  483.             {assign var=gr_collections_blocks value=$shop2.my.gr_collections_blocks|default:'global:shop2.2.130-product-item-collections-blocks.tpl'}
  484.             {include file=$gr_collections_blocks}
  485.            
  486.             {if !empty($one_click_form.my_form.dictionaries)}
  487.                 <div class="remodal" data-remodal-id="buy-one-click" role="dialog" data-remodal-options="hashTracking: false">
  488.                     <button data-remodal-action="close" class="remodal-close-btn">
  489.                         <span>
  490.                             {$shop2.my.gr_remodal_close|default:'Закрыть'}
  491.                             <i>
  492.                                 <svg class="gr-svg-icon gr_big_icon">
  493.                                     <use xlink:href="#icon_shop_close"></use>
  494.                                 </svg>
  495.                                 <svg class="gr-svg-icon">
  496.                                     <use xlink:href="#icon_shop_close_small"></use>
  497.                                 </svg>
  498.                                 <svg class="gr-svg-icon gr_small_icon">
  499.                                     <use xlink:href="#icon_shop_close_mini"></use>
  500.                                 </svg>
  501.                             </i>
  502.                         </span>
  503.                     </button>
  504.                 </div>
  505.             {/if}
  506.            
  507.             {if $site.additional_work.schema_org && $shop2.my.gr_schema_org}
  508.                 <div itemscope itemtype="{$smarty.server.PROTOCOL}://schema.org/Product" style="display: none;">
  509.                     <meta itemprop="sku" content="{$product.product_id}" />
  510.                     <meta itemprop="name" content="{$product.name}">
  511.                     {if $product.vendor_name}<meta itemprop="brand" content="{$product.vendor_name}">{/if}
  512.                     {if $product.image_filename}<meta itemprop="image" content="{$smarty.server.PROTOCOL}://{$site.domain_mask}{s3_img width=$card_image_width height=$card_image_height src=$product.image_filename method=$shop2.my.s3_img_method}">{/if}
  513.                     {assign var="l_shop2_no_description" value="SHOP2_NO_DESCRIPTION"|l}
  514.                     <meta itemprop="description" content="{$product.note|default:$l_shop2_no_description}">
  515.            
  516.                     <div itemprop="offers" itemscope itemtype="{$smarty.server.PROTOCOL}://schema.org/Offer">
  517.                         <meta itemprop="price" content="{$product.price}">
  518.                         <meta itemprop="priceCurrency" content="{$currency.currency_symbol}">
  519.                         {if $product.buy_mode==1}
  520.                             <link itemprop="availability" href="http://schema.org/OutOfStock"/>
  521.                         {else}
  522.                             <link itemprop="availability" href="http://schema.org/InStock"/>
  523.                         {/if}
  524.                         <link itemprop="url" href="{$smarty.server.PROTOCOL}://{$site.domain_mask}{get_seo_url mode="product" alias=$product.alias}">
  525.                     </div>
  526.                     {if $product.rating.value >= 1}
  527.                         <div itemprop="aggregateRating" itemscope itemtype="{$smarty.server.PROTOCOL}://schema.org/AggregateRating">
  528.                             <meta itemprop="ratingValue" content="{$product.rating.value|round}">
  529.                             <meta itemprop="ratingCount" content="{$product.rating.count}">
  530.                             <meta itemprop="bestRating" content="5">
  531.                             <meta itemprop="worstRating" content="1">
  532.                         </div>
  533.                     {/if}
  534.                 </div>
  535.             {/if}
  536.         </div>
  537.     </div>
  538.    
  539.     {if $card_blocks|@count>0}
  540.         <div class="card-blocks">
  541.             {foreach from=$card_blocks item=e}
  542.                 {if $e.type == 1}
  543.                     {if !$e.hide_block && (!empty($e.blocks) || $e.title)}
  544.                         <div class="card-block card-block-1">
  545.                             <div class="card-block-1__inner">
  546.                                 {if $e.title}<div class="card-block-1__header">{$e.title}</div>{/if}
  547.                                 {if !empty($e.blocks)}
  548.                                     <div class="card-block-1__items">
  549.                                         {foreach from=$e.blocks item=j}
  550.                                             {if $j.title || $j.text || ($j.image.filename || $j.image.svg_body)}
  551.                                                 <div class="card-block-1__item">
  552.                                                     {if $j.image.filename || $j.image.svg_body}
  553.                                                         <div class="card-block-1__icon">
  554.                                                             {if $j.image.svg_body}
  555.                                                                 {$j.image.svg_body|htmlspecialchars_decode}
  556.                                                             {else}
  557.                                                                 {if $shop2.my.gr_images_lazy_load}
  558.                                                                     <img src="/g/spacer.gif" data-src="{s3_img width=72 height=72 method=c src=$j.image.filename}" class="gr_images_lazy_load" alt="{$j.title}" title="{$j.title}" />
  559.                                                                 {else}
  560.                                                                     <img src="{s3_img width=72 height=72 method=c src=$j.image.filename}" alt="{$j.title}" title="{$j.title}" />
  561.                                                                 {/if}
  562.                                                             {/if}
  563.                                                         </div>
  564.                                                     {/if}
  565.                                                     {if $j.title || $j.text}
  566.                                                         <div class="card-block-1__text">
  567.                                                             {if $j.title}<div class="card-block-1__title"{if !$j.image.filename} style="margin-top: 0;"{/if}>{$j.title}</div>{/if}
  568.                                                             {if $j.text}<div class="card-block-1__desc"{if !$j.image.filename && !$j.title} style="margin-top: 0;"{/if}>{$j.text}</div>{/if}
  569.                                                         </div>
  570.                                                     {/if}
  571.                                                 </div>
  572.                                             {/if}
  573.                                         {/foreach}
  574.                                     </div>
  575.                                 {/if}
  576.                             </div>
  577.                         </div>
  578.                     {/if}
  579.                 {elseif $e.type == 2}
  580.                     {if !$e.hide_block && (!empty($e.blocks) || $e.title)}
  581.                         <div class="card-block card-block-2">
  582.                             <div class="card-block-2__inner">
  583.                                 {if $e.title}<div class="card-block-2__header">{$e.title}</div>{/if}
  584.                                 {if !empty($e.blocks)}
  585.                                     <div class="card-block-2__items">
  586.                                         {foreach from=$e.blocks item=j key=card_block_2_key}
  587.                                             {if $j.title || $j.text}
  588.                                                 <div class="card-block-2__item">
  589.                                                     <div class="card-block-2__num">{$card_block_2_key+1}</div>
  590.                                                     <div class="card-block-2__text">
  591.                                                         {if $j.title}<div class="card-block-2__title">{$j.title}</div>{/if}
  592.                                                         {if $j.text}<div class="card-block-2__desc">{$j.text}</div>{/if}
  593.                                                     </div>
  594.                                                 </div>
  595.                                             {/if}
  596.                                         {/foreach}
  597.                                     </div>
  598.                                 {/if}
  599.                             </div>
  600.                         </div>
  601.                     {/if}
  602.                 {elseif $e.type == 3}
  603.                     {if !$e.hide_block && (!empty($e.blocks) || $e.title)}
  604.                         <div class="card-block card-block-3">
  605.                             <div class="card-block-3__inner">
  606.                                 {if $e.title}<div class="card-block-3__header">{$e.title}</div>{/if}
  607.                                 {if !empty($e.blocks)}
  608.                                     <div class="card-block-3__items">
  609.                                         {foreach from=$e.blocks item=j}
  610.                                             {if $j.title || $j.text}
  611.                                                 <div class="card-block-3__item">
  612.                                                     {if $j.image.filename}
  613.                                                         <div class="card-block-3__pic">
  614.                                                             {if $shop2.my.gr_images_lazy_load}
  615.                                                                 <img src="/g/spacer.gif" data-src="{s3_img width=220 height=220 method=c src=$j.image.filename}" class="gr_images_lazy_load" alt="{$j.title}" title="{$j.title}" />
  616.                                                             {else}
  617.                                                                 <img src="{s3_img width=220 height=220 method=c src=$j.image.filename}" alt="{$j.title}" title="{$j.title}" />
  618.                                                             {/if}
  619.                                                         </div>
  620.                                                     {/if}
  621.                                                     <div class="card-block-3__text"{if !$j.image.filename} style="width: 100%;"{/if}>
  622.                                                         {if $j.title}<div class="card-block-3__title">{$j.title}</div>{/if}
  623.                                                         {if $j.text}<div class="card-block-3__desc">{$j.text}</div>{/if}
  624.                                                     </div>
  625.                                                 </div>
  626.                                             {/if}
  627.                                         {/foreach}
  628.                                     </div>
  629.                                 {/if}
  630.                             </div>
  631.                         </div>
  632.                     {/if}
  633.                 {/if}
  634.             {/foreach}
  635.         </div>
  636.     {/if}
  637.    
  638. {/if}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement