{% set product = hookable_metadata.context.product %} {% if product.images|length > 1 %}
{% for image in product.images %} {% set path = image.path is not null ? image.path|imagine_filter('sylius_shop_product_small_thumbnail') : asset('build/shop/images/200x200.png') %}
{% hook 'thumbnails' with {image, path} %}
{% endfor %}
{% endif %}