← All guides

WooCommerce low stock email: turn it on and get one daily summary

Updated

WooCommerce can email you when a product runs low, but out of the box the emails are easy to miss or too noisy: one message per product, sent to whoever is set as the store address. Here is how to set it up properly, and how to get a single daily summary instead.

Turn on WooCommerce's own low stock emails

  1. Go to WooCommerce > Settings > Products > Inventory.
  2. Tick Enable stock management, then Notifications for low stock and out of stock.
  3. Set Notification recipient(s). The default is the site admin address, which is often not the person who orders stock.
  4. Set Low stock threshold and Out of stock threshold. These are store-wide defaults; you can override the low stock level on each product, under Inventory.

Only products with Manage stock ticked take part. A product without it never triggers an email, however empty the shelf is.

Why you still miss low stock

  • One email per product. If twelve products cross the line in a week you get twelve separate messages, and no overview.
  • It fires once, at the moment of the sale. If you miss that email, nothing reminds you.
  • Wrong recipient. The email goes to one address, often a shared inbox nobody reads.
  • Delivery. Store emails sent from the default WordPress mailer land in spam on some hosts. Send a test and check; an SMTP plugin usually fixes it.
  • It says nothing about slow movers or what the stock on your shelves is worth.

Option 1: send low stock to more than one person

The setting accepts one address. To add more without a plugin, use the filter WooCommerce applies to that email's recipient. Put this in a small custom plugin or your child theme's functions.php:

add_filter( 'woocommerce_email_recipient_low_stock', function ( $recipient ) {
    return $recipient . ',buyer@example.com';
} );

add_filter( 'woocommerce_email_recipient_no_stock', function ( $recipient ) {
    return $recipient . ',buyer@example.com';
} );

Replace the address with a real one. Keep a copy of the file before you edit it: a mistake in a snippet can break the site.

Option 2: a daily summary with a snippet

This sends one email a day listing every managed product at or below its low stock level. It uses WordPress's scheduler, so it runs when your site gets a visit around that time.

add_action( 'init', function () {
    if ( false === wp_next_scheduled( 'my_low_stock_digest' ) ) {
        wp_schedule_event( strtotime( 'tomorrow 08:00' ), 'daily', 'my_low_stock_digest' );
    }
} );

add_action( 'my_low_stock_digest', function () {
    $threshold = (int) get_option( 'woocommerce_notify_low_stock_amount', 2 );
    $products  = wc_get_products( array(
        'limit'        => -1,
        'manage_stock' => true,
        'status'       => 'publish',
        'type'         => array( 'simple', 'variation' ),
    ) );
    $lines = array();
    foreach ( $products as $p ) {
        $qty = $p->get_stock_quantity();
        if ( null !== $qty && $qty <= $threshold ) {
            $lines[] = $p->get_name() . ': ' . $qty;
        }
    }
    if ( $lines ) {
        wp_mail( 'buyer@example.com', 'Low stock summary', implode( "\n", $lines ) );
    }
} );

Limits of this snippet: it uses the store-wide threshold, not each product's own, and it lists names and counts only. It also loads every stock-managed product, so on a large catalogue run it off-peak and test it on a copy first.

Option 3: Tadrik Stock Digest

Tadrik Stock Digest is a free plugin on WordPress.org that sends one daily or weekly email instead of per-product messages. It lists:

  • products out of stock and products low on stock, using each product's own threshold;
  • products likely to run out within a cover window you set, from recent sales pace;
  • dead stock: products that have not sold for months;
  • the value of your stock at cost or price, with a count of products that have no cost set.

You choose up to 10 recipients and the send hour, and a Send a test digest now button shows the exact email before the first scheduled run. It works with HPOS and the block checkout. Settings are under WooCommerce > Stock Digest. See Tadrik Stock Digest.

Which should you pick?

  • Built-in emails: a small catalogue and one person who reads every message.
  • Snippet: you want a daily list and are comfortable with code.
  • Plugin: you want reorder warnings, dead stock and stock value, or someone else to manage the settings.

Related: minimum and maximum order quantity in WooCommerce.

Common questions

"Why am I not getting WooCommerce low stock emails?" "Check that stock management and notifications are on, that the product has Manage stock ticked, that the recipient address is right, and that the email is not in spam. Send a test email from your site to confirm delivery."

"Can I set a different low stock level per product?" "Yes. Open the product, go to Inventory and fill in Low stock threshold. It overrides the store-wide default."

"Can the email go to several people?" "The core setting takes one address. Use the filter in this guide, or a plugin that accepts several recipients."

"Does the daily summary snippet work on variable products?" "It checks simple products and variations that manage their own stock. A variable parent that does not hold stock is not listed."