Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {assign var="show_price" value=0}
- {if !(!$user && $shop2.my.hide_prices_non_reg)}
- {assign var="show_price" value=1}
- {/if}
- {if isset($smarty.get.product_preview)}
- {assign var="show_price" value=0}
- {if !(!$user && $shop2.my.hide_prices_non_reg)}
- {assign var="show_price" value=1}
- {/if}
- <div class="product-wrapper {if !$product.params.images}no-smal-pic{/if}">
- <form
- method="post"
- action="{$shop2.uri}?mode=cart&action=add"
- accept-charset="utf-8"
- class="shop-product clear-self">
- <input type="hidden" name="kind_id" value="{$product.kind_id}"/>
- <input type="hidden" name="product_id" value="{$product.product_id}"/>
- <input type="hidden" name="meta" value='{$product.meta|@json_encode|escape}'/>
- <div class="product-side-l">
- <div class="product-image{if !$product.image_filename} no-image{/if}" title="{$product.name|htmlspecialchars}">
- <div class="product-image-in">
- {if $product.new || $product.price_old}
- <div class="product-label">
- {if $product.new}<div class="product-new">{$shop2.my.new_alias|default:#SHOP2_NEW#}</div>{/if}
- {if !empty($product.flags)}
- <div class="product-sale">
- {foreach from=$product.flags item=flag_id key=k name=foo}
- {assign var=flag value=$product_flag.$flag_id}
- {assign var=spec value=$product.special}
- {assign var=new value=$product.new}
- {if $smarty.foreach.foo.iteration <= 3}
- {if $flag.flag_id != '1' && $flag.flag_id != '2'}
- <div style="background: {$flag.color};border-radius: 50%;">{$flag.name}</div>
- {/if}
- {/if}
- {/foreach}
- </div>
- {/if}
- {if $product.price_old}
- <div class="product-sale">{strip}
- {if $product.price_old > $product.price}
- -{math assign=product_discount equation="(x - y) / x * z" x=$product.price_old y=$product.price z=100}
- {else}
- +{math assign=product_discount equation="(y - x) / y * z" x=$product.price_old y=$product.price z=100}
- {/if}
- {$product_discount|round}%{/strip}
- </div>
- {/if}
- </div>
- {/if}
- {if $product.special}
- <div class="product-spec">
- {$shop2.my.special_alias|default:#SHOP2_SPECIAL#}
- </div>
- {/if}
- {if $product.image_filename}
- <a href="{$IMAGES_DIR}{$product.image_filename}" class="product-image-a">
- <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}" />
- </a>
- {else}
- <a href="{$IMAGES_DIR}{$product.image_filename}">
- <img class="no-image" src="/g/spacer.gif" alt="{$product.name|htmlspecialchars}" title="{$product.name|htmlspecialchars}" width="360" />
- </a>
- {/if}
- {foreach from=$product.params.images item=img key=k}
- <a href="{$IMAGES_DIR}{$img.filename}" style="display: none;" class="product-image-a">
- <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}" />
- </a>
- {/foreach}
- </div>
- </div>
- {if $product.params.images}
- <div class="product-thumbnails-wrapper1">
- <div class="product-thumbnails-wrapper">
- <ul class="product-thumbnails">
- {assign var="width" value=$shop2.my.small_images_width}
- {if !$width}
- {assign var="width" value=474}
- {assign var="width" value=474}
- {/if}
- {if $product.image_filename}
- <li class="active"><a href="{$IMAGES_DIR}{$product.image_filename}" class="active">
- <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}" />
- </a><div class="verticalMiddle"></div></li>
- {/if}
- {foreach from=$product.params.images item=img key=k}
- <li>
- <a href="{$IMAGES_DIR}{$img.filename}">
- <img src="{s3_img src=$img.filename width=$width height=$width method=$shop2.my.s3_img_method}" alt="" />
- </a>
- </li>
- {/foreach}
- </ul>
- </div>
- </div>
- {/if}
- </div>
- <div class="product-side-r">
- <div class="form-add">
- <div class="form-add-in">
- <div class="stars-wrap">
- {include file="global:shop2.v2-rating.tpl"}
- </div>
- <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>
- {include file="global:shop2.v2-product-article.tpl"}
- <div class="product-options-wrapper">
- {include file="global:shop2.2.65-product-options.tpl"}
- </div>
- <div class="product-compare-btn-wrapper">
- {if $site.size_table_link !=""}
- <a href="{$site.size_table_link}" target="_blank" class="size-table-link">{#SHOP2_SIZES_TABLE#}</a>
- {/if}
- {include file="global:shop2.2.65-product-compare-btn.tpl"}
- </div>
- {include file="global:shop2.v2-product-actions.tpl"}
- {if $show_price}
- <div class="product-price-wrapper">
- <div class="product-price-in">
- {include file="global:shop2.v2-product-price-old.tpl"}
- {include file="global:shop2.v2-product-price.tpl" obj=$product}
- </div>
- <div class="shop-product-button-wrapper">
- {include file="global:shop2.v2-amount-btn.tpl" class="product-amount"}
- {if $product.buy_mode != 1}
- <div class="buy-one-click"><a href="#">{$shop2.my.buy_in_one_click|default:#SHOP2_BUY_IN_ONE_CLICK#}</a></div>
- {/if}
- {if $show_price}
- {include file="global:shop2.2.65-buy-btn.tpl" type=3}
- {/if}
- </div>
- </div>
- {/if}
- </div>
- </div>
- {if !$shop2.my.hide_share}
- {if $shop2.my.gr_yandex_share}
- <script type="text/javascript" src="https://yandex.st/share/share.js" charset="utf-8"></script>
- {literal}
- <script src="//yastatic.net/es5-shims/0.0.2/es5-shims.min.js"></script>
- <script src="//yastatic.net/share2/share.js"></script>
- {/literal}
- <div class="ya-share2" data-services="vkontakte,facebook,odnoklassniki,twitter"></div>
- {else}
- <div class="yashare">
- <script type="text/javascript" src="https://yandex.st/share/share.js" charset="utf-8"></script>
- {literal}
- <style type="text/css">
- div.yashare span.b-share a.b-share__handle img,
- div.yashare span.b-share a.b-share__handle span {
- background-image: url("https://yandex.st/share/static/b-share-icon.png");
- }
- </style>
- {/literal}
- {literal}
- <script type="text/javascript">(function() {
- if (window.pluso)if (typeof window.pluso.start == "function") return;
- if (window.ifpluso==undefined) { window.ifpluso = 1;
- var d = document, s = d.createElement('script'), g = 'getElementsByTagName';
- s.type = 'text/javascript'; s.charset='UTF-8'; s.async = true;
- s.src = ('https:' == window.location.protocol ? 'https' : 'http') + '://share.pluso.ru/pluso-like.js';
- var h=d[g]('body')[0];
- h.appendChild(s);
- }})();</script>
- {/literal}
- <div class="pluso" data-background="transparent" data-options="medium,square,line,horizontal,nocounter,theme=04" data-services="vkontakte,odnoklassniki,facebook,twitter"></div>
- </div>
- {/if}
- {/if}
- </div>
- </form><!-- Product -->
- </div>
- {if $product.buy_mode != 1}
- <div class="buy-one-click-form-wr">
- <div class="buy-one-click-form-in">
- {include file="global:form.minimal.2.2.65.tpl" anketa=$one_click_form.my_form closeBtn=true}
- </div>
- </div>
- {/if}
- {else}
- {if $shop2.next_prev_link && !$shop2.fallback_mode}
- <div class="shop2-product-navigation">
- <!--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-->
- <!--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-->
- </div>
- {/if}
- <form
- method="post"
- action="{$shop2.uri}?mode=cart&action=add"
- accept-charset="utf-8"
- class="shop-product clear-self">
- <input type="hidden" name="kind_id" value="{$product.kind_id}"/>
- <input type="hidden" name="product_id" value="{$product.product_id}"/>
- <input type="hidden" name="meta" value='{$product.meta|@json_encode|escape}'/>
- <div class="product-side-l">
- <div class="mobil-art">
- <div class="stars-wrap">
- {include file="global:shop2.v2-rating.tpl"}
- </div>
- {include file="global:shop2.v2-product-article.tpl"}
- </div>
- <div class="product-image{if !$product.image_filename} no-image{/if}" title="{$product.name|htmlspecialchars}">
- <div class="product-image-in">
- {if $product.new || $product.price_old}
- <div class="product-label">
- {if $product.new}<div class="product-new">{$shop2.my.new_alias|default:#SHOP2_NEW#}</div>{/if}
- {if !empty($product.flags)}
- <div class="product-sale">
- {foreach from=$product.flags item=flag_id key=k name=foo}
- {assign var=flag value=$product_flag.$flag_id}
- {assign var=spec value=$product.special}
- {assign var=new value=$product.new}
- {if $smarty.foreach.foo.iteration <= 3}
- {if $flag.flag_id != '1' && $flag.flag_id != '2'}
- <div style="background: {$flag.color};border-radius: 50%;">{$flag.name}</div>
- {/if}
- {/if}
- {/foreach}
- </div>
- {/if}
- {if $product.price_old}
- <div class="product-sale">{strip}
- {if $product.price_old > $product.price}
- -{math assign=product_discount equation="(x - y) / x * z" x=$product.price_old y=$product.price z=100}
- {else}
- +{math assign=product_discount equation="(y - x) / y * z" x=$product.price_old y=$product.price z=100}
- {/if}
- {$product_discount|round}%{/strip}
- </div>
- {/if}
- </div>
- {/if}
- {if $product.special}
- <div class="product-spec">
- {$shop2.my.special_alias|default:#SHOP2_SPECIAL#}
- </div>
- {/if}
- {if $product.image_filename}
- <a href="{$IMAGES_DIR}{$product.image_filename}" class="product-image-a">
- <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}" />
- </a>
- {else}
- <a href="{$IMAGES_DIR}{$product.image_filename}">
- <img class="no-image" src="/g/spacer.gif" alt="{$product.name|htmlspecialchars}" title="{$product.name|htmlspecialchars}" width="{$shop2.my.image_cart_width|default:458}"/>
- </a>
- {/if}
- {foreach from=$product.params.images item=img key=k}
- <a href="{$IMAGES_DIR}{$img.filename}" style="display: none;" class="product-image-a">
- <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="" />
- </a>
- {/foreach}
- </div>
- </div>
- {if $product.params.images}
- <div class="product-thumbnails-wrapper1">
- <div class="product-thumbnails-wrapper">
- <ul class="product-thumbnails">
- {assign var="width" value=$shop2.my.small_images_width}
- {if !$width}
- {assign var="width" value=474}
- {assign var="width" value=474}
- {/if}
- {if $product.image_filename}
- <li class="active"><a href="{$IMAGES_DIR}{$product.image_filename}" class="active">
- <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}" />
- </a><div class="verticalMiddle"></div></li>
- {/if}
- {foreach from=$product.params.images item=img key=k}
- <li>
- <a href="{$IMAGES_DIR}{$img.filename}">
- <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}" />
- </a>
- </li>
- {/foreach}
- </ul>
- </div>
- </div>
- {/if}
- </div>
- <div class="product-side-r">
- <div class="form-add">
- <div class="form-add-in">
- <div class="stars-wrap">
- {include file="global:shop2.v2-rating.tpl"}
- </div>
- {include file="global:shop2.v2-product-article.tpl"}
- <div class="product-options-wrapper">
- {include file="global:shop2.2.65-product-options.tpl"}
- </div>
- <div class="product-compare-btn-wrapper">
- {if $site.size_table_link !=""}
- <a href="{$site.size_table_link}" target="_blank" class="size-table-link">{#SHOP2_SIZES_TABLE#}</a>
- {/if}
- {include file="global:shop2.2.65-product-compare-btn.tpl"}
- </div>
- {include file="global:shop2.v2-product-actions.tpl"}
- {if $show_price}
- <div class="product-price-wrapper">
- <div class="product-price-in">
- {include file="global:shop2.v2-product-price-old.tpl"}
- {include file="global:shop2.v2-product-price.tpl" obj=$product}
- </div>
- <div class="shop-product-button-wrapper">
- {include file="global:shop2.v2-amount-btn.tpl" class="product-amount"}
- {if $product.buy_mode != 1 && $one_click_form.my_form}
- <div class="buy-one-click"><a href="#">{$shop2.my.buy_in_one_click|default:#SHOP2_BUY_IN_ONE_CLICK#}</a></div>
- {/if}
- {if $show_price}
- {include file="global:shop2.2.65-buy-btn.tpl" type=3}
- {/if}
- </div>
- </div>
- {/if}
- </div>
- </div>
- <div class="params-title">{$shop2.my.gr_product_param_title|default:#GR_GENERAL_CHARACTERISTIC#}</div>
- {include file="global:shop2.2.65-product-params.tpl" e=$product}
- {if !$shop2.my.hide_share}
- <div class="yashare">
- <script type="text/javascript" src="https://yandex.st/share/share.js" charset="utf-8"></script>
- {literal}
- <style type="text/css">
- div.yashare span.b-share a.b-share__handle img,
- div.yashare span.b-share a.b-share__handle span {
- background-image: url("https://yandex.st/share/static/b-share-icon.png");
- }
- </style>
- {/literal}
- {literal}
- <script type="text/javascript">(function() {
- if (window.pluso)if (typeof window.pluso.start == "function") return;
- if (window.ifpluso==undefined) { window.ifpluso = 1;
- var d = document, s = d.createElement('script'), g = 'getElementsByTagName';
- s.type = 'text/javascript'; s.charset='UTF-8'; s.async = true;
- s.src = ('https:' == window.location.protocol ? 'https' : 'http') + '://share.pluso.ru/pluso-like.js';
- var h=d[g]('body')[0];
- h.appendChild(s);
- }})();</script>
- {/literal}
- <div class="pluso" data-background="transparent" data-options="medium,square,line,horizontal,nocounter,theme=04" data-services="vkontakte,odnoklassniki,facebook,twitter"></div>
- </div>
- {/if}
- </div>
- </form><!-- Product -->
- {include file="global:shop2.2.65-product-item-desc.tpl"}
- {include file="global:shop2.v2-product-in-folders.tpl"}
- <div class="clear-self"></div>
- <div class="product-item-collections-blocks-wrapper">
- <div class="product-item-collections-blocks-in">
- {include file="global:shop2.2.65-product-item-collections-blocks.tpl"}
- </div>
- </div>
- {if $mode == 'product'}
- {if $recently_vie}
- <div class="shop-kind-item-wr vie">
- <div class="shop-kind-item-in vie">
- <h4 class="shop-collection-header">{$shop2.my.gr_shop_collection_header_title|default:#GR_YOU_RECENTLY_WATCHED#}</h4>
- <div class="shop-group-kinds">
- {foreach from=$recently_vie item=e}
- {include file="global:shop2.2.65-product-item-collections.tpl" e=$e}
- {/foreach}
- </div>
- </div>
- </div>
- {/if}
- {/if}
- {if $product.buy_mode != 1}
- <div class="buy-one-click-form-wr">
- <div class="buy-one-click-form-in">
- {include file="global:form.minimal.2.2.65.tpl" anketa=$one_click_form.my_form closeBtn=true}
- </div>
- </div>
- {/if}
- {/if}
Add Comment
Please, Sign In to add comment