Hide Out of Stock products in Related Products Section

Hey there!
So I have a section on my product page that shows “Related Products” but for some reason, it is also showing products that are Out Of Stock; How can I only display products that are only in stock.
Store URL: https://saya.pk/products/embroidered-chikankari-cotton-3-piece-10
PS: You’ll find “Related Products” section at the bottom of the page

Hello @Moeed ,

You can modify your “Related Products” section in your Shopify store to only display products that are currently in stock by following these:

  • Go to your Online Store → Themes → Customize → Sections → Related Products
  • Look for an option that allows you to filter products by their availability. This option may be named differently depending on your theme, but it typically has options such as “In Stock,” “Out of Stock,” and “All Products.”
  • Select the “In Stock” option to filter out the products that are out of stock.
  • Save your changes, and then preview

Hope this can help.

Best regards,

OneCommerce team.

Already searched the whole customize tab; it’ll be only fixed through coding

1 Like

Hi @Moeed

Please refer to the below video to implement the same.

Don’t forget to mark it as a solution if it helps…