Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unavailable product not properly ordered on shelf #101

Open
lxav opened this issue Feb 11, 2019 · 0 comments
Open

Unavailable product not properly ordered on shelf #101

lxav opened this issue Feb 11, 2019 · 0 comments

Comments

@lxav
Copy link

lxav commented Feb 11, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant