custom/plugins/KMShop2022/src/Resources/views/storefront/component/product/km-listing.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/product/km-listing.html.twig' %}
  2.                 {% block element_product_listing_row %}
  3.                     <div class="wishlist-container">
  4.                         {% if searchResult.total > 0 %}
  5.                             {% block element_product_listing_col %}
  6.                                 {% for product in searchResult %}
  7.                                     
  8.                                     {% set listingColumns = '' %}
  9.                                     {% set km_add_pp_products = km_add_pp_products(product, context, app.request.cookies.get('pp_id'), boxLayout, displayMode, listingColumns) %}
  10.                                     {% if km_add_pp_products %}
  11.                                        {{ km_add_pp_products | raw }}
  12.                                     {% else %}
  13.                                         {% sw_include '@KMShop2022/storefront/component/product/km-element-product-listing-box.html.twig' %}
  14.                                     {% endif%}
  15.                                     {# { % sw_include '@KMShop2022/storefront/component/product/km-element-product-listing-box.html.twig' % } #}
  16.                                 {% endfor %}
  17.                             {% endblock %}
  18.                         {% else %}
  19.                             {% block element_product_listing_col_empty %}
  20.                                 <div class="cms-listing-col col-12">
  21.                                     {% block element_product_listing_col_empty_alert %}
  22.                                         {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  23.                                             type: 'info',
  24.                                             content: 'listing.emptyResultMessage'|trans|sw_sanitize
  25.                                         } %}
  26.                                     {% endblock %}
  27.                                 </div>
  28.                             {% endblock %}
  29.                         {% endif %}
  30.                     </div>
  31.                 {% endblock %}