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

Backorder is not allowed on newly created products even though the toggle is set to True

    Details

      Description

      Assumptions

      1. At least one catalog
      2. A storefront that's configured to display products and have a cart

      Steps to Reproduce

      1. Create a new product
      2. Set the SKU to a unique SKU (so it doesn't share SKUs with a different product)
      3. Leave the SKU's inventory at 0
      4. Go to the Configuration tab and assert that the backorder setting is set to true by default for this newly created product
      5. Publish the product
      6. Find it in the storefront
      7. Try to add it to your cart

      Expected Behavior

      Units of the product can be added to the user's cart because backordering is allowed

      Actual Behavior

      Units of the product can't be added to the cart. Notification says that inventory is not available.

      Workaround

      1. Edit the product
      2. Set backorder to false. Publish
      3. Edit the product. Set backorder to true. Publish
      4. Try again

      Notes

      • Reproduced on 7.1. Haven't tested on 7.2.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              andrea.sbarra Andrea Sbarra
              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.0