Details
-
Bug
-
Resolution: Done
-
Medium
-
4.4.0-rc1, 4.4.x-dev
-
None
Description
Steps to reproduce:
- Log in to storefront.
- Go to /product-catalog or product page.
- Click 'Add to cart' button while page is still loading.
- Verify web browser console output.
Actual result:
See attached screenshots
Sometimes adding product to cart cause a JS exception and product is not added to cart.
Uncaught TypeError: Cannot read properties of null (reading 'entries') at StorefrontCart.getProductEntry (ibexa-storefront-cart-js.js:230:40) at StorefrontCart.addProduct (ibexa-storefront-cart-js.js:244:31) at StorefrontAddToCart.handleAddToCart (ibexa-storefront-cart-js.js:63:26) at StorefrontAddToCart.handleAddToCart (ibexa-storefront-cart-js.js:997:85)
Expected result:
Even when page is loaded an request is sent and product is added to the cart.
Note:
Problem exists for standard and variant products
Designs
Attachments
Issue Links
- is duplicated by
-
IBX-4914 Add To Cart not adding items before cart loaded
- Closed