To know what to prepare for each pickup day and each market, our fishmonger client only had a list of orders. We built him a custom WooCommerce plugin: it adds up the products to prepare by date and pickup location, works out what to order from suppliers, and exports it all to CSV for the team.
In short
- A WooCommerce shop that only opens for the festive season, where customers choose their pickup date and location: the fish shop or one of the markets.
- The need: knowing how much of each product to prepare, by day and by pickup point, then how much to order from suppliers.
- The answer: a WooCommerce screen showing the quantities to prepare, the number of orders and the total number of items.
- New for the 2026 season: a “To order” tab that adds up the products sold by supplier item, in kilos or in pieces.
- CSV exports that open straight in Excel, for the kitchen, the markets and the suppliers.
Every year end, it is the same picture: the phone ringing non-stop, orders coming in from everywhere, markets to prepare, in-store pickups to organize. For our fishmonger client, the festive season is the busiest time of the year, and the one where organization has to be spot on.
His WooCommerce site is not open all year round: it is switched back on only for the festive season. For a few weeks, his customers order online, choose their pickup date and collection point (the fish shop or a local market), then the site goes to sleep for the rest of the year. On 24 December 2025, the busiest day of the season, more than 5,000 items had to be prepared, spread across about a hundred different products.
The problem: lots of orders, little visibility
The site already let customers choose a date with the YITH WooCommerce Delivery Date plugin. But that was not enough to organize the preparation. Our client had to answer very concrete questions:
- How many products do I need to prepare for 24 December?
- What do I take to a given market, and what do I keep for in-store pickups?
- How many kilos of prawns should I order from the supplier, when the site sells them in 100 gram portions?
WooCommerce and YITH Delivery Date held all the data, but not the view he needed. He needed a preparation tool, not a list of orders.
Our answer: a preparation screen by date and pickup location
Starting from the data already saved by WooCommerce and YITH Delivery Date, we built a custom WooCommerce plugin: Wycan Order Filter. It adds an “Order filter” screen to the WooCommerce menu, where the shopkeeper:
- chooses a pickup date in the calendar;
- filters, if he wishes, by pickup location (the fish shop, a market);
- gets the summary of products to prepare for that date and location.
The screen shows:
- three key figures: the number of orders, different products and items to prepare;
- each product, in alphabetical order, with its reference and a link to its product page;
- the total quantity to prepare, with refunded items already deducted;
- the day’s total at the bottom of the table.
Unpaid, abandoned, cancelled or refunded orders are never counted. At a glance, our client knows what to prepare for the 24th, the 31st and each market, without any home-made spreadsheet.

New for 2026: knowing what to order from suppliers
Preparing is only half the job. Before each pickup day, orders also have to go out to suppliers, and the shop does not sell products the way the supplier delivers them: prawns are sold in 100 gram portions, oysters by the basket, lobsters raw or cooked.
For the 2026 festive season, the plugin gains two tabs, being trialled this season:
- Groupings: the products sold that match the same supplier item are brought together, with what one unit sold contains (100 grams, 6 pieces…). The plugin suggests groupings itself from the product names; the fishmonger approves them one by one or all at once.
- To order: for a date and a location, the quantities sold are converted and added up by item. For 24 December 2025, that gives for example 72.9 kg of Madagascar prawns, instead of 729 portions to add up.
Each product keeps its own unit: an item sold both by the piece and by weight shows for example “42 pieces + 4.2 kg”, with no guesswork conversion. And the shop’s product pages are never changed: everything lives in the plugin.

