Skip to content

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

Cart lines are by variantIDs not productIDs

lampyjon5b00323764f6
diff --git a/saleor/static/js/cart.js b/saleor/static/js/cart.js
index 9d967c14fe..f56425f05d 100644
--- a/saleor/static/js/cart.js
+++ b/saleor/static/js/cart.js
@@ -56,9 +56,9 @@ if ($cartTotal.length) {
}
$('.cart-item-subtotal').each(function() {
- let productId = $(this).data('product-id')
+ let variantId = $(this).data('variant-id')
let props = {
- productId,
+ variantId,
subtotal: $(this).text()
}
store.dispatch({
@@ -67,7 +67,7 @@ $('.cart-item-subtotal').each(function() {
})
render(
<Provider store={store}>
- <CartItemSubtotal productId={productId} />
+ <CartItemSubtotal variantId={variantId} />
</Provider>,
this
)