feat: added product variants
This commit is contained in:
@@ -26,6 +26,11 @@
|
||||
>
|
||||
{{ item.product.name }}
|
||||
</a>
|
||||
{% if item.variant %}
|
||||
<p class="text-sm">
|
||||
{% for attribute_value in item.variant.attribute_values.all %}{{ attribute_value }}{% if not forloop.last %}, {% endif %}{% endfor %}
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
<div class="flex items-center gap-4">
|
||||
<form class="flex" hx-post="{% url 'web:delete_cart_item' pk=item.pk %}"
|
||||
@@ -50,7 +55,7 @@
|
||||
</div>
|
||||
<div class="text-end md:order-4 md:w-32">
|
||||
<p class="text-base font-bold ">
|
||||
{{ item.product.price.price_with_tax }}€
|
||||
{{ item.price.price_with_tax }}€
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user