=== Tadrik True Profit ===
Contributors: tadrik
Tags: woocommerce, profit, cogs, cost of goods, margin
Requires at least: 6.5
Tested up to: 7.2
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Profit per WooCommerce order after cost of goods, shipping, payment fees and ad spend.

== Description ==

Store totals rarely tell you what an order actually leaves you. Tadrik True Profit tracks product costs, payment gateway fees, shipping expenses, refunds and ad spend using deterministic integer minor-unit arithmetic so your profit reports match reality.

**In this version**

* Per-product and per-variation Cost of Goods (`_tadrik_cogs`) fields in WooCommerce.
* Configurable payment gateway fee rules (percentage + fixed fee per gateway) and merchant shipping cost rules.
* HPOS-compatible Order True Profit column and Order Profit Breakdown metabox with optional per-order fee/shipping overrides.
* Profit Report under WooCommerce > True Profit showing net profit by day and by product, flagging SKUs missing COGS.

**Free and Pro**

The free plugin includes per-product and per-variation COGS, gateway fee rules, shipping cost rules, order profit breakdowns, and daily/product profit reports. Pro adds ad spend CSV import with date-window reconciliation (`net_revenue_ex_tax - cogs - payment_fees - shipping_cost - ad_spend == true_net_profit`), bulk COGS CSV import, and formula-safe profit CSV export.

== Installation ==

1. Make sure WooCommerce is installed and active.
2. Under Plugins > Add New, search for "Tadrik True Profit", then install and activate it. Or upload the zip under Plugins > Add New > Upload Plugin.
3. Open WooCommerce > True Profit.

== Frequently Asked Questions ==

= What happens if I delete it? =

Deleting the plugin removes only its own settings. Your orders aren't touched.

= Does it support WooCommerce High-Performance Order Storage (HPOS)? =

Yes. It declares HPOS compatibility and uses WooCommerce CRUD and `wc_get_orders()` exclusively.

== External services ==

This plugin doesn't connect to any outside service.

== Changelog ==

= 1.0.0 =
* First version.
