custom/plugins/CogiThemeTulip/src/Resources/views/storefront/page/product-detail/additional-infos.html.twig line 1

Open in your IDE?
  1. <table class="table table-sm table-borderless">
  2.     {% set custom = page.product.getCustomFields() %}
  3.     {% if page.product.productNumber %}
  4.         <tr>
  5.             <td>
  6.                 <strong>{{ 'cogi.theme.tulip.detail.productNumber'|trans }}</strong>
  7.             </td>
  8.             <td>
  9.                 {{ page.product.productNumber }}
  10.             </td>
  11.         </tr>
  12.     {% endif %}
  13.     {#% if page.product.ean %}
  14.         <tr>
  15.             <td>
  16.                 <strong>{{ 'cogi.theme.tulip.detail.ean'|trans }}</strong>
  17.             </td>
  18.             <td>
  19.                 {{ page.product.ean }}
  20.             </td>
  21.         </tr>
  22.     {% endif %#}
  23.     {# % if page.product.manufacturer %}
  24.         <tr>
  25.             <td>
  26.                 <strong>{{ 'listing.filterManufacturerDisplayName'|trans }}</strong>
  27.             </td>
  28.             <td>
  29.                 <a href="{{ page.product.manufacturer.link }}"
  30.                    class="product-detail-manufacturer-link"
  31.                    title="{{ page.product.manufacturer.translated.name }}">
  32.                     {{ page.product.manufacturer.translated.name }}
  33.                 </a>
  34.             </td>
  35.         </tr>
  36.     {% endif % #}
  37.     {% block cogi_theme_tulip_additional_infos_product_manual %}
  38.         {% if custom.cogi_theme_tulip_product_manual %}
  39.             {% set mediaCollection = searchMedia([custom.cogi_theme_tulip_product_manual], context.context) %}
  40.             {% set manualMedia = mediaCollection.get(custom.cogi_theme_tulip_product_manual) %}
  41.             {% if manualMedia %}
  42.                 <tr>
  43.                     <td>
  44.                         <strong>{{ 'cogi.theme.tulip.detail.manual'|trans }}</strong>
  45.                     </td>
  46.                     <td>
  47.                         <a href="{{ manualMedia.getUrl() }}" target="_blank">
  48.                             <i class="mdi mdi-wrench text-primary"></i> {{ 'cogi.theme.tulip.detail.manualDownload'|trans }}
  49.                         </a>
  50.                     </td>
  51.                 </tr>
  52.             {% endif %}
  53.         {% endif %}
  54.     {% endblock %}
  55.     {% block cogi_theme_tulip_additional_infos_delivery_time %}
  56.         {% if page.product.deliveryTime %}
  57.             <tr>
  58.                 <td>
  59.                     <strong>{{ 'cogi.theme.tulip.detail.deliveryTime'|trans }}
  60.                         <a href="#" data-toggle="popover" data-content="{{ 'cogi.theme.tulip.detail.deliveryTimeInfo'|trans|sw_sanitize }}" data-trigger="hover" data-placement="top">
  61.                             {% sw_icon 'info' style {
  62.                                 'size': 'xs',
  63.                                 'color': 'primary'
  64.                             } %}
  65.                         </a>
  66.                     </strong>
  67.                 </td>
  68.                 <td>
  69.                     {% sw_include '@Storefront/storefront/component/delivery-information.html.twig' %}
  70.                 </td>
  71.             </tr>
  72.         {% endif %}
  73.     {% endblock %}
  74. </table>