{% load i18n thumbnail pcart_core theme_tags staticfiles %} {% save size|default:'collection_small' as thumbnail_size %}
{% with im=product.images.first %} {% if im %} {{im}} {% else %} {% endif %} {% endwith %} {% if on_sale %}–{{product.compare_at_price|minus:product.price|times:100.0|divided_by:product.compare_at_price|money:'without_currency'|times:100|remove:'.0'}}%{% endif %} {% if dates_diff <= new_products_period %}{% trans "New" %}{% endif %} {% if not hide_buttons %}
{% include "catalog/includes/collection/buy_button.html" %}
{% endif %}