Made each product a link to its own product page

This commit is contained in:
2024-01-18 19:40:02 +00:00
parent 43b85c9b23
commit bd3481c2cc
2 changed files with 25 additions and 2 deletions

View File

@ -3,7 +3,7 @@
<div class="product-container">
{% if products != None %}
{% for product in products %}
<div class="product">
<a href="/products/{{product.id}}" class="product product-link">
<div class="product-title">{{product.name}}</div>
<div class="product-information">
<div class="product-image">
@ -15,7 +15,7 @@
</div>
</div>
<div class="product-add-to-cart"></div>
</div>
</a>
{% endfor %}
{% endif %}
</div>