From de79e519366a62e598a569e5855f6cdd0b9c87d0 Mon Sep 17 00:00:00 2001 From: Bell Date: Tue, 19 May 2026 15:45:45 +0700 Subject: [PATCH 1/4] add cart_line_properties.html --- partials/cart_line_properties.html | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 partials/cart_line_properties.html diff --git a/partials/cart_line_properties.html b/partials/cart_line_properties.html new file mode 100644 index 0000000..daad517 --- /dev/null +++ b/partials/cart_line_properties.html @@ -0,0 +1,5 @@ +{% for attribute in attributes %} + {% if attribute.option.code|first not in "_" %} +
{{ attribute.option.code }}: {{ attribute.value }}
+ {% endif %} +{% endfor %} \ No newline at end of file From 5749f4eee9d6ade49eb0a04b589763b35b4009ea Mon Sep 17 00:00:00 2001 From: Bell Date: Tue, 19 May 2026 15:45:59 +0700 Subject: [PATCH 2/4] show line properties --- partials/cart_content.html | 1 + partials/cart_summary.html | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/partials/cart_content.html b/partials/cart_content.html index 2061315..562c4ac 100644 --- a/partials/cart_content.html +++ b/partials/cart_content.html @@ -64,6 +64,7 @@ {{ line.description }}
+ {% include "partials/cart_line_properties.html" with attributes=line.attributes.all %}
{% t "tables.content.price" %}: {% if not line.unit_price_incl_tax and not line.unit_tax_excl_tax %} diff --git a/partials/cart_summary.html b/partials/cart_summary.html index 0da4ec7..aab7f35 100644 --- a/partials/cart_summary.html +++ b/partials/cart_summary.html @@ -69,7 +69,10 @@ {% for line in group.lines %} - {{ line.product.get_title }} + + {{ line.product.get_title }} + {% include "partials/cart_line_properties.html" with attributes=line.attributes.all %} + {{ line.quantity }} {{ line.rebill_unit_price_excl_tax_incl_discount|currency:group.currency }} From 581c7cdef85d21b55d812adfad53606bc31864c6 Mon Sep 17 00:00:00 2001 From: Bell Date: Tue, 19 May 2026 16:02:01 +0700 Subject: [PATCH 3/4] change syntax --- partials/cart_line_properties.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/partials/cart_line_properties.html b/partials/cart_line_properties.html index daad517..6c95195 100644 --- a/partials/cart_line_properties.html +++ b/partials/cart_line_properties.html @@ -1,5 +1,5 @@ {% for attribute in attributes %} - {% if attribute.option.code|first not in "_" %} + {% if attribute.option.code.0 not in "_" %}
{{ attribute.option.code }}: {{ attribute.value }}
{% endif %} {% endfor %} \ No newline at end of file From 4e178bbed6736f376c7dce45a9a7d1b1b404a814 Mon Sep 17 00:00:00 2001 From: Bell Date: Tue, 26 May 2026 16:40:38 +0700 Subject: [PATCH 4/4] change to use line properties --- partials/cart_content.html | 2 +- partials/cart_line_properties.html | 6 ++---- partials/cart_summary.html | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/partials/cart_content.html b/partials/cart_content.html index 562c4ac..4b2df1d 100644 --- a/partials/cart_content.html +++ b/partials/cart_content.html @@ -64,7 +64,7 @@ {{ line.description }}
- {% include "partials/cart_line_properties.html" with attributes=line.attributes.all %} + {% include "partials/cart_line_properties.html" with properties=line.properties %}
{% t "tables.content.price" %}: {% if not line.unit_price_incl_tax and not line.unit_tax_excl_tax %} diff --git a/partials/cart_line_properties.html b/partials/cart_line_properties.html index 6c95195..d278ce3 100644 --- a/partials/cart_line_properties.html +++ b/partials/cart_line_properties.html @@ -1,5 +1,3 @@ -{% for attribute in attributes %} - {% if attribute.option.code.0 not in "_" %} -
{{ attribute.option.code }}: {{ attribute.value }}
- {% endif %} +{% for property in properties %} +
{{ property.key }}: {{ property.value }}
{% endfor %} \ No newline at end of file diff --git a/partials/cart_summary.html b/partials/cart_summary.html index aab7f35..5c3ed1d 100644 --- a/partials/cart_summary.html +++ b/partials/cart_summary.html @@ -71,7 +71,7 @@ {{ line.product.get_title }} - {% include "partials/cart_line_properties.html" with attributes=line.attributes.all %} + {% include "partials/cart_line_properties.html" with properties=line.properties %} {{ line.quantity }} {{ line.rebill_unit_price_excl_tax_incl_discount|currency:group.currency }}