We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bc0ae8c + 1ba7228 commit 1a86e15Copy full SHA for 1a86e15
templates/bundles/SyliusShopBundle/Product/_mainImage.html.twig
@@ -3,9 +3,9 @@
3
{% elseif product.images.first %}
4
{% set path = product.images.first.path|imagine_filter(filter|default('sylius_shop_product_thumbnail')) %}
5
{% else %}
6
-{% endif %}
7
{% set size = random(5) * 200 %}
8
{% set path = "https://picsum.photos/#{ size }/#{ size }.jpg" %}
+{% endif %}
9
10
<div class="ratio ratio-1x1">
11
<img src="{{ path }}" alt="{{ product.name }}" class="{{ class|default('') }} object-fit-cover rounded-3 border border-light bg-light" {{ sylius_test_html_attribute('main-image') }} />
0 commit comments