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

Not able to add products to cart consecutively after searching

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: No Longer Reproducible
    • 2.0.1, 2.0.2
    • None
    • Shopping Experience

    Description

      Steps

      1. Create two products with option variants (select from list)
      2. Go to the product details page of one of the products
      3. Select an option and add to cart
      4. Navigate to the other product by searching for its name in the search bar
      5. Attempt to add the product to cart

      Expected: You should be able to add the product to cart

      Actual: You are not able to add the product to cart and you get an error that "No CPInstance exists with primary key 0". 

      Note: If you refresh the page and attempt to add again, it goes through fine. I've also been able to reproduce this by navigating to a new product through the catalog menu. It seems to affect any other product that has variants you can choose. If it has no variants, it can be added without refreshing the page.

      Attachments

        Issue Links

          Activity

            People

              alessandro.iovane Alessandro Iovane
              joshua.stclair Joshua St. Clair (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package