{% load i18n %} {% load image_tags %} {% load currency_filters %} {% load purchase_info_tags %} {% purchase_info_for_product request product as session %} {% with all_images=product.get_all_images %} {# use length rather then count as the images get queried anyways #} {% if all_images|length > 1 %} {% else %} {# Only one image to show #} {% endif %} {% endwith %}