This Pro tutorial provides the steps to show a "OUT OF STOCK" ribbon for WooCommerce products that are output via the Bricks' Products element on listing pages like the Shop page and product category/tag archives.
Step 1
Let's register a custom function for our ribbon.
Add the following in your child theme's functions.php or a code snippets plugin like WPCodeBox:
2 comments
Brian Lovelace
Would love to see the same, but for a ‘Sale’ badge within a custom query loop ๐ Thanks Sridhar!
Sridhar Katakam
Done.
https://brickslabs.com/on-sale-ribbon-for-woocommerce-products-query-loop-in-bricks/