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

Quick multiple clicks duplicate the same item in the cart

Details

    • Minor

    Description

      Issue
      If the user quickly double-clicks or clicks repeatedly on an item, that same item will be listed multiple times inside the cart.

      Steps to reproduce
      Environment: 7.3 GA1

      1. Login with user Test Test ([email protected] / test)
      2. Create a commerce Minium site. Control Panel -> Sites -> New Minium Site
      3. Re-index Control Panel -> Search -> Index Actions -> Reindex all search indexes
      4. Create an Account: Control Panel -> Accounts -> Click Plus button (Account Type Business)
      5. Go to Minium Site -> Catalog
      6. Click multiple times quickly/rapidly on items to add to cart
      7. Inspect the cart contents

      Expected Result
      If we clicked on calipers 10 times > we'd see one entry for 'calipers' and 10 of them
      Example:
      Calipers : 10

      Actual Result
      Calipers can get multiple entries inside the cart
      Example:
      Calipers : 1
      Calipers : 5
      Calipers : 4

      Reproduced in

      7.3 GA1
      This is not PC Spec / OS dependent. Reproduction on Mac and Debian, Ubuntu with Chrome and Firefox.

      Attachments

        Activity

          People

            bronson.perez Bronson Perez
            gianmarco.brunialti Gianmarco Brunialti (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Packages

                Version Package
                7.3.X