From e57279a6d36e576589136858de77fc15d03b6466 Mon Sep 17 00:00:00 2001 From: Douglas Soares de Andrade Date: Mon, 7 Aug 2017 22:52:49 -0300 Subject: [PATCH] Allow the template to show all product images Now it is possible to show all registered images of the product - maybe we can define a limit in the plugin configuration page. --- templates/partials/shoppingcart_core_detail_item.html.twig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/partials/shoppingcart_core_detail_item.html.twig b/templates/partials/shoppingcart_core_detail_item.html.twig index 90b86b8..c3acab2 100644 --- a/templates/partials/shoppingcart_core_detail_item.html.twig +++ b/templates/partials/shoppingcart_core_detail_item.html.twig @@ -1,4 +1,3 @@ -{% set shoppingcart_image = page.media.images|first %} {% set image_size_product = config.plugins.shoppingcart.ui.image_size_product %} {% include 'partials/shoppingcart_core_cart.html.twig' %} @@ -6,8 +5,10 @@
- {% if shoppingcart_image %} + {% if page.media.images %} + {% for shoppingcart_image in page.media.images %} {{ shoppingcart_image.cropResize(image_size_product, image_size_product).html(page.header.title, 'shoppingcart-thumb-image')|raw }} + {% endfor %} {% else %}


{% endif %}