Bizmart
Available in Bizmart Core (Free) + WAC in Premium

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 Data
1. Weighted Average Cost (WAC Mode — Premium) SUM(qty × invoice_price) ÷ SUM(qty) from approved invoices
2. Product / Variation _purchase_price 1,200 DZD ($12.00) stored on variation or product
3. Parent Product _purchase_price Fallback Inherited automatically if a variation has no distinct cost
4. Legacy _alg_wc_cog_cost Fallback Reads existing WooCommerce COGS meta automatically → 0.00

Quick Installation & Setup Walkthrough

STEP 01
Upload & Activate

In WordPress Admin, go to Plugins → Add New → Upload Plugin, select bizmart-cost-of-goods.zip, and activate.

STEP 02
Set Purchase Costs

Open Bizmart → Products to enter purchase prices inline or import costs via CSV (existing _alg_wc_cog_cost meta is detected automatically).

STEP 03
Review Gross Profit

Open Bizmart → Dashboard to inspect Gross Revenue, Gross Profit (Revenue − COGS), Gross Margin %, and Stock Valuation.

STEP 04
Add Suppliers & Expenses

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.

Feature Availability: Core (Free) · WAC in Premium ($23.99/yr)
Backed by our 14-day troubleshooting-first refund policy.