Skip to content

Commit 111a470

Browse files
committed
update serialized cart product when changing quantity
1 parent ef6e3e9 commit 111a470

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/src/main/java/io/snabble/sdk/ShoppingCart.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ public void setQuantity(Product product, int quantity, ScannableCode scannedCode
150150
Entry e = getEntryBySku(product.getSku());
151151

152152
if (e != null) {
153+
// update product for changing prices
154+
e.product = product;
155+
153156
if (scannedCode != null) {
154157
setScannedCodeForEntry(e, scannedCode);
155158
}

0 commit comments

Comments
 (0)