Details
-
Bug
-
Resolution: Fixed
-
High
-
4.4.x-dev
-
[4.4] - Sprint 5
-
Ibexa Commerce
Description
Preconditions:
- Added Product Type without specified 'VAT Category'
- Added Product based on Product Type (step 1).
Steps to reproduce:
- Log in to storefront as admin user.
- Go to /product-catalog
- Click on 'Add to cart' button for product from preconditions.
- Verify web console output and check response code and status.
- Go to /cart and verify web browser console output.
Actual result:
See attached screenshots
User can add product which belongs to product type without specified vat category.
Uncaught Error: Cart:getEntrySummaryByIdentifier: no cart summary data loaded! at StorefrontCart.getEntrySummaryByIdentifier (ibexa-storefront-cart-js.js:188:15) at StorefrontMaincart.renderItem (ibexa-storefront-cart-js.js:1073:36) at StorefrontMaincart.insertItem (ibexa-storefront-cart-js.js:458:31) at ibexa-storefront-cart-js.js:391:23 at Array.forEach (<anonymous>) at StorefrontMaincart.handleCartChanged (ibexa-storefront-cart-js.js:390:29) at StorefrontCart.onCartDataChanged (ibexa-storefront-cart-js.js:142:21) at ibexa-storefront-cart-js.js:135:18
Uncaught TypeError: Cannot read properties of undefined (reading 'vatCategorySummary')
at Summary.insertSummaryTaxData (ibexa-storefront-cart-js.js:615:40)
at Summary.insertSummaryData (ibexa-storefront-cart-js.js:646:12)
at Summary.refreshSummary (ibexa-storefront-cart-js.js:595:12)
at HTMLBodyElement.<anonymous> (ibexa-storefront-cart-js.js:588:15)
at StorefrontCart.onCartDataChanged (ibexa-storefront-cart-js.js:142:21)
at ibexa-storefront-cart-js.js:135:18
Expected result:
- User cannot add product to cart.
- Button 'Add to cart' for such product should be greyed out.