This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent
Featured Product
block from breaking when product is out of…
… stock + hidden from catalog (#6166) * Prevent accessing the first element of the `parentProduct` array if empty * Include all products regardless of their `stock_status` By default, the `/wc/store/v1/products` endpoint does not return products with `outofstock` stock status. We want the users to be able to select any product regardless of its stock status, we need to explicitly request them using the `stock_status` query param. * Use the optional chaining operator Co-authored-by: Tomasz Tunik <[email protected]>
- Loading branch information