{% 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 %}
{% if template != 'index' %}
{{ product.description|striptags|truncatechars:300 }}
{% endif %}
{% if product.price_varies %}From{% endif %} {{ product.price|money }} {% if on_sale %} {{ product.compare_at_price|money }} {% endif %}