custom/plugins/SchilderSysteme/src/Resources/views/storefront/component/product/table-cross-sellings.html.twig line 1

Open in your IDE?
  1. {% block component_product_table_cross_sellings_container %}
  2.     <div class="product-detail-table-container">
  3.         <table class="product-detail-table">
  4.             <tr class="table--header">
  5.                 <th>{{ "detail.tableArticle"|trans|sw_sanitize }}</th>
  6.                 <th>{{ "detail.tableSize"|trans|sw_sanitize }}</th>
  7.                 <th>{{ "detail.tablePrice"|trans|sw_sanitize }}</th>
  8.                 <th>{{ "detail.tableDesiredQuantity"|trans|sw_sanitize }}</th>
  9.             </tr>
  10.             {% for element in products|sort((a, b) => a.position <=> b.position) %}
  11.                 <tr>
  12.                     <td class="article-view">
  13.                         <a href="{{ seoUrl('frontend.detail.page', {'productId': element.product.id}) }}"
  14.                            title="{{ element.product.translated.name }}">
  15.                             {% sw_thumbnails 'product-image-thumbnails' with {
  16.                                 media: element.product.cover.media,
  17.                                 sizes: {
  18.                                     'xs': '501px',
  19.                                     'sm': '315px',
  20.                                     'md': '427px',
  21.                                     'lg': '333px',
  22.                                     'xl': '284px'
  23.                                 },
  24.                                 attributes:{
  25.                                     'class':'table-product-image'
  26.                                 }
  27.                             } %}
  28.                             <span class="table-product-name">{{ element.product.translated.name }}</span>
  29.                         </a>
  30.                     </td>
  31.                     <td>{{ element.product.variation[0].option }} {% if element.product.variation[1].option %}({{ element.product.variation[1].option }}){% endif %}</td>
  32.                     <td>{{ element.product.calculatedPrice.unitPrice|currency }}</td>
  33.                     <td>
  34.                         {% sw_include '@Storefront/storefront/page/product-detail/buy-widget-form-table.html.twig' with {
  35.                             productTable: element.product
  36.                         } %}
  37.                     </td>
  38.                 </tr>
  39.             {% endfor %}
  40.         </table>
  41.     </div>
  42. {% endblock %}