WooCommerce Deal of the Day (Deals of the Day): complete guide
Install and use DataFirefly Deals of the Day 1.0: deals page, automatic rotation, discount and exclusion rules, planned lineup, manual deals, badge and countdown, EU Omnibus, cache, analytics and troubleshooting.
Overview
DataFirefly Deals of the Day adds a “Deals of the Day” page and an automatic rotation engine to WooCommerce. At the time you choose, the plugin picks products according to your rules, applies a discount and ends the previous deals. You can also schedule deals by hand.
The deal price is computed on the fly while the deal is live. Prices stored in WooCommerce are never modified: when the deal ends, or when the planned units are sold, the regular price comes back by itself.
In short: activate the plugin, add the “Deals of the Day” page to your menu, set your rules in WooCommerce > Deals of the Day > Automatic rotation, then click Go live now.
Installation
- In Plugins > Add New > Upload Plugin, choose
df-deals-of-the-day.zip, then activate DataFirefly Deals of the Day. - You land on the plugin dashboard. The “Deals of the Day” page is already created and published: add it to your menu in Appearance > Menus or in the site editor.
Requirements: WordPress 6.2 or later, WooCommerce 7.8 or later, PHP 7.4 or later. The plugin is compatible with HPOS, the Cart and Checkout blocks, block themes and classic themes. The interface is available in English and French.
The dashboard is in WooCommerce > Deals of the Day. It is available to users allowed to manage WooCommerce.
Quick start
- Deals page: created on activation with the “Deals of the Day” block. Add it to the menu.
- Rotation rules: in the Automatic rotation tab, choose the mode, time, number of products, discount and exclusions, then save.
- Go live: click Go live now under the planned lineup to run the first rotation right away, or wait for the scheduled time. You can also create a manual deal in the Deals tab.
The three modes
- Automatic: products rotate on schedule according to your rules.
- Hybrid (default): your live manual deals take their slots first, the rotation fills the remaining slots up to the number of products you set.
- Manual: only the deals you schedule are live. Switching to manual mode ends the current automatic deals.
On the same product, a manual deal always wins over an automatic one.
Rotation schedule
- Every day at the chosen time (midnight by default).
- Every X hours from a starting time: every 6 hours starting at 08:00 gives 02:00, 08:00, 14:00 and 20:00.
- Every week on a given day and time.
Times follow the shop timezone (Settings > General). Each automatic deal lasts until the next rotation. The scheduler checks every 5 minutes whether a rotation is due and whether deals have started, ended or sold out.
Selection and discount
Selection
- Products per rotation: from 1 to 60.
- Priority: random, slow movers (to clear dormant stock), best sellers, highest stock (stock-managed products), newest products, highest price.
- Featured deal: biggest discount, first product picked, or none. The featured deal is shown large at the top of the page.
Discount
- Same percentage for all, or random within a range in steps: 15 to 40% in steps of 5 gives 15, 20, 25, 30, 35 or 40%.
- Maximum discount per unit: when the percentage would exceed this amount on an expensive product, the discount is capped at this amount.
- Units per deal: units sold at the deal price. 0 = unlimited. A stock bar is shown when a limit is set.
- Maximum per order: stops a customer from buying more units at the deal price. 0 = no limit.
Product pool and exclusion rules
The rotation draws from the whole catalogue, some categories (sub-categories included), some tags or a product list. A product matching any of these rules never enters an automatic rotation:
- excluded categories, tags, brands (WooCommerce Brands and the main brand plugins) or specific products;
- checked product types (grouped products are always excluded, they have no price of their own);
- products already on sale, out of stock, on backorder, without an image, hidden from the catalogue or featured, depending on the toggles you enable;
- regular price outside the min / max range;
- stock below the minimum stock (stock-managed products);
- products published less than X days ago (new arrivals);
- products that had an automatic deal in the last X days (cooldown, 30 days by default).
To exclude a single product, open it and tick Never include this product in automatic rotations in Product data > General.
The Live check box shows how many products match your rules while you edit them, before saving. When this number is lower than the products per rotation, it turns orange.
With Relax if not enough products, the rotation fills empty slots with products still in their cooldown rather than leaving slots free. The planned lineup flags them with “Cooldown relaxed”.
Next rotation lineup
Under the rules, Next rotation lineup shows the planned products with their regular price, deal price and discount. It is recomputed as soon as you change the rules.
- The Swap for another product button on a product replaces it with another eligible product.
- Shuffle recomputes the whole lineup.
- Go live now ends the current automatic deals and publishes the lineup immediately. The next rotation stays at its scheduled time.
At rotation time, each planned product is checked again: a product that no longer matches the rules (out of stock in the meantime, for example) is replaced, and the rotation history says so.
Manual deals
In the Deals tab, click New deal. You can also start from a product: Create a deal link in the products list, or Schedule a deal for this product button on its edit page.
- Product: a simple product, a variable product (all its variations are discounted) or a single variation.
- Discount: percentage, amount off or exact deal price. The preview on the right shows the regular price, the deal price and the actual discount.
- When: start and end dates in the shop timezone, with quick durations (24 hours, 48 hours, 3 days, 1 week, until midnight).
- Limits & visibility: units available at the deal price, maximum per order, featured deal.
The deals list can be filtered by status (live, scheduled, ended) and source (automatic, manual). Each deal can be edited, ended now, relaunched as a manual deal for the same duration, or deleted (its statistics are kept).
Product page, shop and cart
In the Design tab:
- Badge: text (“Deal of the day” by default), icon, percentage, and style on images: pill, ribbon, corner or sticker. The badge replaces the WooCommerce “Sale!” badge on deal products.
- Colours & shape: six ready-made palettes or your own colours, and corner radius. The preview on the right updates live.
- Product page: deal panel position (under the title, under the price, above or below the add to cart button, or hidden) and items shown: countdown, stock bar, amount saved, social proof (“12 sold since the deal started” on unlimited deals). The urgency threshold shows “Only X left!” when the remaining units fall below this percentage.
- Shop & category listings: badge on images and countdown under the price.
With a block theme, the badge replaces the one in the Product Image and On-Sale Badge blocks, and the deal panel is shown under the Product Price block. With a page builder, hide the automatic panel and place the [df_deal_panel] shortcode where you want.
In the cart and checkout, the item shows “Deal of the day: -30%”. Unit and per-order limits are checked in the classic cart and with the Cart and Checkout blocks. If the deal ends while the item is in the cart, it goes back to the regular price.
The deals page
The page shows a header with the title, the number of deals, the biggest discount and a countdown to the next deals, the featured deal, a grid of the other deals and a “Coming next” teaser with blurred previews of the next lineup and scheduled deals. When the countdown reaches zero, the page reloads to show the new deals.
In Design > Deals page, set the title, subtitle, layout (featured deal + grid, grid or list), columns, order, countdown, teaser, automatic refresh and the message shown when there is no deal. The theme’s page title is hidden on this page: the deals header replaces it.
Block and shortcodes
In the editor, the Deals of the Day block (WooCommerce category) has its own layout, columns and number of deals settings. For page builders:
[df_deals_of_the_day layout="hero_grid|grid|list" columns="3" limit="12" show_hero="no" show_upcoming="no" sort="featured|discount|price_asc|ending"]
[df_deal_panel id="123"]
[df_deal_badge id="123"]
[df_deals_countdown format="boxes|inline"]
[df_deals_countdown] shows the time left before the next deals, for example in a top bar.
Settings
- Deals page: choose the page that shows the deals or create a new one.
- The discount applies to: regular price (recommended, the deal replaces any sale price) or current price (the deal stacks on a running sale price).
- Price rounding: exact price, .99, .95, .90 or whole number. Rounding always goes down, so the displayed discount is never overstated.
- EU Omnibus reference price: shows “Lowest price in the 30 days before the deal” under the price, computed from the regular price, the current price and the plugin’s past deals.
- Deal label in cart & checkout.
- Purge page cache when deals change: the detected cache plugins are listed.
- Delete all data when the plugin is deleted: deals, statistics and settings. Product prices are never touched either way.
The Omnibus reference price takes the plugin’s deals and the current sale price into account, but not past sales handled by another plugin. Check that it matches your situation before showing it.
Analytics
Over 30 days, the dashboard shows the revenue excluding tax made at deal prices, units sold and orders, the cart to order ratio, savings granted to customers, revenue per day over 14 days, live deals with their sales and time left, top products, the rotation history and the scheduler status.
A sale is counted when the order becomes on hold, processing or completed. It is removed if the order is cancelled, failed or refunded. In the order details, each item bought at a deal price links to that deal.
Cache and scheduling
When a deal starts, ends or sells out, the plugin clears WooCommerce product caches and the page cache of WP Rocket, LiteSpeed Cache, W3 Total Cache, WP Super Cache, WP Fastest Cache, SiteGround Speed Optimizer, Breeze, Autoptimize, Nginx Helper and Cachify. Other caches can hook into the dfdod_purge_cache action.
Rotations run through WP-Cron every 5 minutes and, as a fallback, on the first visit after the scheduled time. If DISABLE_WP_CRON is set, have your server cron call wp-cron.php every 5 minutes for exact timing; the command is shown in the settings.
Developers
- Filters:
dfdod_deal_price,dfdod_apply_deal_pricing,dfdod_rotation_query_args,dfdod_product_rejection_reason,dfdod_rotation_discount,dfdod_next_rotation,dfdod_badge_html,dfdod_panel_html,dfdod_card_html,dfdod_page_html,dfdod_admin_capability. - Actions:
dfdod_rotated,dfdod_order_counted,dfdod_purge_cache. - Product meta:
_dfdod_exclude=yesexcludes a product from rotations.
Troubleshooting
No product in the planned lineup
The live check counter is at 0: your exclusions rule out the whole catalogue. Turn off “Already on sale” or “Without an image”, widen the price range or shorten the cooldown.
The rotation did not happen on time
Check the scheduler status in the rotation history. If WP-Cron is disabled and the site had no visit, the rotation waits for the first visit. Add a server cron.
A customer still sees the old price
A cached page was served. Check that cache purging is on and that your cache plugin is detected; otherwise use the dfdod_purge_cache action or shorten the cache lifetime of the deals page.
The badge does not show on my theme
Some themes do not use the WooCommerce sale badge. Place the [df_deal_badge] shortcode in the product page or product card template.