{% load i18n pcart_core theme_tags thumbnail staticfiles%} {% comment %}Is this product on sale?{% endcomment %} {% save False as on_sale %} {% if product.compare_at_price > product.price %} {% save True as on_sale %} {% endif %} {% comment %}Is this product new?{% endcomment %} {% timezone_now as today %} {% save today|minus:product.added|attr:"days" as dates_diff %} {% save 3 as new_products_period %}