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

Sort Price 'High to Low' issues with Product Base Price = 0, and using Prices List

    Details

      Description

      Parent ticket
      https://liferay-support.zendesk.com/agent/tickets/44232

      Issue
      We see that when products are configured with (Product Base Price = 0, and using a Prices List). With the catalog open, if we use the sort option 'High to Low', products are not sorted correctly by their assigned value.

      Steps to Reproduce
      Environment: liferay-dxp-7.3.10-ga1

      1. Start server and login with user Test Test
      2. Create a new Minium site named: MiniumABC
      3. Re-index the MiniumABC
      Control Panel > Search > Index Actions > Reindex all search indexes

      4. Create Account A:
      Control Panel > Accounts > Click Plus button
      Name: Account A
      Type: Business
      Active: Checked
      Save

      5. Create Account Group A
      Control Panel > Account Groups > Click Plus button
      Name: Account Group A
      Save
      Click Accounts tab > Click Plus button > Select Account A > Add

      6. Create Price Lists A
      Commerce > Price Lists > Click Plus button
      Name: Price Lists A
      Catalog: Minium
      Currency: USD
      Submit
      At Price List A Detail > tab Eligibility > Specific Account Groups > Add Account Group A > Publish

      7. Setting Product Price base on Price List
      Commerce > Products
      > Detail of ABS Sensors > SKU > click on SKU to edit > Set Base price = 0 > Publish > Click Price Lists tab > Click Plus button > choose Price Lists A > Edit Price = 30 > Publish
      > Detail of Wear Sensors > SKU > click on SKU to edit > Set Base price = 0 > Publish > Click Price Lists tab > Click Plus button > choose Price Lists A > Edit Price = 70 > Publish

      8. Go to MiniumABC Site > Catalog > Choose Item per page = 60 Entries > Sort Price High to Low > Check result

      Expected Result
      High to Low sort has products correctly sorted in order of price.

      Actual Result
      High to Low sort has instances of higher value items coming after lower priced ones.

      Reproduced in

      • liferay-dxp-7.3.10-ga1

      Not Reproduced in

      • 7.3.x (56b0e1697ce17ed4e399bbf2915b1b48d4a5b38c)
        The 2 items we updated the prices for are seen at the bottom of the product list when sorted High to Low

      Unconfirmed in

      • master (9f375528c91b2c745e13b92a25b67de3595523a3)
        I was unable to locate the 'Price Lists' tab from step 7. Your guidance on this will be appreciated for the future. Thanks!

      Attachment
      Client movie file of the issue
      CSE master screenshot

        Attachments

          Activity

            People

            Assignee:
            marco.leo Marco Leo
            Reporter:
            piernicolo.pinna Pier Nicolò Pinna
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                7.4 CE GA2
                Master