In my own WooCommerce shop, for Black Friday, I wanted to send customers directly to the Shop page showcasing only items on sale. To my surprise, WooCommerce doesn’t provide a built-in way to sort products by “on sale” out of the box.
This led me to explore a solution that not only solved the problem but also added a new sorting option to the WooCommerce Shop page dropdown.
Now, with a simple code snippet, you can enable a “Sort by On Sale” feature, or even use the “orderby=on_sale” parameter with your Shop page URL to show sale items effortlessly!
Continue reading WooCommerce: Display Only Products On Sale @ Shop