custom/static-plugins/EfbStorefront/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_info %}
  3.     <div class="product-info">
  4.         {% block component_product_box_rating %}
  5.         {% endblock %}
  6.         {% block component_product_box_ordernumber %}
  7.             <p class="product-ordernumber">
  8.                 <span class="product-ordernumber-label">{{ "listing.ordernumberLabel"|trans|sw_sanitize }}</span>
  9.                 <span class="product-ordernumber-value">{{ product.productNumber }}</span>
  10.             </p>
  11.         {% endblock %}
  12.         {% block component_product_box_name %}
  13.             {{ parent() }}
  14.         {% endblock %}
  15.         {% block component_product_box_variant_characteristics %}
  16.             <div class="product-variant-characteristics">
  17.                 {% for variation in product.variation|filter(variation => variation.group is not same as('fallback_model'))|slice(0, 4) %}
  18.                     <div class="product-variant-characteristics-item">
  19.                         <span class="product-variant-characteristics-label">{{ variation.group }}:</span>
  20.                         <span class="product-variant-characteristics-value">{{ variation.option }}</span>
  21.                     </div>
  22.                 {% endfor %}
  23.             </div>
  24.         {% endblock %}
  25.         {% block component_product_box_description %}{% endblock %}
  26.         {% block component_product_box_delivery %}
  27.             {% if context.customer is not null %}
  28.                 {% set stockInfo = decodeStockInfo(product, context) %}
  29.                 <div class="product-detail-delivery-information">
  30.                     {% if stockInfo and stockInfo.stock is defined %}
  31.                         <div class="product-detail-delivery-information-stock">
  32.                             {% if stockInfo.stock > 0 %}
  33.                                 <span class="delivery-status-indicator bg-success"></span>
  34.                             {% elseif stockInfo.restock is not empty or stockInfo.reorder %}
  35.                                 <span class="delivery-status-indicator bg-warning"></span>
  36.                             {% else %}
  37.                                 <span class="delivery-status-indicator bg-danger"></span>
  38.                             {% endif %}
  39.                             {% if stockInfo.stock > 0 %}
  40.                                 {% if stockInfo.stock > 1000 %}
  41.                                     {{ "listing.inStock"|trans({'%stock%': '1000+'})|sw_sanitize }}
  42.                                 {% else %}
  43.                                     {{ "listing.inStock"|trans({'%stock%': stockInfo.stock})|sw_sanitize }}
  44.                                 {% endif %}
  45.                             {% else %}
  46.                                 {{ "listing.noStock"|trans|sw_sanitize }}
  47.                             {% endif %}
  48.                         </div>
  49.                     {% endif %}
  50.                 </div>
  51.             {% endif %}
  52.         {% endblock %}
  53.         {% block component_product_box_price %}
  54.             {% set hidePrice = not context.customer or context.salesChannel.customFields.custom_fields_sales_channel_hide_prices_listing %}
  55.             {% if not hidePrice %}
  56.                 {% sw_include '@Storefront/storefront/component/product/card/price-unit.html.twig' %}
  57.             {% endif %}
  58.         {% endblock %}
  59.         {% block component_product_box_action %}
  60.             {{ parent() }}
  61.         {% endblock %}
  62.     </div>
  63. {% endblock %}