Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions partials/cart_content.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
{{ line.description }}
</div>
<div class="cart_table-schedule">
{% include "partials/cart_line_properties.html" with properties=line.properties %}
<div>
{% t "tables.content.price" %}:
{% if not line.unit_price_incl_tax and not line.unit_tax_excl_tax %}
Expand Down
3 changes: 3 additions & 0 deletions partials/cart_line_properties.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% for property in properties %}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SUGGESTION: Add newline at end of file for POSIX compliance

<div>{{ property.key }}: {{ property.value }}</div>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WARNING: Unescaped template output — property.key and property.value are rendered directly. Verify that line.properties data is always escaped by the platform, or use {{ property.key|escape }} and {{ property.value|escape }} for explicit safety.

{% endfor %}
5 changes: 4 additions & 1 deletion partials/cart_summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@
</tr>
{% for line in group.lines %}
<tr>
<td>{{ line.product.get_title }}</td>
<td>
{{ line.product.get_title }}
{% include "partials/cart_line_properties.html" with properties=line.properties %}
</td>
<td>{{ line.quantity }}</td>
<td>{{ line.rebill_unit_price_excl_tax_incl_discount|currency:group.currency }}</td>
</tr>
Expand Down