Every WooCommerce store has its own way of managing product costs. But when a store has hundreds or thousands of products, keeping those costs up to date one product at a time quickly becomes a repetitive and time-consuming task.
This article is the story behind Bulk COGS Editor for WooCommerce—from noticing a real merchant problem, researching existing solutions, and planning the first version to working through performance challenges and improving the user experience.
Where the problem started
WooCommerce introduced its native Cost of Goods Sold (COGS) feature to help merchants record product costs and understand profitability. It made product-level cost tracking available in WooCommerce core, but a practical question remained for stores with large catalogs: how do you update the costs of many products when supplier prices change?
For example, imagine a store with thousands of products. A supplier increases the cost of one brand by 20%, or a store needs to adjust costs across a category. Opening products individually—or relying on a quick-edit workflow—does not scale well for this kind of recurring work.
A merchant had already described this exact pain point
During the research, I found a WooCommerce feature request titled “Allow Bulk Editing of COGs”, submitted on November 13, 2025.
The request explained that stores with thousands of products could not keep up with frequently changing costs through the quick-edit menu. It gave a practical example: increasing the costs for an entire brand by 20% using a bulk-editing tool.
That example captured the problem clearly. Merchants did not simply need another place to enter a product cost. They needed a reliable way to select the right products and apply a controlled cost update to many of them at once.
Source: WooCommerce feature request – Allow Bulk Editing of COGs.
Forum – Real-World Merchant Requests: The Need for Bulk COGS Updates
This wasn’t just a theoretical problem. WooCommerce store owners had already raised this concern in the WordPress.org support forums. In one discussion, a user specifically asked how to bulk update the Cost of Goods Sold (COGS) pricing across multiple products instead of editing each product individually. This discussion reinforced the need for a simpler and more efficient bulk-editing workflow.
Read the discussion: Bulk update the new cost (COGS) pricing – WordPress.org Support.
Researching the existing WooCommerce workflow
I looked at the native COGS workflow and the ways merchants could already move cost data into WooCommerce. WooCommerce documentation explains how to set costs for individual products and variations, and its product CSV importer/exporter supports the COGS field. Those capabilities are useful, but they do not automatically provide a guided bulk-editing workflow with product filtering, calculated adjustments, a review step, and a controlled background update.
I also reviewed the wider discussion around product-catalog management. In the WooCommerce developer discussion about COGS, a merchant asked how large datasets should be handled and noted limitations in the built-in import/export workflow for large datasets. Separately, WooCommerce’s product-catalog management epic describes broader merchant pain points such as slow product-editing workflows and inefficient bulk operations in large catalogs.
- WooCommerce COGS documentation – native product and variation cost management, including CSV support.
- COGS in WooCommerce core – developer announcement and merchant discussion, including a question about handling large datasets.
- WooCommerce GitHub issue #64414 – broader exploration of improving product-catalog workflows, including bulk editing and scalability.
These discussions were useful signals that the problem was not just an isolated development idea. Merchants needed more efficient ways to manage product data as their catalogs grew. I treated the COGS request as the clearest, directly relevant use case and the broader catalog discussions as supporting context—not as proof that every store had the same requirements.
Defining the problem and the first solution
I wanted to keep the plugin focused: work with WooCommerce’s native COGS data rather than introduce a separate cost system, and make bulk changes understandable before anything was saved.
The initial product plan centered on a straightforward workflow:
- Find products: narrow the catalog using relevant filters.
- Choose an action: set an exact cost, or increase/decrease costs by a fixed amount or percentage.
- Preview the result: inspect the affected products and proposed values before applying changes.
- Process the update: run the work in background batches and show progress rather than trying to update a large catalog in one request.
This gave the project a clear purpose: make common COGS updates faster to prepare, easier to review, and safer to execute.
The first performance challenge
The first implementation exposed an important engineering challenge. In one of my early tests, updating COGS for approximately 13,700 products took around 64 minutes. The value being changed was a product meta value, but the total operation still involved finding the right products, processing them safely, and saving the changes at scale.
That result changed the priority of the project. A bulk editor is not useful if it only moves the repetitive work into a long-running request or leaves the merchant unsure whether processing is still happening.
Moving the work into background processing
I focused the architecture on bounded background work using WooCommerce Action Scheduler. Instead of attempting to process an entire catalog in one request, the operation could be split into smaller batches. The design also needed to preserve progress between requests, isolate failures, and let the merchant understand or cancel an operation.
- Process products in batches instead of one very large request.
- Pass product IDs through the processing workflow rather than carrying large product-object collections between steps.
- Track operation progress and refresh its status while background work continues.
- Support cancellation and handle failed or interrupted work without treating the entire operation as a single all-or-nothing request.
- Keep the preview as a review of proposed changes, while the server-side operation remains responsible for the actual update.
I also moved testing beyond small demo catalogs. A local WordPress environment backed by MySQL/MariaDB made it possible to generate larger product datasets and compare runs at increasing scale. The aim was to test realistic workloads and identify bottlenecks, not to publish a speed claim without repeatable measurements.
Important: the 13,700-product result above is an early benchmark, not a claim about the current version’s processing time. I am keeping the original measurement visible because it explains why performance and reliability became major parts of the development work.
Documenting the Performance Benchmark
I documented this initial performance test and the findings in a GitHub discussion to track the challenges and improvements throughout development.
The benchmark helped identify performance bottlenecks and highlighted why optimizing database operations, product retrieval, batch processing, and background execution needed to be a priority.
You can follow the technical discussion and benchmark details here:
Bulk COGS Editor – Performance Benchmark and Optimization (GitHub Discussion #12)
This became an important reference point as I continued improving the plugin’s processing efficiency and reliability.
Improving the interface and workflow
Performance was only one part of the problem. A bulk operation can affect hundreds or thousands of products, so the interface needs to make each decision clear. I revisited the workflow to make it easier to understand from top to bottom, with a clear sequence instead of presenting too many decisions at once.
The workflow was organized around four stages: Filters → Action → Preview → Apply.
- Filters: identify products by criteria such as title, SKU, category, brand, product type, stock status, price, or current COGS.
- Action: choose the cost operation and enter the value.
- Preview: review current and proposed COGS values, select the products to include, and understand the changes before committing.
- Apply: confirm the operation and follow its background progress.
I also worked on making the navigation and controls more consistent, keeping the steps visible, improving the review table, and making progress, cancellation, and operation status easier to find. The goal was not to add visual complexity; it was to help store owners feel confident before changing product costs in bulk.
See the Bulk Editing Workflow in Action
After implementing the core workflow and refining the interface, I documented how store owners can use the plugin to manage WooCommerce product costs in bulk.
The walkthrough covers the actual working interface, product selection, available COGS update methods, previewing changes, and processing bulk updates.
If you want to see how the plugin works in practice, read the detailed walkthrough:
How to Bulk Edit WooCommerce COGS (Cost of Goods Sold) Safely
Expanding the workflow: CSV, history, and rollback
As the project evolved, the workflow grew beyond manual bulk adjustments. Store owners often maintain supplier costs in spreadsheets, so importing and exporting cost data became a natural extension.
- CSV and XLSX import: prepare cost updates from spreadsheet files, validate the input, and review the proposed changes before applying them.
- CSV export: export product cost data for external review or spreadsheet workflows.
- Operation history: review previous bulk operations and the product changes recorded for each operation.
- Rollback: review eligible changes and restore previously recorded costs, with safeguards for products that may have been edited again after the original operation.
These additions made the plugin more than a bulk-update form. They helped create a workflow around preparing, reviewing, applying, auditing, and—where eligible—reversing cost changes.
Making it available to WooCommerce store owners
After iterating on the functionality, performance, and interface, I published Bulk COGS Editor for WooCommerce on WordPress.org. The plugin works with WooCommerce’s native Cost of Goods Sold feature and is intended to help store owners manage product costs without changing product selling prices.
You can explore the source code on GitHub, try the plugin from the WordPress.org plugin directory, and share feedback or report issues through the project repository.
What I learned from building it
This project started with a focused merchant pain point, but solving it properly required more than adding a bulk update button. It involved understanding the existing WooCommerce workflow, designing a safe review process, handling large catalogs in the background, testing real workloads, and refining the interface as the feature set grew.
The biggest lesson was that performance, reliability, and usability need to be designed together. A fast operation that is difficult to understand is not a good merchant experience; a polished interface that cannot handle a large catalog is not enough either.
Bulk COGS Editor is an ongoing project. I plan to keep improving it based on real-world usage, feedback from WooCommerce store owners, and further performance testing.
Have a WooCommerce store with a large product catalog? Give the plugin a try and let me know what would make bulk cost management easier for your workflow.
