vue-storefront-api icon indicating copy to clipboard operation
vue-storefront-api copied to clipboard

Elastic Stock cannot find product stock for configurable children

Open eerohakio opened this issue 5 years ago • 1 comments

Release: Vue Storefront API 1.11.0

Steps to reproduce:

  1. Go to configurable product page

Expected result:

  • Stock is found for product

Actual result:

  • Stock cannot be found and error message "No stock information for given sku" is shown

Cause:

  • Elastic stock tries to find child product of configurable and filtering results with term visibility: [2, 3, 4]
  • Child products are set with visibility 1

Fix:

  • Remove visibility filter for stock fetching

eerohakio avatar Dec 27 '19 18:12 eerohakio

Thanks! Can you please propose a PR with a fix for that?

pkarw avatar Jan 16 '20 08:01 pkarw