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

Not able to add products to cart consecutively after searching


    • Type: Bug
    • Status: In Progress
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.1, 2.0.2
    • Fix Version/s: None
    • Component/s: Shopping Experience
    • Labels:



      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.


          Issue Links



              • Votes:
                0 Vote for this issue
                0 Start watching this issue


                • Created:


                  Version Package