Add data-article-id to reference cart-item in product-list (#5244)

This commit is contained in:
Richard Schreiber
2025-06-23 11:49:23 +02:00
committed by GitHub
parent 40855e14d9
commit d55f411989

View File

@@ -25,7 +25,7 @@
</div>
<div role="rowgroup" class="firstchild-in-panel">
{% for line in cart.positions %}
<div role="row" class="row cart-row {% if hide_prices %}hide-prices{% endif %} {% if download %}has-downloads{% endif %}{% if editable %}editable{% endif %}">
<div role="row" class="row cart-row {% if hide_prices %}hide-prices{% endif %} {% if download %}has-downloads{% endif %}{% if editable %}editable{% endif %}" data-article-id="item-{{ line.item.id }}{% if line.variation %}-{{ line.variation.id }}{% endif %}">
<div role="cell" class="product">
<p>
{% if line.addon_to %}