Skip to content

Unavailable product not properly ordered on shelf #101

@lxav

Description

@lxav

Unavailable items have the priced marked as 00,00 so when the parameter OrderByPriceASC is used, the first items to be displayed are unavailable.

Expected Behavior

Unavailable items should be displayed after the rest of the search results.

Current Behavior

Unavailable items are being displayed before the rest of the search results, due to their price being loaded as zero.

Steps to Reproduce (for bugs)

Create a shelf with the code below:

"shelf#ofertas": {
    "props": {
      "orderBy": "OrderByPriceAsc",
      "productList": {
        "maxItems": 4,
        "itemsPerPage": 4,
        "scroll": "BY_PAGE",
        "arrows": false,
        "titleText": "O patrão tá maluco",
        "summary": {
          "isOneClickBuy": false,
          "showBadge": true,
          "badgeText": "OFF",
          "buyButtonText": "Leva agora meu!",
          "displayBuyButton": "displayButtonHover",
          "showCollections": false,
          "showListPrice": true,
          "showLabels": true,
          "showInstallments": true,
          "showSavings": true,
          "name": {
            "showBrandName": true,
            "showSku": true,
            "showProductReference": true
          }
        }
      }
    }
  }

Context

The expected behavior is to display the results currently available, followed by the unavailable items. Displaying unavailable products can be frustrating to the customer.

Your Environment

This test was performed in the workspace novaloja--pilateslovers.myvtex.com.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions