Skip to content

Commit 1504255

Browse files
committed
Fix cart quantity for bundled items
1 parent e038d3b commit 1504255

File tree

4 files changed

+100
-161
lines changed

4 files changed

+100
-161
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Draft
44
- Fixes body text color not taking effect for cart item headings on mobile / tablet [#1586](https://github.com/bigcommerce/cornerstone/pull/1586)
55
- Fix styling of review modal image [#1592](https://github.com/bigcommerce/cornerstone/pull/1592)
6+
- Fix cart quantity calculation for bundled products [#1596](https://github.com/bigcommerce/cornerstone/pull/1596)
67

78
## 4.2.1 (2019-10-15)
89
- Added missing gift certificate translation

assets/js/theme/global/cart-preview.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default function (secureBaseUrl, cartId) {
6767

6868
// Get updated cart quantity from the Cart API
6969
const cartQtyPromise = new Promise((resolve, reject) => {
70-
utils.api.cart.getCartQuantity({ baseUrl: secureBaseUrl }, (err, qty) => {
70+
utils.api.cart.getCartQuantity({ baseUrl: secureBaseUrl, cartId }, (err, qty) => {
7171
if (err) {
7272
reject(err);
7373
}

0 commit comments

Comments
 (0)