CSV exports ready for the shop floor
Each tab has its own Export to CSV button:
- the list of products to prepare, for the kitchen or the market stall;
- the to order list, one row per item with the quantity sold and the quantity to order, for the suppliers.
The files open straight in Excel, accents and columns included, and the to order list prints from the browser. The online ordering site becomes a real logistics tool, built around the trade.
What this project shows about the way we work
We can of course set up a standard WooCommerce shop. But a custom plugin makes the difference when it fits the trade: here, market days, 100 gram portions and oyster baskets.
And a custom plugin is not set in stone. After a first season of use, we improved it based on the fishmonger’s feedback: more reliable counting, a clearer screen, then the calculation of quantities to order. Your business is not like your neighbour’s? Your online shop should not be either.
For the more technical: how the plugin works
If you like to look under the bonnet of WordPress and WooCommerce, here is what Wycan Order Filter does.
1. Building on YITH WooCommerce Delivery Date
The plugin does not reinvent the wheel: it reads the order metadata already saved by YITH WooCommerce Delivery Date:
ywcdd_order_delivery_date: the pickup date chosen at checkout (Y-m-d format);ywcdd_order_carrier_id: the pickup location’s ID.
The filter works on the location ID, never on its label: the label is frozen when the order is placed, and a market renamed from one season to the next would otherwise make orders disappear. The list of locations comes straight from the published YITH carriers (yith_carrier post type).
2. An HPOS-compatible query
Orders are fetched with wc_get_orders(), which works with both the classic storage and WooCommerce High-Performance Order Storage (HPOS). The plugin also declares its HPOS compatibility. The query filters on the date and, if needed, on the location:
$meta_query = [
[ 'key' => 'ywcdd_order_delivery_date', 'value' => $filters->date ],
];
if ( $filters->carrier_id > 0 ) {
$meta_query[] = [ 'key' => 'ywcdd_order_carrier_id', 'value' => (string) $filters->carrier_id ];
}
$orders = wc_get_orders( [
'type' => 'shop_order',
'status' => self::counted_statuses(),
'limit' => -1,
'meta_query' => $meta_query,
] );3. Excluding statuses rather than listing them
The fishmonger uses his own order statuses (deposit paid, paid in full). Rather than an allow list that would need maintaining, the plugin excludes the statuses that must never count and keeps all the others. A custom status added later is therefore counted automatically, and a filter lets you adjust the list:
private const EXCLUDED_STATUSES = [
'wc-pending', 'wc-checkout-draft', 'wc-failed', 'wc-cancelled', 'wc-refunded',
];
public static function counted_statuses(): array {
$excluded = (array) apply_filters( 'wycan_order_filter_excluded_statuses', self::EXCLUDED_STATUSES );
return array_values( array_diff( array_keys( wc_get_order_statuses() ), $excluded ) );
}4. A single calculation, refunds deducted
The screen and the export call the same calculation class, which goes through every order line: there is no way to get one total on screen and another in the file. Refunded items are subtracted, and a product deleted since stays counted under its order name:
$quantity = (float) $item->get_quantity();
if ( $has_refunds ) {
// The refunded quantity is negative: subtract it.
$quantity += (float) $order->get_qty_refunded_for_item( (int) $item_id );
}5. Groupings worked out from product names
To suggest groupings, the plugin reads the product names (in French on this shop): “100 gr Crevettes Madagascar” becomes 0.1 kg of Madagascar prawns, “Bourriche de 24” (a basket of 24) becomes 24 pieces, and a weight range such as “800 gr à 1 kg” is ignored, since it describes one piece rather than a quantity sold. Approved groupings are stored in a plugin option, never on the product pages.
6. Safe CSV exports that read well in Excel
Exports go through admin-post.php:
- security token in the link, checked by
check_admin_referer(); - permission check with
current_user_can( 'manage_woocommerce' ); - semicolon separator and UTF-8 encoding with a byte order mark, so that Excel in French opens the file with no settings to change;
- cells starting with
=,+,-or@are neutralized, so a product name is never run as a formula.
All in object-oriented PHP, with no external dependency: the date picker is the browser’s own.
What if we did the same for your business?
Here, a seasonal WooCommerce site became a real working tool for preparing holiday orders and ordering from suppliers, thanks to a plugin built for that precise need.
Do you have a particular need too: seasonal sales, several pickup points, batch preparation, tracking tables? We can design the plugin that fits the way you work.



