custom/plugins/PixupWishlistSW6/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_image %}
  3.     {% if page.header.pixup.showIconOnProductImage == true %}
  4.          <div class="pixupIconOnImage">
  5.             {% sw_include '@Storefront/wishlist/add-to-wishlist-button.html.twig'  with {
  6.                 productId: product.id,
  7.                 remove :product.customFields.isOnWishlist,
  8.             } %}
  9.          </div>
  10.     {% endif %}
  11.     {{ parent() }}
  12. {% endblock %}
  13. {% block component_product_box_rating %}
  14.     {% if page.header.pixup.showIconOnProductImage == false %}
  15.         {% if shopware.config.detail.showReviews %}
  16.             {% if product.ratingAverage %}
  17.                 <div class="product-rating" style="display: flex;align-items: stretch;justify-content: space-between;">
  18.                     {% sw_include '@Storefront/storefront/component/review/rating.html.twig' with {
  19.                         points: product.ratingAverage,
  20.                         style: 'text-primary'
  21.                     } %}
  22.                     {% sw_include '@Storefront/wishlist/add-to-wishlist-button.html.twig'  with {
  23.                         productId: product.id,
  24.                         remove :product.customFields.isOnWishlist,
  25.                     } %}
  26.                 </div>
  27.             {% else %}
  28.                 <div class="product-rating" style="display: flex;align-items: center;justify-content: flex-end;">
  29.                     {% sw_include '@Storefront/wishlist/add-to-wishlist-button.html.twig'  with {
  30.                         productId: product.id,
  31.                         remove :product.customFields.isOnWishlist,
  32.                     } %}
  33.                 </div>
  34.             {% endif %}
  35.         {% else %}
  36.             <div class="product-rating" style="display: flex;align-items: center;justify-content: flex-end;">
  37.                 {% sw_include '@Storefront/wishlist/add-to-wishlist-button.html.twig'  with {
  38.                     productId: product.id,
  39.                     remove :product.customFields.isOnWishlist,
  40.                 } %}
  41.             </div>
  42.             {{ parent() }}
  43.         {% endif %}
  44.     {% else %}
  45.         {{ parent() }}
  46.     {% endif %}
  47. {% endblock %}