Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-3921

As a store administrator, I want the backorder setting to be considered in my product availability

    Details

      Description

      I created a bundle and included SKUs which have 0 available quantity but can be backordered. Because they can be backordered, I can add them to my cart in the storefront. But in the context of a bundle, they don’t show up as available.

      I tested and as soon as I increase the quantity on hand and the available quantity increases to 1 or more, they show up in the bundle.

      Assumptions

      1. Working storefront that can display products. You can use Minium for convenience

      Steps to Reproduce

      1. Create a product that can be backordered
        1. Set the SKU's quantity to 0
      2. Create a second product
        1. Make sure this product has available inventory > 0
      3. Create a third, bundle, product
        1. Creat an option
          1. Field type is Select from List or Single Select
          2. Price type can be either Static or Dynamic
          3. Create two option values
            1. Option value #1 is linked to the product SKU created in Step #1
            2. Option value #2 is linked to the product SKU created in Step #2
        2. Generate all SKU combinations
        3. Make this product backorder-able or give it available quantity
      4. View the product in the storefront

      Expected Result

      Option value #1 and option value #2 are available because

      • The SKU linked to option value #2 has available quantity, and
      • The SKU linked to option value #1 can be backordered

      Actual Result

      Option value #1 is not selectable/can't be added to the cart

      Reproduced On

      7.2

      Tomcat 9.0.33 + HSQL 2.3.3
      DXP 7.2 FP5
      Commerce brianchandotcom/liferay-portal-ee:7.1.x git hash d2d6ed7cdc6adec6573191ebf68b38930033b6ba

      7.1

      Tomcat 9.0.33 + HSQL 2.3.3
      DXP 7.1 FP17
      Commerce brianchandotcom/liferay-portal-ee:7.1.x git hash d2d6ed7cdc6adec6573191ebf68b38930033b6ba

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pietro.bocale Pietro Bocale
              Reporter:
              corbin.murakami Corbin Murakami
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  2.1.2