custom/plugins/HBCTheme/src/Resources/views/storefront/component/product/card/box-standard.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/product/card/box-standard.html.twig' %}
  2. {% block component_product_box %}
  3. {% if product and not product.variantion %}
  4.     {% set productTitle = getDataViaRepository({'repository': 'property_group_option',
  5.           'filter': [{'type': 'equalsAny', 'field': 'id', 'value': product.propertyIds},
  6.             {'type': 'equals', 'field': 'group.translations.name', 'value': 'Teilart'}],
  7.           'association': ['group.translation']}, context.context) %}
  8. {% endif %}
  9. {{ parent() }}
  10. {% endblock %}
  11. {% block component_product_box_badges %}
  12.     {{ parent() }}
  13.     <span class="product-variant-documenttype">
  14.         {% if product.variation %}
  15.             {% for variation in product.variation|slice(0, 1) %}
  16.                 {{ variation.option }}
  17.             {% endfor %}
  18.         {% else %}
  19.             {% if productTitle %}
  20.                 {{ productTitle|first.name }}
  21.             {% endif %}
  22.         {% endif %}
  23.     </span>
  24.     {% if config('core.cart.wishlistEnabled') %}
  25.         {% sw_include '@Storefront/storefront/component/product/card/wishlist.html.twig' with {
  26.             appearance: 'circle',
  27.             productId: id
  28.         } %}
  29.     {% endif %}
  30. {% endblock %}
  31. {% block component_product_box_variant_characteristics %}
  32.     <div class="artNo">{{ "detail.productNumberLabel"|trans|sw_sanitize }} {{ product.productNumber }}</div>
  33.     {% if product.customFields.loyxx_seminar_group_location %}
  34.         <div class="customFields-wrapper">
  35.             <span class="customFieldTitle">{{ "customFields.loyxx_seminar_group_location"|trans|sw_sanitize }}:</span> <span class="customFieldLocation">{{product.customFields.loyxx_seminar_group_location|trans|sw_sanitize}}</span>
  36.         </div>
  37.     {% endif %}
  38.     {% if product.variation or product.options.elements %}
  39.     <div class="product-variant-characteristics">
  40.         <div class="product-variant-characteristics-text">
  41.             {% if product.variation %}
  42.             {% for variation in product.variation|slice(1) %}
  43.                 <div>
  44.                     {{ variation.group }}:
  45.                     <span class="product-variant-characteristics-option">
  46.                         {{ variation.option }}
  47.                     </span>
  48.                 </div>
  49.             {% endfor %}
  50.             {% else %}
  51.                 {% for option in product.options %}
  52.                 {% endfor %}
  53.             {% endif %}
  54.         </div>
  55.     </div>
  56.     {% endif %}
  57. {% endblock %}
  58. {% block component_product_box_description %}
  59. {% endblock %}
  60. {% block component_product_box_wishlist_action %}
  61. {% endblock %}