Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-4819

[Storefront] User can add product which belongs to product type without specified vat category

    XMLWordPrintable

Details

    • [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:

      1. Log in to storefront as admin user.
      2. Go to /product-catalog
      3. Click on 'Add to cart' button for product from preconditions.
      4. Verify web console output and check response code and status.
      5. 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.

      Designs

        Attachments

          1. 0.png
            0.png
            117 kB
          2. 1.png
            1.png
            510 kB
          3. 2.png
            2.png
            327 kB
          4. 3.png
            3.png
            513 kB

          Activity

            People

              Unassigned Unassigned
              bogdan.mazur@ibexa.co Bogdan Mazur
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: