custom/static-plugins/CytexTheme/src/Resources/views/storefront/component/buy-widget/buy-widget.html.twig line 1

Open in your IDE?
  1. {% sw_extends "@Storefront/storefront/component/buy-widget/buy-widget.html.twig" %}
  2.     {% block buy_widget %}
  3.         {% if galleryBuybox %}
  4.             <div class="product-detail-buy{% if elementId %}-{{ elementId }}{% endif %} js-magnifier-zoom-image-container">
  5.                 {% block buy_widget_rich_snippets %}
  6.                     {{ parent() }}
  7.                 {% endblock %}
  8.                 {% if not feature('FEATURE_NEXT_16992') %}
  9.                     {# @deprecated tag:v6.5.0 tag:)(FEATURE_NEXT_16992) - Block will be removed in v6.5.0 #}
  10.                     {% block buy_widget_not_available %}
  11.                     {% endblock %}
  12.                 {% endif %}
  13.                 {% sw_include "@Storefront/storefront/page/product-detail/cytex-detail-buy-container.html.twig" %}
  14.                 {% if config('core.cart.wishlistEnabled') %}
  15.                     {% block buy_widget_wishlist %}
  16.                         {% sw_include '@Storefront/storefront/component/product/card/wishlist.html.twig' with {
  17.                             showText: true,
  18.                             size: 'md',
  19.                             productId: product.id
  20.                         } %}
  21.                     {% endblock %}
  22.                 {% endif %}
  23.                 {% block buy_widget_delivery_information_container %}
  24.                     {% block buy_widget_delivery_informations %}
  25.                         {% set wholePhoneNumber =  "cytex-theme.footer.contact.phone"|trans|raw %}
  26.                         {% set phoneNumbers = wholePhoneNumber|split("",2)  %}
  27.                         {% set countryCode = "cytex-theme.footer.contact.phone-country-code"|trans|raw %}
  28.                         <section class="product-detail-delivery-information">
  29.                             {% sw_include '@Storefront/storefront/component/delivery-information.html.twig' %}
  30.                         </section>
  31.                         <section class="product-detail-delivery-information">
  32.                             <img src="{{ asset('icon/cytex/cytex-truck.png', '@CytexTheme') }}" alt="{{ "cytex-theme.product.detail.pricing.delivery"|trans|sw_sanitize }}">
  33.                             <p class="product-detail-delivery-text">{{ "cytex-theme.product.detail.pricing.delivery"|trans|sw_sanitize }}</p>
  34.                         </section>
  35.                         <section class="product-detail-delivery-information">
  36.                             <img src="{{ asset('icon/cytex/cytex-phone.png', '@CytexTheme') }}" alt="{{ "cytex-theme.product.detail.pricing.questions"|trans|sw_sanitize }}">
  37.                             <p class="product-detail-delivery-text">
  38.                                 {{ "cytex-theme.product.detail.pricing.questions"|trans|sw_sanitize }}
  39.                                 <a href="tel:{{ countryCode }}{{ wholePhoneNumber}}">
  40.                                     {{ "cytex-theme.footer.contact.phone-country-code"|trans|raw}}
  41.                                     {% for number in phoneNumbers %}
  42.                                         {{ number }}
  43.                                     {% endfor %}
  44.                                 </a>
  45.                             </p>
  46.                         </section>
  47.                     {% endblock %}
  48.                 {% endblock %}
  49.             </div>
  50.             <div class="tab-downloads cytex-product-detail-downloads">
  51.                 {% sw_include '@WexoProductDownloads/storefront/page/product-detail/downloads.html.twig' %}
  52.             </div>
  53.         {% else %}
  54.             {{ parent() }}
  55.         {% endif %}
  56. {% endblock %}