custom/plugins/PixupWishlistSW6/src/Resources/views/wishlist/box/product-collection-view.html.twig line 1

Open in your IDE?
  1. {% block wishlist_box_product_collection_view %}
  2.     {% for wishlist in wishlists %}
  3.         <div id="{{ wishlist.id }}" class="pixupWishlistContentWishlistContainer" style="display:{% if selectedWishlist.id is not empty %}{{ selectedWishlist.id == wishlist.id ? 'flex' : 'none' }}{% else %}{{ loop.index == 1 ? 'flex' : 'none' }}{% endif %}">
  4.             {% for key, product in wishlist.products %}
  5.                 <div class="pixupWishlistProductContainer" id="product_container{{ loop.index }}" data-product-id="{{ product.id }}" data-wishlist-id="{{ wishlist.id }}">
  6.                     {% if not wishlist.isOwnWishlist and not wishlist.external and not wishlist.editable %}
  7.                         {% set delete = false %}
  8.                     {% else %}
  9.                         {% set delete = true %}
  10.                     {% endif %}
  11.                     {% sw_include '@Storefront/wishlist/box/product-prev.html.twig' with {
  12.                         product: product,
  13.                         configuratorSettings:wishlist.configuratorSettings[key],
  14.                         index: loop.index,
  15.                         wishlistId: wishlist.id,
  16.                         external: wishlist.external,
  17.                         delete: delete,
  18.                         move : delete
  19.                     } only %}
  20.                 </div>
  21.             {% endfor %}
  22.             {% if(wishlist.products is empty) %}
  23.                 <div class="pixupWishlistProductContainer pixupWishlistNoProductContainer" id="product_container1" data-product-id="-1" data-wishlist-id="{{ wishlist.id }}" style="min-width:100%;width:100%">
  24.                     <div class="textWrapper">
  25.                         <div class="title"> {{ "pixup-wishlist.wishlist-page.errorCodes.noProducts.title"|trans }}</div>
  26.                         <div class="desc"> {{ "pixup-wishlist.wishlist-page.errorCodes.noProducts.desc"|trans }}</div>
  27.                     </div>
  28.                     {% sw_icon 'px-bot' style {"namespace":"PixupWishlistSW6","pack":"pixup", "class":"  pxBot", "noIcon":"true"} %}
  29.                 </div>
  30.             {% endif %}
  31.         </div>
  32.         {% sw_include '@Storefront/wishlist/box/pixup-reco-box.html.twig'  with {
  33.             pixupReco: wishlist.pixupReco
  34.         } only %}
  35.     {% endfor %}
  36. {% endblock %}