=== Profit Margin Calculator for WooCommerce ===
Contributors: infinitytechcare
Tags: woocommerce, profit, pricing, cost of goods, profit margin calculator
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.2
WC requires at least: 9.3.0
WC tested up to: 10.6.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A lightweight, easy-to-use WooCommerce extension that calculates product profit and profit margins automatically.

== Description ==

**Profit Margin Calculator for WooCommerce plugin** adds cost price fields to your WooCommerce products and automatically calculates:

- Profit amount  
- Profit margin (%)  
- Profit and margin for variable products  
- Optional columns in the admin product list  

This plugin is designed for store owners who want to easily track profitability without installing heavy accounting plugins.

### 🔥 Key Features

- Add cost price to simple & variable products  
- Automatic profit & margin calculation  
- Display profit/margin inside product edit pages  
- Optional profit & margin columns in *WooCommerce → Products* table  
- Rounding controls (none, 0, 1, 2 decimals)  
- Highly optimized and lightweight 
- Fully compatible with HPOS (High-Performance Order Storage)  
- Compatible with any theme or WooCommerce setup  

### 💡 Why Use This Plugin?

Most shop owners want to know **how much they are actually making per product**.  
This plugin solves that in the simplest way—no complex reports, no accounting module, just clean, instant profit calculations.

== Installation ==

1. Upload the plugin folder to the `/wp-content/plugins/` directory  
2. Activate the plugin through **Plugins → Installed Plugins**  
3. Go to **WooCommerce → Profit Calculator** to configure options  
4. Edit any product and enter the **Cost Price** to automatically see calculated profit and margin  

== Frequently Asked Questions ==

= Does this plugin work with variable products? =

Yes. Each variation can have its own cost price, profit, and margin calculations.

= Does the plugin support custom rounding? =

Yes. You can choose:  
- No rounding  
- 0 decimals  
- 1 decimal  
- 2 decimals  

= Does it affect the frontend? =

No. All calculations are for **admins only** and never shown to customers.

= Does it work with HPOS? =

Yes. HPOS is fully supported.

== Screenshots == 

1. Profit and margin (%) for simple/external products  
2. Profit and margin (%) for variable products  
3. Optional columns in the admin product list
4. Plugin Settings Page

== Changelog ==

= 1.0.2 - Apr 07, 2026 =
* Tested: WordPress 7.0 compatibility.
* Tested: WooCommerce 10.6.2 compatibility.

= 1.0.1 - Feb 10, 2026 =
* Updated: The installation process in readme file.
* Tested: WordPress 6.9.1 compatibility.
* Tested: WooCommerce 10.5.0 compatibility.

= 1.0.0 - Dec 25, 2025 =
* First Release 

== Upgrade Notice ==

= 1.0.0 =
Initial stable release. Install this version for accurate profit and margin tracking.
