We've been working on a sneaker shop and the product overview page is only showing the products that are in stock. Now the client also wants to show some selected products on the overview even if there is no stock.

To show only the products with stock we've added:

hasVariant: {
    hasStock: true
}

Is there a way to select products that have stock and products that don't have stock but where showWhenNoStock is true?

May be good to know showWhenNoStock is a field on the main product not the variant.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.