=== Cost & Reports for WooCommerce ===
Contributors: Tommy Hansen (Consortia AS)
Tags: WooCommerce, reports, cost, prices, sales, order management, profit, e-commerce
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 5.6
Stable tag: 3.6.2
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Cost & Reports for WooCommerce offers advanced cost and reporting functionality, making it easier for store owners to track profits, costs, and manage orders more efficiently.

== Description ==

**Cost & Reports for WooCommerce** enhances your WooCommerce store by providing detailed cost tracking, profit calculation, and reporting features. It streamlines order management and offers tools for more accurate sales and profit forecasting.

**Key Features:**

* Track product costs and calculate profit margins automatically.
* Adds purchase price, cost, shipping and cost of goods to your products.
* Advanced reports on orders, products, and customers.
* Filter reports by customer, product, or category.
* Set dynamic pricing rules and manage bulk price updates with ease.
* Export reports to CSV or XLSX for further analysis.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/woo-calculate-your-price/` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Navigate to the WooCommerce menu, then click on **Cost & Reports** to configure the plugin settings.
4. Set your product costs, configure report filters, and start managing your store's sales and profits more effectively.

== Changelog ==

= 2026-02-14 - version 3.6.2 =
* Fix - Orders COGS report now prioritizes stored order item COGS (historical snapshot) instead of current product COGS.

= 2026-01-19 - version 3.6.1 =
* Fix - Home tab, added category in export file ( download to .csv )
* Fix - Moved save button above the table in the home tab + some css improvements on the tab
* Dev - Minor fixes and improvements

= 2025-08-05 - version 3.5.4 =
* New - Added option in settings to use WooCommerce's new COGS field 
* New - Added integration for WooCommerce COGS in templates and exports (.csv)
* Fix - Added info icons and text for retail value and profit 
* Dev - Minor fixes and improvements, removed unused code++

= 2025-05-14 - version 3.5.3 =
* New - Added fields to order product report (order date, order status, customer, customer email, product id, product type, purchase price, cost and cost of goods) 
* New - Added fields to order report (payment method, cupons, shipping method and currency)
* Dev - Other minor fixes and improvements

= 2025-01-30 - version 3.5.2 =
* New - Dark Mode style added (option in settings)
* Fix - Fixes in product query when large datasets 
* New - Round to fixed decimals function is added
* Dev - Other minor fixes and improvements

= 2025-01-05 - version 3.5.1 =
* New - Integration / supports WooCommerce Product Bundles 
* Fix - Minor fix for saving meta fields in edit product 
* Dev - Other minor fixes and improvements

= 2024-12-20 - version 3.4.13 =
* New - Added status select in reports 
* New - Added reset filters / query params in reports 
* New - Added refunded statuses shown in reports (sets net and gross sales to 0 but shows in total stats on right side)
* New - Added refunded (statuses) in export to .csv 
* Fix - Minor fixes and improvements

= 2024-11-18 - version 3.4.12 =
* Fix - Added select2, removed multiselect JS and more to improve filters 
* Fix - Changed query for products and more to improve speed and fix paging
* Fix - Added tooltip for makup, price and new price column (home tab)
* Dev - Other fixes and improvements

= 2024-11-05 - version 3.4.11 =
* Fix - Make sure copy current price uses regular price 
* Fix - Changed the Price select (default) to adjust to inc or ex. vat - as WooCommerce settings  

= 2024-10-30 - version 3.4.10 =
* Fix - Minor fix in shipping calculations (orders reports)
* New - Added column for refunded items in Orders and Product reports 
* New - Added option to toggle totals in Orders and Product reports 
* New - Minor layout and CSS improvements, boxed in filters in the reports and more
* New - Added new and faster sorting function for the report tabs (orders, products and customers)
* New - Added refund information to export files for reports
* Dev - Minor fixes and improvements

= 3.4.9 - 2024-09-26 =
* Fix - Minor fix in calculations (markup) 

= 3.4.8 - 2024-09-24 =
* Fix - Minor update in JS for logic in changing prices (VAT++)
* Dev - Other minor code fixes
* Dev - Added readme file

= 3.4.7 - 2024-09-23 =
* Fix - Removed WooCommerce menu that is no longer supported in upcoming versions
* Fix - Improved JS for better performance
* Fix - Minor fix for price changes when shop prices are inclusive of tax
* Fix - Removed autofocus in Home tab product values

= 3.4.6 - 2024-04-26 =
* Fix - JS fixes for formatting numbers and sums
* Fix - Minor fix for fetching customers (dropdown)

... (see changelog for more)

== Frequently Asked Questions ==

= Can I export reports? =
Yes, you can export reports in CSV or XLSX format for further analysis.

= Does this plugin support multi-store environments? =
Yes, Cost & Reports for WooCommerce supports multisite environments for managing reports across multiple stores.

= Can I track product costs and profits in my reports? =
Absolutely. The plugin provides tools to track costs, calculate profit margins, and generate detailed reports on sales and profits.


