custom/apps/AtlKatanaTheme/Resources/views/storefront/page/product-detail/buy-widget.html.twig line 1

Open in your IDE?
  1. {% sw_extends "@Storefront/storefront/page/product-detail/buy-widget.html.twig" %}
  2. {% block page_product_detail_price %}
  3.     {% block page_product_detail_headline %}
  4.         {% sw_include '@Storefront/storefront/page/product-detail/headline.html.twig' %}
  5.     {% endblock %}
  6.     {% block page_product_detail_headline_reviews %}
  7.         {% if theme_config('atl-product-detail-reviews') == 'below-title' %}
  8.             {% sw_include '@Storefront/storefront/skin/global/page/product-detail/review/reviews.html.twig' %}
  9.         {% endif %}
  10.     {% endblock %}
  11.     {{ parent() }}
  12. {% endblock %}
  13. {% block page_product_detail_tax %}
  14.     <div class="product-detail-tax-container">
  15.         {% if context.taxState == "gross" %}
  16.             {% set taxText = 'atl-katana-theme.general.grossTaxInformation'|trans|sw_sanitize %}
  17.         {% else %}
  18.             {% set taxText = 'atl-katana-theme.general.netTaxInformation'|trans|sw_sanitize %}
  19.         {% endif %}
  20.         <p class="product-detail-tax">
  21.             {% block page_product_detail_tax_link %}
  22.                 {{ taxText }}
  23.                 <a class="product-detail-tax-link"
  24.                    href="{{ path('frontend.cms.page',{ id: config('core.basicInformation.shippingPaymentInfoPage') }) }}"
  25.                    title="{{ taxText }}"
  26.                    {{ dataBsToggleAttr }}="modal"
  27.                    data-url="{{ path('frontend.cms.page',{ id: config('core.basicInformation.shippingPaymentInfoPage') }) }}">
  28.                     {{ 'checkout.summaryShipping'|trans|sw_sanitize }}
  29.                 </a>
  30.             {% endblock %}
  31.         </p>
  32.         {% block page_product_detail_manufacturer %}
  33.             {% if page.product.manufacturer and theme_config('atl-product-detail-manufacturer') == 'default' %}
  34.                 <p class="product-detail-manufacturer">
  35.                     {% block page_product_detail_manufacturer_link %}
  36.                         {% if page.product.manufacturer.media is empty and theme_config('atl-product-detail-manufacturer-layout') == 'logo' or
  37.                             theme_config('atl-product-detail-manufacturer-layout') == 'text' %}
  38.                             <span>{{ 'atl-katana-theme.detail.byManufacturer'|trans|sw_sanitize }}</span>
  39.                         {% endif %}
  40.                         <a href="{{ page.product.manufacturer.link }}"
  41.                            class="product-detail-manufacturer-link"
  42.                            rel="noreferrer noopener"
  43.                            target="_blank"
  44.                            title="{{ page.product.manufacturer.translated.name }}">
  45.                             {% if page.product.manufacturer.media and theme_config('atl-product-detail-manufacturer-layout') == 'logo' %}
  46.                                 {% block page_product_detail_manufacturer_logo %}
  47.                                     <img src="{{ page.product.manufacturer.media|sw_encode_media_url }}"
  48.                                          class="product-detail-manufacturer-logo"
  49.                                          alt="{{ page.product.manufacturer.translated.name }}"/>
  50.                                 {% endblock %}
  51.                             {% else %}
  52.                                 {% block page_product_detail_manufacturer_text %}
  53.                                     {{ page.product.manufacturer.translated.name }}
  54.                                 {% endblock %}
  55.                             {% endif %}
  56.                         </a>
  57.                     {% endblock %}
  58.                 </p>
  59.             {% endif %}
  60.         {% endblock %}
  61.     </div>
  62. {% endblock %}
  63. {% block page_product_detail_reviews %}
  64.     {% if theme_config('atl-product-detail-reviews') == 'default' %}
  65.         {% sw_include '@Storefront/storefront/skin/global/page/product-detail/review/reviews.html.twig' %}
  66.     {% endif %}
  67. {% endblock %}
  68. {% block page_product_detail_delivery_informations %}
  69.     {% block page_product_detail_features %}
  70.         {% sw_include '@Storefront/storefront/skin/global/component/product/features.html.twig' with { 'product': page.product } %}
  71.     {% endblock %}
  72.     {{ parent() }}
  73. {% endblock %}
  74. {% block page_product_detail_ordernumber_container %}
  75.     <div class="product-detail-specifications">
  76.         {% if theme_config('atl-product-detail-show-product-number') == 'true' %}
  77.             {{ parent() }}
  78.         {% endif %}
  79.         {% block page_product_detail_ean_container %}
  80.             {% if page.product.ean and theme_config('atl-product-detail-show-ean') == 'true' %}
  81.                 <div class="product-detail-ordernumber-container">
  82.                     {% block page_product_detail_ean_label %}
  83.                         <span class="product-detail-ordernumber-label">
  84.                             {{ 'component.product.feature.label.ean'|trans|sw_sanitize }}
  85.                         </span>
  86.                     {% endblock %}
  87.                     {% block page_product_detail_ean %}
  88.                         <span class="product-detail-ordernumber"
  89.                               itemprop="sku">
  90.                             {{ page.product.ean }}
  91.                         </span>
  92.                     {% endblock %}
  93.                 </div>
  94.             {% endif %}
  95.         {% endblock %}
  96.         {% block page_product_detail_measures_container %}
  97.             {% if theme_config('atl-product-detail-measures') != 'hide' %}
  98.                 {% set width = page.product.width / theme_config('atl-product-detail-measures') %}
  99.                 {% set height = page.product.height / theme_config('atl-product-detail-measures') %}
  100.                 {% set length = page.product.length / theme_config('atl-product-detail-measures') %}
  101.                 {% set unit = 'mm' %}
  102.                 {% if theme_config('atl-product-detail-measures') == 10 %}
  103.                     {% set unit = 'cm' %}
  104.                 {% endif %}
  105.                 {% if width > 0 or height > 0 or length > 0 %}
  106.                     <div class="product-detail-measures">
  107.                         {% block page_product_detail_measures_width %}
  108.                             {% if width > 0 %}
  109.                                 <div class="product-detail-ordernumber-container">
  110.                                     {{ 'component.product.feature.label.width'|sw_sanitize|trans }} {{ width|number_format(2, ',', '.') }} {{ unit }}
  111.                                 </div>
  112.                             {% endif %}
  113.                         {% endblock %}
  114.                         {% block page_product_detail_measures_height %}
  115.                             {% if height > 0 %}
  116.                                 <div class="product-detail-ordernumber-container">
  117.                                     {{ 'component.product.feature.label.height'|sw_sanitize|trans }} {{ height|number_format(2, ',', '.') }} {{ unit }}
  118.                                 </div>
  119.                             {% endif %}
  120.                         {% endblock %}
  121.                         {% block page_product_detail_measures_length %}
  122.                             {% if length > 0 %}
  123.                                 <div class="product-detail-ordernumber-container">
  124.                                     {{ 'component.product.feature.label.length'|sw_sanitize|trans }} {{ length|number_format(2, ',', '.') }} {{ unit }}
  125.                                 </div>
  126.                             {% endif %}
  127.                         {% endblock %}
  128.                     </div>
  129.                 {% endif %}
  130.             {% endif %}
  131.         {% endblock %}
  132.         {% block page_product_detail_weight_container %}
  133.             {% if page.product.weight and theme_config('atl-product-detail-show-weight') == 'true' %}
  134.                 <div class="product-detail-ordernumber-container">
  135.                     {% block page_product_detail_weight_label %}
  136.                         <span class="product-detail-ordernumber-label">
  137.                             {{ 'component.product.feature.label.weight'|trans|sw_sanitize }}
  138.                         </span>
  139.                     {% endblock %}
  140.                     {% block page_product_detail_weight %}
  141.                         <span class="product-detail-ordernumber">
  142.                             {{ page.product.weight|number_format(2, ',', '.') }} kg
  143.                         </span>
  144.                     {% endblock %}
  145.                 </div>
  146.             {% endif %}
  147.         {% endblock %}
  148.     </div>
  149.     {% block page_product_detail_collapses %}
  150.         {% if theme_config('atl-product-detail-tab-position') == 'buy-box' %}
  151.             <div class="cms-collapses">
  152.                 {% sw_include '@Storefront/storefront/skin/global/page/product-detail/collapses.html.twig' %}
  153.             </div>
  154.         {% endif %}
  155.     {% endblock %}
  156.     {% block page_product_detail_share %}
  157.         {% if theme_config('atl-product-detail-share') == 'buy-box-end' %}
  158.             {% if page.product.parentId %}
  159.                 {% set productUrl = seoUrl('frontend.detail.page', { productId: page.product.parentId }) %}
  160.             {% else %}
  161.                 {% set productUrl = seoUrl('frontend.detail.page', { productId: page.product.id }) %}
  162.             {% endif %}
  163.             <div class="product-detail-share">
  164.                 {% block page_product_detail_share_label %}
  165.                     <span>{{ "atl-katana-theme.detail.shareLabel"|trans|sw_sanitize }}</span>
  166.                 {% endblock %}
  167.                 {% block page_product_detail_share_facebook %}
  168.                     <a href="https://www.facebook.com/sharer.php?u={{ productUrl }}" title="Facebook" target="_blank" rel="noopener">
  169.                         {% sw_icon 'facebook' style {
  170.                             'namespace': 'AtlKatanaTheme',
  171.                             'pack':  theme_config('atl-icon-set'),
  172.                             'color': 'text-color',
  173.                             'size': 'sm'
  174.                         } %}
  175.                     </a>
  176.                 {% endblock %}
  177.                 {% block page_product_detail_share_twitter %}
  178.                     <a href="https://twitter.com/share?text=1952&url={{ productUrl }}" title="Twitter" target="_blank" rel="noopener">
  179.                         {% sw_icon 'twitter' style {
  180.                             'namespace': 'AtlKatanaTheme',
  181.                             'pack':  theme_config('atl-icon-set'),
  182.                             'color': 'text-color',
  183.                             'size': 'sm'
  184.                         } %}
  185.                     </a>
  186.                 {% endblock %}
  187.                 {% block page_product_detail_share_pinterest %}
  188.                     <a href="https://pinterest.com/pin/create/button/?url={{ productUrl }}" title="Pinterest" target="_blank" rel="noopener">
  189.                         {% sw_icon 'pinterest' style {
  190.                             'namespace': 'AtlKatanaTheme',
  191.                             'pack':  theme_config('atl-icon-set'),
  192.                             'color': 'text-color',
  193.                             'size': 'sm'
  194.                         } %}
  195.                     </a>
  196.                 {% endblock %}
  197.             </div>
  198.         {% endif %}
  199.     {% endblock %}
  200. {% endblock %}