Bulk COGS Editor for WooCommerce
Fast WooCommerce COGS bulk editing with saved presets, CSV/XLSX import, live previews, history, and rollback for efficient product cost updates.
Install in
Bulk COGS Editor for WooCommerce is a fast, powerful bulk editing solution for managing WooCommerce COGS with WooCommerce’s native Cost of Goods Sold feature. Quickly filter large catalogs, save recurring filter setups as presets, preview proposed changes, and apply updates through background batch processing with live progress tracking.
Save reusable presets for recurring supplier cost adjustments, import WooCommerce cost of goods from UTF-8 CSV or Excel (XLSX), export cost data, and track operation history with safe or overwrite rollback options while retaining original values. Product selling prices and order data are never altered.
Use the editor to manage WooCommerce cost of goods for products and variations. There is nothing extra to configure beyond enabling Cost of Goods Sold in WooCommerce. For setup instructions and a step-by-step guide, see the Bulk COGS Editor documentation.
Watch the plugin in action
Why use Bulk COGS Editor?
- Save time on supplier price changes. Keep WooCommerce cost of goods current for a category, brand, or selected group instead of editing products one by one.
- Work from your spreadsheet. Bring WooCommerce COGS data into your catalog or prepare updates from exported product data.
- Make informed changes. Check the effect on product costs before committing an update.
- Keep a record of your work. Identify past WooCommerce COGS operations and decide whether eligible changes need to be reversed.
How it works
- Open Products > Bulk COGS Editor and choose Bulk edit.
- Choose your filters and find the matching products. Browse their selling prices, regular prices, and current COGS before choosing a cost update.
- Choose a WooCommerce COGS action, review the preview, optionally edit individual New COGS values with the pencil controls, and select the products to update.
- Review and confirm the update, then follow its results in the editor.
Quick 60-Second Demo – YouTube Short Video
Features
- Search by product name, SKU, GTIN, ISBN, EAN or UPC to find products and variations.
- Filter products and variations by category, brand, product type, stock status, current price, or current WooCommerce COGS.
- Find products with empty COGS, explicit zero COGS, positive COGS, or empty or zero COGS using the COGS value filter. Choose Greater than selling price to find products whose COGS exceeds their current selling price, including sales; products without a selling price are excluded. Choose Greater than regular price to compare COGS with the regular price before discounts; products without a regular price are excluded. Numeric COGS ranges remain available for Any value, Greater than zero, Greater than selling price, and Greater than regular price.
- Set an exact WooCommerce cost of goods value, increase or decrease it by a fixed amount or percentage, or clear it.
- Browse matching products with images, selling prices, regular prices, and WooCommerce COGS before entering a new cost. Then preview proposed COGS and the exact difference, with pagination and product selection. The three bulk editing steps use full-width sections.
- Process WooCommerce cost of goods updates through Action Scheduler, WooCommerce’s background task system, with progress and cancellation controls.
- Edit individual New COGS values with a pencil in bulk previews. Save, cancel, or reset each edit to Step 2; saved overrides stay across pages and are included in the confirmation summary.
- Import CSV or XLSX costs using product IDs or SKUs, edit valid products’ New COGS inline before applying, export matching WooCommerce COGS to CSV, and download validation and update reports.
- Inspect recorded outcomes and retained original WooCommerce cost of goods in History, with rollback review and confirmation.
- Save reusable filter presets to your account and manage their names, rules, and deletion in the Presets tab.
- Configure history retention and choose whether rollback overwrites later WooCommerce COGS edits or skips changed products.
- Recover a stuck editor operation through a confirmed force-clear action in Settings when normal cancellation does not work.
- Review cached notices for published products and variations with missing COGS or costs above selling prices, with background refresh and configurable notice placement.
- Bookmark or share the current editor tab using its URL, and move between tabs with browser Back and Forward.
- View operation timestamps and rollback deadlines in your WordPress date format, time format, and site timezone.
- See updated product counts and elapsed time after successful updates, with an optional review link and a dismissible review notice.
Performance for large catalogs
Bulk processing reduces repeated product searches and counts. It loads reusable product data in batches and groups cache cleanup to reduce repeated work. This makes managing WooCommerce COGS across thousands of products practical from the WordPress dashboard.
The plugin saves progress checkpoints and each product’s result to support recovery after interruptions. WooCommerce cost of goods values are saved through WooCommerce’s product APIs, preserving its hooks and cache handling.
All updates can be started and monitored from the WordPress dashboard, including on shared hosting. WP-CLI is not required. For larger catalogs, such as more than 5,000 or 10,000 SKUs, an optional WP-CLI runner may help WooCommerce COGS updates finish sooner. See Installation for details; any speed improvement depends on your hosting and workload.
Import and export WooCommerce cost of goods with CSV or Excel
CSV and XLSX import
Choose CSV mode and click Import on the Bulk COGS Editor page. Upload a UTF-8 CSV or XLSX file.
The upload limit follows WordPress’s maximum upload size, shown beside the file field. The plugin has no separate file-size or row-count limit. Hosting upload, memory, storage and execution limits still apply.
Sample CSV
Export products to CSV, fill in the blank new_cogs column, then import the file to preview your changes.
Use this format for your CSV file, replacing the example IDs, SKUs, and costs with your product data:
id,sku,new_cogs
123,PRODUCT-001,25.50
124,PRODUCT-002,40.00
Your file must include new_cogs and at least one product identifier: id or sku.
- You can omit either
idorsku. If both are provided, they must identify the same product. - Enter costs as decimal numbers without currency symbols, such as
25.50. - Leave a cost blank to skip that row.
- Duplicate product rows are excluded and listed in the error report.
Older files can use cogs when the new_cogs header is missing.
XLSX imports read raw values from the first worksheet. Replace formulas with values and store SKUs as text to preserve leading zeros.
XLSX requires PHP’s ZIP, XMLReader and DOM extensions. Exports use CSV format.
Preview and apply
Preview preparation runs in background batches without changing products. Progress is saved between batches, and you can close the page and return to check it. Preparation time varies with file size, product mix, hosting, and background worker availability.
When ready, review products and download validation errors if needed. Use the pencil beside New COGS to correct a valid product’s staged cost, then Save or Cancel. Saving changes only the preview; select products, review the selected changes, and confirm the update to change product costs. Preparation can be cancelled separately from an applied update. Completed imports with no skipped, failed, or unprocessed products have no update error report to download.
Original uploads are deleted after preparation. Staged previews and reports expire after about 24 hours. Retention extends while an applied update is active.
History and retention
Operation history and original cost records follow the retention period set in Settings. See the retention FAQ below. Daily cleanup preserves active operations and data needed for reports.
The plugin also keeps records that prevent the same preview from being applied more than once, including simultaneous Apply requests. These records follow the configured retention period and are removed only when they are no longer needed.
Requirements
- WordPress 6.7 or later
- WooCommerce 10.3 or later
- PHP 7.4 or later
- WooCommerce Cost of Goods Sold feature enabled in WooCommerce settings
If Cost of Goods Sold is unavailable or disabled, the editor is turned off and explains what is needed. When supported and permitted by your account, the availability notice offers Update Now for an older WooCommerce version or Enable Cost of Goods Sold for a disabled feature. Otherwise, ask an administrator to complete setup.
Privacy
Bulk COGS Editor for WooCommerce does not send product, customer, order, or store data to external services. All WooCommerce COGS calculations and WooCommerce cost of goods updates are performed locally on your WordPress/WooCommerce installation.
Developer resources
Bulk COGS Editor for WooCommerce is open-source software and is made to be extended. The source code is available in the GitHub repository.
Connect with the developer
Written by Joobi from the project's own listing. See the source page
1.3.2 (2026-11-26)
- Fixed: Keep the no-products message visible below Find products and highlight it in red when no products match the selected filters.
- Updated: Set the WordPress “Tested up to” field to 7.2 and revise the plugin directory tags to include COGS import and export.
- Updated: Point documentation and developer website links to wpbydinesh.com and update the developer’s LinkedIn profile link.
1.3.1 (2026-11-18)
- Fixed: Show a readable server-timeout message instead of a JSON parsing error when a request returns an HTML error page.
- Fixed: Keep Find products disabled when native WooCommerce COGS is unavailable or disabled.
- Fixed: Display operation timestamps and rollback deadlines using the WordPress date format, time format, and site timezone.
- Improved: Wait 750 milliseconds after action-value edits before refreshing the preview, allowing time to enter decimal values.
- Improved: Stack the three bulk editing steps at full width, align price and COGS filter fields, and place saved-filter loading and naming controls side by side.
- Added: Provide setup actions for updating WooCommerce settings when needed and enabling supported COGS features from the availability notice.
- Added: Show cached notices for published products with missing COGS or COGS above the current selling price. Choose whether notices appear only in the editor or throughout the site admin, and dismiss them for one hour. Refresh now recalculates counts in background batches, shows refresh progress, and updates or clears the notice when finished, including scans delayed beyond an hour.
- Added: Show a dismissible review notice after successful cost updates with the updated product count, elapsed time, and an optional review link.
- Added: Open editor tabs directly by URL, keep the URL in sync when switching tabs, and restore tab selection with browser Back and Forward navigation.
- Added: Filter products by empty, explicit zero, positive, or empty-or-zero COGS, or find COGS greater than the current selling price or regular price. Show help for the selected option and use indexed cost-state queries for large catalogs.
- Added: Browse matching products before choosing a cost update, with Selling price and Regular price columns available in Manage columns and visible by default.
- Added: Edit up to 500 individual New COGS values with pencil controls in bulk previews. Save or cancel edits, reset to Step 2, retain saved overrides across pages and the completion refresh (including zero costs stored as Empty), and review their count before confirming the update. Coordinate preview edits and confirmation across simultaneous requests to preserve reviewed values.
- Added: Edit New COGS inline for valid products in CSV/XLSX import previews before applying. Save replaces the staged value, including unchanged values; Cancel preserves the saved value. Keep edits across preview pages and coordinate edits with confirmation. The bulk preview’s 500-edit limit and Reset to Step 2 control do not apply to imports.
1.3.0 (2026-11-12)
- Fixed: Clear obsolete review counts after empty searches and require explicit product selection for new bulk previews.
- Fixed: Keep current and proposed costs together on mobile and prevent progress estimate text from overflowing its card.
- Fixed: Suppress unreliable remaining-time estimates while operations wait for progress, and support durations longer than one day.
- Fixed: Explain why rollback is unavailable and show the running-operation notice and progress link beside disabled rollback confirmation controls. Refresh confirmation availability as operation status changes.
- Fixed: Allow cleanup jobs and retention scans to schedule continuation batches without conflicting with Action Scheduler uniqueness checks.
- Fixed: Require at least one product identifier column for CSV exports.
- Fixed: Preserve import preparation cancellation, confirmation copy, and keyboard focus when preparation finishes.
- Fixed: Recheck reused selections after reviewed-product reads so Apply rejects sources entering retention cleanup during preflight.
- Fixed: Repair the early preset-table name index that prevented saving a second preset for the same user.
- Improved: Refresh editor layouts, align workflow steps, reduce inactive content, and place confirmation beside the product preview.
- Improved: Follow each user’s WordPress Administration Color Scheme for buttons, links, tabs, progress bars, and selection highlights.
- Improved: Distinguish Reset filters, Deselect all products, and Start over; provide actionable empty results and clearer search, selection, preview, and confirmation guidance.
- Improved: Use import/export-specific labels and explain blank versus zero costs. Show specific missing-file, format, and size errors and group row errors with correction guidance.
- Improved: Make history easier to scan with action-first columns, accessible full operation IDs, focused detail views, preserved list context, reloadable operation links, and operation-specific progress headings.
- Improved: Show rollback retention deadlines and the effective rollback policy, and confirm reductions to history retention before saving.
- Improved: Provide completion actions for reviewing changed products, skipped or failed results, and starting a fresh update.
- Updated: Set release metadata to 1.3.0, refresh translations and generated assets, update development dependencies and code graphs, and document the UI/UX review and implementation decisions.
- Updated: Refresh documentation, plugin, and social profile links. Require an explicit request for Playwright verification on each development task.
- Added: A CSV export column-selection toggle.
- Added: A Default rollback mode setting with Keep rollback history and No rollback history options. The update confirmation checkbox uses this default, allows a per-operation override, and explains the selected mode and potential time savings. No rollback history omits rollback and detailed cost-change history while preserving operation results and retry protection.
- Added: Account-based filter presets in a dedicated custom table, with unique names per user and access across browsers and devices. Existing browser and user-meta presets are not migrated.
- Added: A Presets tab before Settings with a native WordPress list table, created dates, editable names and filter rules, Edit/Delete row actions, and bulk deletion. Loaded presets hide duplicate-save controls, and deletion is available only in Presets.
1.2.1 (2026-10-27)
- Fixed: Round imported costs to the WooCommerce decimal settings instead of rejecting values with excess decimal places.
- Fixed: Reject reused selections while their source history is being cleaned up, including existing previews and Apply checks, so partially deleted selections cannot be accepted.
- Fixed: Allow returning to Bulk edit and CSV from History or Settings while a background operation is running.
- Fixed: Reuse the completed bulk operation’s product selection with current costs when preparing another update, even when changed costs no longer match the original filters.
- Fixed: Keep range selection controls within the editor layout.
- Fixed: Restore workflow step indicators and remove duplicate step badges from History progress.
- Fixed: Hide empty import error reports when every product succeeds, while retaining reports for failed, skipped, and unprocessed products.
- Improved: Show a spinner while cancellation is pending.
- Improved: Confirm stopping remaining updates or a rollback in an editor dialog explaining that saved changes remain.
- Improved: Confirm cancelling CSV/XLSX import preparation before requesting cancellation, explaining that costs are unchanged and the file must be uploaded again for another preview.
- Improved: Confirm force-clear recovery in an editor dialog before resetting saved operation references.
- Improved: Validate and stage CSV/XLSX rows in bounded batches with grouped SKU lookups and product cache preparation.
- Improved: Process multiple import preparation batches within each worker’s time and memory budgets, with cursor checkpoints and cancellation checks between batches.
- Improved: Batch import exclusions and reviewed-cost checks before Apply, continuing large reviews across bounded requests before queuing updates.
- Improved: Prepare variation-parent caches for CSV export, evaluate only requested column getters, and yield between batches under memory pressure.
- Improved: Reuse XLSX XML streams between batches within one worker while reopening safely after partial staging or a cursor change. New workers still scan to the saved position.
- Updated: Clarify the editor title as Bulk COGS (Cost of Goods Sold) Editor and refresh the translation template.
- Added: A force-clear recovery setting for stuck operations that resets the current user’s saved operation and import references and requests cancellation, while retaining saved cost changes, history, and rollback data.
1.2.0 (2026-10-24)
- Fixed: Restore green increases and red decreases in the review table’s Change column.
- Fixed: Load History reliably and preserve bulk and CSV previews and selected products when visiting History or Settings.
- Fixed: Reconcile costs saved before an after-save exception so successfully changed products remain recorded and eligible for rollback.
- Fixed: Allow reviewed retries after cancelled, failed, or skipped rollbacks, processing only remaining products and preserving later edits to products already restored.
- Fixed: Repair interrupted rollback startup claims, verify operation persistence before scheduling, and prevent concurrent starts with ownership locks.
- Fixed: Recheck configured retention before deleting queued history and prevent partially deleted records from being offered as complete rollbacks.
- Fixed: Refresh active historical operation details and requeue stalled workers through the existing recovery path.
- Fixed: Report import preview errors instead of leaving preparation failures unclear.
- Fixed: Copy uploads into private import storage so background preparation can reopen them after the upload request ends.
- Improved: Count matching products and variations through paginated database totals without loading every matching product ID into PHP.
- Improved: Resolve import SKUs through WooCommerce’s indexed lookup storage when available, verify candidates against product objects, and retain metadata fallback for unsupported or incomplete lookup data while preserving ambiguity checks.
- Improved: Reuse WooCommerce search matches within a request and the authorized preview lifetime, and persist search matches for applied operations rather than repeating broad searches for each batch.
- Improved: Process multiple bounded XLSX batches with one open XML reader per worker request, subject to the cooperative deadline, reducing repeated reader setup and prefix traversal within that request.
- Improved: Reuse staged import values in previews, read update values once per chunk, cache repeated XLSX shared strings within a bounded cache, and prepare product caches in batches for previews and exports.
- Improved: Save one durable outcome per operation and product in an indexed table instead of repeatedly rewriting growing chunk results, preserving retry protection and compatibility with existing chunk-backed operations.
- Improved: Reuse indexed outcome summaries during finalization and clean up completed chunks and outcomes in resumable background batches while preserving import report data.
- Improved: Acquire and release private product locks without invalidating unrelated WordPress negative-option cache entries, retaining atomic ownership and expiry checks.
- Improved: Refine import and export controls and progress displays, and include processed counts, remaining work, batch size, counter changes, and operation stage in worker timing logs and WP-CLI output.
- Improved: Clarify Bulk edit, Import, and Export guidance with task-specific previews, upload details, a nearby CSV template, structured confirmation, explicit export downloads, and expandable recent activity.
- Improved: Unify product selection with cross-page totals, page/all/range/clear controls, and a sticky action summary while preserving server-validated selection limits.
- Improved: Replace action cards with compact Set, Adjust, and Clear controls, contextual fields, cost examples, and a visible Find products prerequisite.
- Improved: Add searchable filter menus, selected-option counts, removable filter chips, Clear filters, and collapsible primary and advanced filters.
- Improved: Prioritize product and cost comparisons, retain optional columns and saved preferences, keep table headers and mobile product identity visible while scrolling, and group page size and direct page navigation in the footer.
- Improved: Change Help and instructions to match the selected Bulk edit, CSV Import, or CSV Export task.
- Improved: Keep previous preview rows visible during refresh and pagination, mark outdated results, and prevent selection or confirmation until fresh results are ready.
- Improved: Place preview refresh controls, validation errors, and recovery guidance beside the relevant workflow controls.
- Improved: Identify the active update task, avoid misleading percentages while preparation totals are unknown, clarify that cancellation keeps saved changes, and retain keyboard focus on progress controls when redrawn.
- Improved: Summarize recent activity with updated counts, completion and elapsed times, and prominent skipped, failed, or incomplete outcomes.
- Improved: Simplify editor styling and improve mobile touch targets, stacked controls, scrollable help, and safe-area spacing for the sticky summary.
- Improved: Reuse review tables and progress/result rendering across bulk updates and history; use consistent numbered pagination, page-size controls, Go to page, and inline Show entries controls.
- Improved: Collect remaining rollback product IDs through bounded cursor reads without repeating a full history-product count per batch.
- Improved: The latest reported WP-CLI benchmark updated 10,000 products in 15 minutes 24 seconds, with zero skipped and zero failed, compared with 50–60 minutes initially. This single run records editor operation elapsed time; results vary by store and require repeat benchmarking.
- Updated: Refresh the translation template, import and worker documentation, QA and performance review reports, and development code graph.
- Updated: Document History, rollback policies, retention settings, and recovery behavior, with refreshed screenshots from the wpdev development store.
- Added: Export matching products to CSV with a blank
new_cogscolumn for preparing cost updates. - Added: Import UTF-8 CSV and XLSX files, validate product IDs or SKUs and new COGS values with up to six decimal places, then preview changes before explicitly applying them. Continue accepting the legacy
cogsheader whennew_cogsis absent. - Added: Prepare import previews in background batches, with validation progress, paginated results, product selection, downloadable validation and update reports, and independent cancellation of preparation.
- Added: Store import rows in an indexed staging table, delete original uploads when preparation ends, and schedule staged preview and report cleanup after approximately 24 hours, extending retention while an applied update is active.
- Added: Generate CSV exports and import reports asynchronously on the server, with progress, cancellation, private download files, interruption checkpoints, and scheduled download cleanup after two days.
- Added: Browse and filter operation history in a third History tab, with operation details, recorded product changes, optional notes, and background rollback review, confirmation, progress, cancellation, and results.
- Added: Configure 30-day, 90-day, or custom history retention and overwrite or skip-changed rollback behavior in a fourth Settings tab.
- Added: Remove expired operation history, original cost records, and preview claims through bounded daily cleanup using the configured retention period, preserving active operations, import report dependencies, and preview replay protection.
- Added: Upgrade import and outcome database tables using
DKBCE_DB_VERSION, version comparison, and WordPressdbDelta()when the stored schema version is older. - Added: Load plugin classes on demand through a
DKBCE_prefix autoloader. - Added: Provide a development WP-CLI profiler for generated range-query SQL, EXPLAIN plans, installed indexes, repeated timings, and ordered-ID comparisons. Document local findings without changing runtime range predicates, indexes, or pagination.
1.1.1 (2026-10-20)
- Fixed: Recover background COGS updates that stop progressing and allow cancellation cleanup from the editor.
- Fixed: Keep matching product counts visible when changing the selected COGS action.
- Fixed: Allow preview pagination during background updates after the preview token has been consumed, while keeping product selection disabled.
- Improved: Scroll to the bottom of the editor when a background update starts so its progress is visible.
- Improved: Prevent filter changes while an update is running and require products to be fetched before choosing an action. The editor guides users to Get products when they try.
- Improved: Place the action warning in the Step 2 title row and center it on larger screens.
- Improved: Explain how to refresh an expired preview and scroll to the notice so the instructions are visible.
- Improved: Collect matching products using a product ID cursor, cache search matches per operation, and recover saved snapshot chunks after interruptions.
- Improved: Group WooCommerce product transient invalidations within each update batch to reduce repeated cache cleanup.
- Improved: Bulk update performance through batch preparation of product and variation-parent caches, fewer repeated reads, and progress checkpoints that retain durable per-product outcomes. A reported benchmark for this version updated 10,000 products in 21 minutes 34 seconds, compared with 50–60 minutes initially; results vary by store and require repeat benchmarking.
- Added: Select the first or last number of products across all matching results, or choose all results.
- Added: Clear a finished operation when using the Refresh now link.
1.1.0 (2026-10-14)
- Fixed: Admin notices appearing between the page title and description.
- Fixed: Alignment of the top and bottom select-all checkboxes with product row checkboxes.
- Fixed: Match variations through their parent product’s categories, including when filtering for variations only.
- Improved: Progress reporting with a right-aligned processed product count, percentage indicator, and elapsed and estimated remaining time.
- Added: A message during b
Follow this listing's changes (Atom feed)