Igor150195

кто-то сломал заменив на 2.2.65

Apr 15th, 2020
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Smarty 16.90 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. {if isset($smarty.get.product_preview)}
  7.     {assign var="show_price" value=0}
  8.     {if !(!$user && $shop2.my.hide_prices_non_reg)}
  9.         {assign var="show_price" value=1}
  10.     {/if}
  11.  
  12.     <div class="product-wrapper {if !$product.params.images}no-smal-pic{/if}">
  13.         <form
  14.         method="post"
  15.         action="{$shop2.uri}?mode=cart&amp;action=add"
  16.         accept-charset="utf-8"
  17.         class="shop-product clear-self">
  18.  
  19.         <input type="hidden" name="kind_id" value="{$product.kind_id}"/>
  20.         <input type="hidden" name="product_id" value="{$product.product_id}"/>
  21.         <input type="hidden" name="meta" value='{$product.meta|@json_encode|escape}'/>
  22.        
  23.         <div class="product-side-l">
  24.             <div class="product-image{if !$product.image_filename} no-image{/if}" title="{$product.name|htmlspecialchars}">
  25.                 <div class="product-image-in">
  26.                 {if $product.new || $product.price_old}
  27.                 <div class="product-label">
  28.                     {if $product.new}<div class="product-new">{$shop2.my.new_alias|default:#SHOP2_NEW#}</div>{/if}
  29.                     {if !empty($product.flags)}
  30.                         <div class="product-sale">
  31.                             {foreach from=$product.flags item=flag_id key=k name=foo}
  32.                                
  33.                                 {assign var=flag value=$product_flag.$flag_id}
  34.                                 {assign var=spec value=$product.special}
  35.                                 {assign var=new value=$product.new}
  36.                                 {if $smarty.foreach.foo.iteration <= 3}
  37.                                     {if $flag.flag_id != '1' && $flag.flag_id != '2'}
  38.                                         <div style="background: {$flag.color};border-radius: 50%;">{$flag.name}</div>
  39.                                     {/if}
  40.                                 {/if}
  41.                             {/foreach}
  42.                         </div>
  43.                     {/if}
  44.                     {if $product.price_old}
  45.                     <div class="product-sale">{strip}
  46.                         {if $product.price_old > $product.price}
  47.                             -{math assign=product_discount equation="(x - y) / x * z" x=$product.price_old y=$product.price z=100}
  48.                         {else}
  49.                             +{math assign=product_discount equation="(y - x) / y * z" x=$product.price_old y=$product.price z=100}
  50.                         {/if}
  51.                         {$product_discount|round}%{/strip}
  52.                     </div>
  53.                     {/if}
  54.                 </div>
  55.                 {/if}
  56.                 {if $product.special}
  57.                     <div class="product-spec">
  58.                         {$shop2.my.special_alias|default:#SHOP2_SPECIAL#}
  59.                     </div>
  60.                 {/if}
  61.                     {if $product.image_filename}
  62.                     <a href="{$IMAGES_DIR}{$product.image_filename}" class="product-image-a">
  63.                       <img src="{if $shop2.card_image_width == 360}{s3_img src=$product.image_filename width=360 height=360 method=$shop2.my.s3_img_method}{else}{s3_img width=360 height=360 src=$product.image_filename method=$shop2.my.s3_img_method} {/if}" alt="{$product.name|htmlspecialchars}" title="{$product.name|htmlspecialchars}" />
  64.                     </a>
  65.                     {else}
  66.                         <a href="{$IMAGES_DIR}{$product.image_filename}">
  67.                             <img class="no-image" src="/g/spacer.gif" alt="{$product.name|htmlspecialchars}" title="{$product.name|htmlspecialchars}" width="360" />
  68.                         </a>
  69.                     {/if}
  70.                     {foreach from=$product.params.images item=img key=k}
  71.                         <a href="{$IMAGES_DIR}{$img.filename}" style="display: none;" class="product-image-a">
  72.                             <img src="{if $shop2.card_image_width == 360}{s3_img src=$img.filename width=360 height=360 method=$shop2.my.s3_img_method}{else}{s3_img width=360 height=360 src=$img.filename method=$shop2.my.s3_img_method} {/if}" alt="{$product.name|htmlspecialchars}" title="{$product.name|htmlspecialchars}" />
  73.                         </a>
  74.                     {/foreach}
  75.                 </div>     
  76.             </div>   
  77.             {if $product.params.images}
  78.             <div class="product-thumbnails-wrapper1">
  79.                 <div class="product-thumbnails-wrapper">
  80.                     <ul  class="product-thumbnails">
  81.                         {assign var="width" value=$shop2.my.small_images_width}
  82.                         {if !$width}
  83.                             {assign var="width" value=474}
  84.                             {assign var="width" value=474}
  85.                         {/if}
  86.                         {if $product.image_filename}
  87.                         <li class="active"><a href="{$IMAGES_DIR}{$product.image_filename}" class="active">
  88.                           <img src="{s3_img src=$product.image_filename width=$width height=$width method=$shop2.my.s3_img_method}" alt="{$product.name|htmlspecialchars}" title="{$product.name|htmlspecialchars}"  />
  89.                         </a><div class="verticalMiddle"></div></li>
  90.                         {/if}
  91.                         {foreach from=$product.params.images item=img key=k}
  92.                             <li>
  93.                                 <a href="{$IMAGES_DIR}{$img.filename}">
  94.                                     <img src="{s3_img src=$img.filename width=$width height=$width method=$shop2.my.s3_img_method}" alt="" />
  95.                                 </a>
  96.                                
  97.                             </li>
  98.                         {/foreach}
  99.                     </ul>
  100.                 </div>
  101.             </div>
  102.             {/if}
  103.  
  104.         </div>
  105.         <div class="product-side-r">
  106.             <div class="form-add">
  107.                 <div class="form-add-in">
  108.                     <div class="stars-wrap">
  109.                         {include file="global:shop2.v2-rating.tpl"}
  110.                     </div>
  111.                     <div class="product-name"><a class="link-reset" href='{get_seo_url uri_prefix=$shop2.uri mode="product" alias=$product.alias}'>{$product.name}</a></div>
  112.                     {include file="global:shop2.v2-product-article.tpl"}
  113.                     <div class="product-options-wrapper">
  114.                         {include file="global:shop2.2.65-product-options.tpl"}
  115.                     </div>
  116.                     <div class="product-compare-btn-wrapper">
  117.                         {if $site.size_table_link !=""}
  118.                             <a href="{$site.size_table_link}" target="_blank" class="size-table-link">{#SHOP2_SIZES_TABLE#}</a>
  119.                         {/if}
  120.                         {include file="global:shop2.2.65-product-compare-btn.tpl"}
  121.                     </div>
  122.                     {include file="global:shop2.v2-product-actions.tpl"}
  123.                     {if $show_price}
  124.                     <div class="product-price-wrapper">
  125.                         <div class="product-price-in">
  126.                             {include file="global:shop2.v2-product-price-old.tpl"}
  127.                             {include file="global:shop2.v2-product-price.tpl" obj=$product}
  128.                         </div>
  129.                         <div class="shop-product-button-wrapper">
  130.                             {include file="global:shop2.v2-amount-btn.tpl" class="product-amount"}             
  131.                             {if $product.buy_mode != 1}
  132.                             <div class="buy-one-click"><a href="#">{$shop2.my.buy_in_one_click|default:#SHOP2_BUY_IN_ONE_CLICK#}</a></div>
  133.                             {/if}
  134.                             {if $show_price}
  135.                                 {include file="global:shop2.2.65-buy-btn.tpl" type=3}
  136.                             {/if}  
  137.                         </div>
  138.                     </div>
  139.                     {/if}
  140.                 </div>
  141.                
  142.             </div>
  143.             {if !$shop2.my.hide_share}
  144.            
  145.                 {if $shop2.my.gr_yandex_share}
  146.                
  147.                     <script type="text/javascript" src="https://yandex.st/share/share.js" charset="utf-8"></script>
  148.                    
  149.                     {literal}
  150.                    
  151.                         <script src="//yastatic.net/es5-shims/0.0.2/es5-shims.min.js"></script>
  152.                         <script src="//yastatic.net/share2/share.js"></script>
  153.                                            
  154.                     {/literal}
  155.                    
  156.                     <div class="ya-share2" data-services="vkontakte,facebook,odnoklassniki,twitter"></div>
  157.                
  158.                    
  159.                 {else}
  160.                
  161.                     <div class="yashare">
  162.                         <script type="text/javascript" src="https://yandex.st/share/share.js" charset="utf-8"></script>
  163.                         {literal}
  164.                         <style type="text/css">
  165.                             div.yashare span.b-share a.b-share__handle img,
  166.                             div.yashare span.b-share a.b-share__handle span {
  167.                                 background-image: url("https://yandex.st/share/static/b-share-icon.png");
  168.                             }
  169.                         </style>
  170.                         {/literal}
  171.                         {literal}
  172.                         <script type="text/javascript">(function() {
  173.                           if (window.pluso)if (typeof window.pluso.start == "function") return;
  174.                           if (window.ifpluso==undefined) { window.ifpluso = 1;
  175.                             var d = document, s = d.createElement('script'), g = 'getElementsByTagName';
  176.                             s.type = 'text/javascript'; s.charset='UTF-8'; s.async = true;
  177.                             s.src = ('https:' == window.location.protocol ? 'https' : 'http')  + '://share.pluso.ru/pluso-like.js';
  178.                             var h=d[g]('body')[0];
  179.                             h.appendChild(s);
  180.                           }})();</script>
  181.                         {/literal}
  182.                         <div class="pluso" data-background="transparent" data-options="medium,square,line,horizontal,nocounter,theme=04" data-services="vkontakte,odnoklassniki,facebook,twitter"></div>
  183.                     </div>
  184.                    
  185.                 {/if}
  186.             {/if}  
  187.         </div>
  188.     </form><!-- Product -->
  189.     </div>
  190.     {if $product.buy_mode != 1}
  191. <div class="buy-one-click-form-wr">
  192.     <div class="buy-one-click-form-in">
  193.         {include file="global:form.minimal.2.2.65.tpl" anketa=$one_click_form.my_form closeBtn=true}
  194.     </div>
  195. </div>
  196. {/if}
  197. {else}
  198.  
  199. {if $shop2.next_prev_link && !$shop2.fallback_mode}
  200. <div class="shop2-product-navigation">
  201. <!--noindex--><a rel="nofollow" class="shop2-btn" href="{get_seo_url uri_prefix=$shop2.uri uri_postfix="prev" mode="product" alias=$product.alias}">{'SHOP2_PRODUCT_PREV'|l}</a><!--/noindex-->
  202. <!--noindex--><a rel="nofollow" class="shop2-btn" href="{get_seo_url uri_prefix=$shop2.uri uri_postfix="next" mode="product" alias=$product.alias}">{'SHOP2_PRODUCT_NEXT'|l}</a><!--/noindex-->
  203. </div>
  204. {/if}
  205.  
  206.     <form
  207.         method="post"
  208.         action="{$shop2.uri}?mode=cart&amp;action=add"
  209.         accept-charset="utf-8"
  210.         class="shop-product clear-self">
  211.  
  212.         <input type="hidden" name="kind_id" value="{$product.kind_id}"/>
  213.         <input type="hidden" name="product_id" value="{$product.product_id}"/>
  214.         <input type="hidden" name="meta" value='{$product.meta|@json_encode|escape}'/>
  215.        
  216.         <div class="product-side-l">
  217.             <div class="mobil-art">
  218.                 <div class="stars-wrap">
  219.                     {include file="global:shop2.v2-rating.tpl"}
  220.                 </div>
  221.                 {include file="global:shop2.v2-product-article.tpl"}
  222.             </div>
  223.             <div class="product-image{if !$product.image_filename} no-image{/if}" title="{$product.name|htmlspecialchars}">
  224.                 <div class="product-image-in">
  225.                     {if $product.new || $product.price_old}
  226.                     <div class="product-label">
  227.                         {if $product.new}<div class="product-new">{$shop2.my.new_alias|default:#SHOP2_NEW#}</div>{/if}
  228.                         {if !empty($product.flags)}
  229.                             <div class="product-sale">
  230.                                 {foreach from=$product.flags item=flag_id key=k name=foo}
  231.                                    
  232.                                     {assign var=flag value=$product_flag.$flag_id}
  233.                                     {assign var=spec value=$product.special}
  234.                                     {assign var=new value=$product.new}
  235.                                     {if $smarty.foreach.foo.iteration <= 3}
  236.                                         {if $flag.flag_id != '1' && $flag.flag_id != '2'}
  237.                                             <div style="background: {$flag.color};border-radius: 50%;">{$flag.name}</div>
  238.                                         {/if}
  239.                                     {/if}
  240.                                 {/foreach}
  241.                             </div>
  242.                         {/if}
  243.                         {if $product.price_old}
  244.                         <div class="product-sale">{strip}
  245.                             {if $product.price_old > $product.price}
  246.                                 -{math assign=product_discount equation="(x - y) / x * z" x=$product.price_old y=$product.price z=100}
  247.                             {else}
  248.                                 +{math assign=product_discount equation="(y - x) / y * z" x=$product.price_old y=$product.price z=100}
  249.                             {/if}
  250.                             {$product_discount|round}%{/strip}
  251.                         </div>
  252.                         {/if}
  253.                     </div>
  254.                     {/if}
  255.                     {if $product.special}
  256.                         <div class="product-spec">
  257.                             {$shop2.my.special_alias|default:#SHOP2_SPECIAL#}
  258.                         </div>
  259.                     {/if}
  260.                     {if $product.image_filename}
  261.                     <a href="{$IMAGES_DIR}{$product.image_filename}" class="product-image-a">
  262.                       <img src="{if $shop2.card_image_width == 458}{s3_img src=$product.image_filename width=$shop2.my.image_cart_width|default:458 height=$shop2.my.image_card_height|default:400 method=$shop2.my.s3_img_method}{else}{s3_img width=$shop2.card_image_width height=$shop2.card_image_height src=$product.image_filename method=$shop2.my.s3_img_method} {/if}"  />
  263.                     </a>
  264.                     {else}
  265.                         <a href="{$IMAGES_DIR}{$product.image_filename}">
  266.                             <img class="no-image" src="/g/spacer.gif" alt="{$product.name|htmlspecialchars}" title="{$product.name|htmlspecialchars}" width="{$shop2.my.image_cart_width|default:458}"/>
  267.                         </a>
  268.                     {/if}
  269.                     {foreach from=$product.params.images item=img key=k}
  270.                         <a href="{$IMAGES_DIR}{$img.filename}" style="display: none;" class="product-image-a">
  271.                             <img src="{if $shop2.card_image_width == 458}{s3_img src=$img.filename width=$shop2.my.image_cart_width|default:458 height=$shop2.my.image_card_height|default:400 method=$shop2.my.s3_img_method}{else}{s3_img width=$shop2.card_image_width height=$shop2.card_image_height src=$img.filename method=$shop2.my.s3_img_method} {/if}" alt="" />
  272.                         </a>
  273.                     {/foreach}
  274.                 </div>     
  275.             </div>   
  276.             {if $product.params.images}
  277.             <div class="product-thumbnails-wrapper1">
  278.                 <div class="product-thumbnails-wrapper">
  279.                     <ul  class="product-thumbnails">
  280.                         {assign var="width" value=$shop2.my.small_images_width}
  281.                         {if !$width}
  282.                             {assign var="width" value=474}
  283.                             {assign var="width" value=474}
  284.                         {/if}
  285.                         {if $product.image_filename}
  286.                         <li class="active"><a href="{$IMAGES_DIR}{$product.image_filename}" class="active">
  287.                           <img src="{s3_img src=$product.image_filename width=$width height=$width method=$shop2.my.s3_img_method}" alt="{$product.name|htmlspecialchars}" title="{$product.name|htmlspecialchars}"  />
  288.                         </a><div class="verticalMiddle"></div></li>
  289.                         {/if}
  290.                         {foreach from=$product.params.images item=img key=k}
  291.                             <li>
  292.                                 <a href="{$IMAGES_DIR}{$img.filename}">
  293.                                     <img src="{s3_img src=$img.filename width=$width height=$width method=$shop2.my.s3_img_method}" alt="{$product.name|htmlspecialchars}" title="{$product.name|htmlspecialchars}" />
  294.                                 </a>
  295.                                
  296.                             </li>
  297.                         {/foreach}
  298.                     </ul>
  299.                 </div>
  300.             </div>
  301.             {/if}
  302.  
  303.         </div>
  304.         <div class="product-side-r">
  305.             <div class="form-add">
  306.                 <div class="form-add-in">
  307.                     <div class="stars-wrap">
  308.                         {include file="global:shop2.v2-rating.tpl"}
  309.                     </div>
  310.                     {include file="global:shop2.v2-product-article.tpl"}
  311.                     <div class="product-options-wrapper">
  312.                         {include file="global:shop2.2.65-product-options.tpl"}
  313.                     </div>
  314.                     <div class="product-compare-btn-wrapper">
  315.                         {if $site.size_table_link !=""}
  316.                             <a href="{$site.size_table_link}" target="_blank" class="size-table-link">{#SHOP2_SIZES_TABLE#}</a>
  317.                         {/if}
  318.                         {include file="global:shop2.2.65-product-compare-btn.tpl"}
  319.                     </div>
  320.                    
  321.                     {include file="global:shop2.v2-product-actions.tpl"}
  322.                     {if $show_price}
  323.                     <div class="product-price-wrapper">
  324.                         <div class="product-price-in">
  325.                             {include file="global:shop2.v2-product-price-old.tpl"}
  326.                             {include file="global:shop2.v2-product-price.tpl" obj=$product}
  327.                         </div>
  328.                         <div class="shop-product-button-wrapper">
  329.                             {include file="global:shop2.v2-amount-btn.tpl" class="product-amount"}             
  330.                             {if $product.buy_mode != 1 && $one_click_form.my_form}
  331.                             <div class="buy-one-click"><a href="#">{$shop2.my.buy_in_one_click|default:#SHOP2_BUY_IN_ONE_CLICK#}</a></div>
  332.                             {/if}
  333.                             {if $show_price}
  334.                                 {include file="global:shop2.2.65-buy-btn.tpl" type=3}
  335.                             {/if}  
  336.                         </div>
  337.                     </div>
  338.                     {/if}
  339.                 </div>
  340.                
  341.             </div>
  342.             <div class="params-title">{$shop2.my.gr_product_param_title|default:#GR_GENERAL_CHARACTERISTIC#}</div>
  343.             {include file="global:shop2.2.65-product-params.tpl" e=$product}
  344.             {if !$shop2.my.hide_share}
  345.                     <div class="yashare">
  346.                         <script type="text/javascript" src="https://yandex.st/share/share.js" charset="utf-8"></script>
  347.                         {literal}
  348.                         <style type="text/css">
  349.                             div.yashare span.b-share a.b-share__handle img,
  350.                             div.yashare span.b-share a.b-share__handle span {
  351.                                 background-image: url("https://yandex.st/share/static/b-share-icon.png");
  352.                             }
  353.                         </style>
  354.                         {/literal}
  355.                         {literal}
  356.                         <script type="text/javascript">(function() {
  357.                           if (window.pluso)if (typeof window.pluso.start == "function") return;
  358.                           if (window.ifpluso==undefined) { window.ifpluso = 1;
  359.                             var d = document, s = d.createElement('script'), g = 'getElementsByTagName';
  360.                             s.type = 'text/javascript'; s.charset='UTF-8'; s.async = true;
  361.                             s.src = ('https:' == window.location.protocol ? 'https' : 'http')  + '://share.pluso.ru/pluso-like.js';
  362.                             var h=d[g]('body')[0];
  363.                             h.appendChild(s);
  364.                           }})();</script>
  365.                         {/literal}
  366.                         <div class="pluso" data-background="transparent" data-options="medium,square,line,horizontal,nocounter,theme=04" data-services="vkontakte,odnoklassniki,facebook,twitter"></div>
  367.                     </div>
  368.                 {/if}  
  369.         </div>
  370.     </form><!-- Product -->
  371.  
  372.     {include file="global:shop2.2.65-product-item-desc.tpl"}
  373.  
  374.     {include file="global:shop2.v2-product-in-folders.tpl"}
  375.  
  376.     <div class="clear-self"></div>
  377.     <div class="product-item-collections-blocks-wrapper">
  378.         <div class="product-item-collections-blocks-in">
  379.             {include file="global:shop2.2.65-product-item-collections-blocks.tpl"}
  380.         </div>
  381.     </div>
  382.    
  383.     {if $mode == 'product'}
  384.     {if $recently_vie}
  385.         <div class="shop-kind-item-wr vie">
  386.             <div class="shop-kind-item-in vie">
  387.                 <h4 class="shop-collection-header">{$shop2.my.gr_shop_collection_header_title|default:#GR_YOU_RECENTLY_WATCHED#}</h4>
  388.                 <div class="shop-group-kinds">
  389.                     {foreach from=$recently_vie item=e}
  390.                         {include file="global:shop2.2.65-product-item-collections.tpl" e=$e}
  391.                     {/foreach}
  392.                 </div>
  393.             </div>
  394.         </div>
  395.         {/if}
  396.     {/if}
  397.     {if $product.buy_mode != 1}
  398. <div class="buy-one-click-form-wr">
  399.     <div class="buy-one-click-form-in">
  400.         {include file="global:form.minimal.2.2.65.tpl" anketa=$one_click_form.my_form closeBtn=true}
  401.     </div>
  402. </div>
  403. {/if}
  404. {/if}
Add Comment
Please, Sign In to add comment