feat: added product variants
This commit is contained in:
@@ -25,11 +25,16 @@
|
||||
class="text-sm font-semibold leading-none hover:underline">
|
||||
{{ cart_item.product.name }}
|
||||
</a>
|
||||
{% if cart_item.variant %}
|
||||
<p class="text-xs">
|
||||
{% for attribute_value in cart_item.variant.attribute_values.all %}{{ attribute_value }}{% if not forloop.last %}, {% endif %}{% endfor %}
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
<div class="flex items-center justify-between gap-6">
|
||||
<p
|
||||
class="mt-0.5 truncate text-sm font-normal ">
|
||||
{{ cart_item.product.price.price_with_tax }}€
|
||||
{{ cart_item.price.price_with_tax }}€
|
||||
</p>
|
||||
|
||||
<form hx-post="{% url 'web:delete_cart_item' pk=cart_item.pk %}"
|
||||
|
||||
Reference in New Issue
Block a user