{% extends 'base.html' %} {% block content %} All Discounted Products {% for product in discounted_products %} {% if product.discount_percent %} -{{ product.discount_percent }}% OFF {% endif %} {{ product.product_name }} {% if product.discounted_price and product.discounted_price < product.price %} ${{ product.price }} ${{ product.discounted_price }} {% else %} ${{ product.price }} {% endif %} View Details {% endfor %} {% endblock %}
${{ product.price }} ${{ product.discounted_price }}
${{ product.price }}