Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Cart lines should reference variant IDs

lampyjoncc8304ae8d1b
diff --git a/templates/cart/index.html b/templates/cart/index.html
index a06b1b0b0e..1f9d269618 100644
--- a/templates/cart/index.html
+++ b/templates/cart/index.html
@@ -93,7 +93,7 @@
</div>
</td>
<td class="text-right hidden-xs">{% gross line.get_price_per_item html=True %}</td>
- <td class="text-right cart-item-subtotal" data-product-id="{{ line.variant.pk }}">{% gross line.get_total html=True %}</td>
+ <td class="text-right cart-item-subtotal" data-variant-id="{{ line.variant.pk }}">{% gross line.get_total html=True %}</td>
</tr>
{% endfor %}
</tbody>