Feature products automatically when their sale starts

When a scheduled sale begins, mark the product as featured so it can appear in your storefront’s featured sections.

WooCommerce can schedule a sale price, but it doesn’t change which products are featured. If you use featured sections to promote offers, each product has to be featured by hand when its sale begins.

When a product’s sale starts and it’s in stock, this routine marks it as featured. That makes it eligible to appear wherever your theme, blocks or shortcodes show featured products. Products already on sale when you turn the routine on aren’t featured, and a product that was out of stock when its sale started isn’t featured later when it’s restocked.

It applies to simple products only. A variable product’s variations go on sale one by one, so they’re left out. Pair it with Remove products from featured sections when their sale ends. The two routines are independent, so turning one off doesn’t turn off the other.

Before you turn it on

When you add this routine, you’ll be asked to choose the categories it manages. Use the same categories in the companion routine that removes featured status when the sale ends.

Choose categories where Featured status should follow active promotions. Keep products you want permanently featured outside those categories, because the companion routine removes Featured status when their sale ends, even if they were featured beforehand.

What this routine does

WhenA product sale starts
Only ifProduct type and Product stock status and Product on sale
ThenSet product featured

Requirements

  • Store Routines 1.1.0 or later

You'll choose the categories this routine applies to after adding it.

Store Routines reviews every routine on your store before importing it, and imports it turned off.