Remove Out of Stock products from WooCommerce Related Products

Out of stock empty shelves

Looking at a WooCommerce client recently who has opted to display (albeit not prominently) out of stock products in their store, sometimes we were seeing those OOS (out of stock) products showing up in Related Products. Since there were 4 slots available, this would sometimes create an undesirable buying experience: why would anyone want to …

Read more