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

[cart / product variants] Generated integer variants are treated in the system as product stock availability

    XMLWordPrintable

Details

    Description

      Preconditions:

      • Added attribute group
      • Added integer attribute based on attribute group (step1)
      • Added product type based on attribute group with selected toggle that field is required (step1 of preconditions)
      • Added product based on product type (step3 preconditions)
      • Generated 3 product variants with values e.g 20, 30, 40

      Steps to reproduce:

      1. Log in to storefront.
      2. Go to product page of product mentioned in preconditions.
      3. Select in dropdown product variant 20.
      4. Change input QTY value to 91.
      5. Click on 'Add to cart' button.
      6. Verify web browser console output.

      Actual result:

      See attached screenshots

      • Generated integer variants are treated in the system as product stock availability.
      • Generated integer variants and their values are summed up
      • User can add to cart summed values of all generated integer variants (in this case 90 but cannot add higher values e.g 91)
      PATCH http://flex30.com/api/ibexa/v2/cart/df9cbe33-80ee-4475-a73e-dab1c20839bc/entry/a869822e-2249-4c02-b5fd-e29e6451f1b3 404 (Not Found)
      Uncaught (in promise) Error: Not Found
          at handleRequest (ibexa-storefront-cart-js.js:816:11)
          at ibexa-storefront-cart-js.js:911:12 

      Expected result:

      Properly handled functionality.

      Designs

        Attachments

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: