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

There is problem with displaying available products when "listOutOfStockProducts": false #2905

Closed
1 of 5 tasks
alinadivante opened this issue May 15, 2019 · 1 comment
Closed
1 of 5 tasks
Labels
bug Bug reports

Comments

@alinadivante
Copy link
Collaborator

alinadivante commented May 15, 2019

Steps to reproduce the issue

  1. Change "listOutOfStockProducts":  from true to false in local.json file
  2. Run VSF locally and click on "Tiffany Fitness Tee" from Everything new section
  3. Click on Tees in breadcrumbs to open sub-category
    →  Default Category / Women / Tops / Tees
  4. Again open Tiffany Fitness Tee product
  5. Refresh the page

Current behavior

There is problem with displaying available products.
"No available product variants" information is displayed on product page, but when I refresh page then I see two variants of my product.
listOutOfStockProducts

Expected behavior

Only available products should be displayed.

Repository

Can you handle fixing this bug by yourself?

  • YES
  • NO

Which Release Cycle state this refers to? Info for developer.

Pick one option.

  • This is a bug report for test version on https://test.storefrontcloud.io - In this case Developer should create branch from develop branch and create Pull Request 2. Feature / Improvement back to develop.
  • This is a bug report for current Release Candidate version on https://next.storefrontcloud.io - In this case Developer should create branch from release branch and create Pull Request 3. Stabilisation fix back to release.
  • This is a bug report for current Stable version on https://demo.storefrontcloud.io and should be placed in next stable version hotfix - In this case Developer should create branch from hotfix or master branch and create Pull Request 4. Hotfix back to hotfix.

Environment details

  • Browser:
  • OS:
  • Node:
  • Code Version:

Additional information

@alinadivante alinadivante added the bug Bug reports label May 15, 2019
@pkarw
Copy link
Collaborator

pkarw commented May 15, 2019

This is the correct behavior. The variants stock is synced asynchronously when browsing thru products catalog. If there would be the dynamic magento2-vsbridge-indexer running in the background this situation wouldn't have happened. I mean - the products on the list are displayed based on ElasticSearch stock data. If it's not updated - there could be a situation that products avaialble in the Elastic are no longer available in Magento - the situation You've reported.

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

No branches or pull requests

2 participants