WooCommerce Cost of Goods (COGS) Plugin
Store your purchase cost on every simple, variable, grouped, external, and digital WooCommerce product—and preserve frozen item costs on every historical order.
All WooCommerce Product Types
Supports Simple, Variable (with per-variation _purchase_price), Grouped, External, and Digital/Downloadable products.
Automatic _alg_wc_cog_cost Fallback
Migrating from another COGS plugin? Bizmart automatically reads existing _alg_wc_cog_cost meta if _purchase_price is not set yet.
Frozen Historical Order Cost
When an order is placed, Bizmart freezes _bizmart_item_cost on the order item so future supplier price changes never alter past profit reports.
How Bizmart Resolves Product Purchase Cost (4-Step Lookup Chain)
In the Bizmart metrics engine (includes/metrics.php), purchase cost is resolved deterministically for every product or variation:
- Inline & Bulk Editing: Update purchase prices inline from the redesigned Bizmart Products table or via background CSV import.
- Missing-Cost Alerts: Any in-stock SKU with a resolved purchase price of 0 is flagged in the Data Integrity banner.
- Included vs. Excluded: COGS reflects product purchase cost. Operating expenses (shipping, ads, rent) are tracked separately in Premium.
Worked Example: Simple & Variable COGS Lookup
Sample DataQuick Installation & Setup Walkthrough
In WordPress Admin, go to Plugins → Add New → Upload Plugin, select bizmart-cost-of-goods.zip, and activate.
Open Bizmart → Products to enter purchase prices inline or import costs via CSV (existing _alg_wc_cog_cost meta is detected automatically).
Open Bizmart → Dashboard to inspect Gross Revenue, Gross Profit (Revenue − COGS), Gross Margin %, and Stock Valuation.
Upgrade to Premium ($23.99/yr) to enable WAC cost averaging, FIFO supplier invoice payments, operating expenses, and the Cashflow Calendar.
Frequently Asked Questions
Does Bizmart Cost of Goods work with WooCommerce variable products?
Yes. Each variation can store its own _purchase_price. If a variation does not have a custom cost set, Bizmart automatically inherits the parent product’s _purchase_price.
What happens to old orders when my supplier raises prices?
Bizmart saves a frozen item cost (_bizmart_item_cost) on each order line item when the order is placed, so updating a product’s current purchase price never distorts historical profit reports.
Can I migrate from another WooCommerce Cost of Goods plugin?
Yes. Bizmart’s cost resolver automatically falls back to _alg_wc_cog_cost meta keys on products and variations with zero data migration required.