== YITH Cost of Goods for WooCommerce ==

Contributors: yithemes
Tags: cost of goods, woocommerce, products, themes, yit, e-commerce, shop, plugins
Requires at least: 6.6
Tested up to: 6.8
Stable tag: 2.22.0

Licence: GPLv2 or later
Licence URI: http://www.gnu.org/licences/gpl-2.0.html
Documentation: https://docs.yithemes.com/yith-cost-of-goods-for-woocommerce

== Changelog ==

= 2.22.0 - Released on 15 October 2025 =

* New: support for WooCommerce 10.3
* Update: YITH plugin framework

= 2.21.0 - Released on 15 September 2025 =

* New: support for WooCommerce 10.2
* Update: YITH plugin framework

= 2.20.0 - Released on 14 August 2025 =

* New: support for WooCommerce 10.1
* Update: YITH plugin framework

= 2.19.0 - Released on 01 July 2025 =

* New: support for WooCommerce 10.0
* Update: YITH plugin framework

= 2.18.0 - Released on 03 June 2025 =

* New: support for WooCommerce 9.9
* Update: YITH plugin framework

= 2.17.0 - Released on 31 March 2025 =

* New: support for WordPress 6.8
* New: support for WooCommerce 9.8
* Update: YITH plugin framework

= 2.16.0 - Released on 04 February 2025 =

* New: support for WooCommerce 9.7
* Update: YITH plugin framework

= 2.15.0 - Released on 04 December 2024 =

* New: support for WooCommerce 9.5
* Update: YITH plugin framework

= 2.14.0 - Released on 13 November 2024 =

* New: support for WordPress 6.7
* New: support for WooCommerce 9.4
* Update: YITH plugin framework
* Fix: fixed rounding issue in the stock export
* Fix: fixed the date from filter in the sales export
* Fix: fixed the items in the sales report and export from orders fully refunded
* Dev: display the filters in the empty state
* Dev: added new filter yith_cog_sales_report_avg_product_price

= 2.13.0 - Released on 11 September 2024 =

* New: support for WooCommerce 9.3
* Update: YITH plugin framework

= 2.12.0 - Released on 12 August 2024 =

* New: support for WooCommerce 9.2
* Update: YITH plugin framework
* Fix: fixed the cost applied to the orders using the REST API
* Dev: added new filter yith_cog_totals_section_gross_profit_value
* Dev: applied change in the YITH Bundle integration to not included the bundled products in the sales report, only the main Bundle product
* Dev: minor changes

= 2.11.0 - Released on 16 July 2024 =

* New: support for WooCommerce 9.1
* New: support for WordPress 6.6
* New: generate the COG on the orders created with YITH Point of Sale
* New: added Hebrew translation by community
* Update: YITH plugin framework
* Fix: error with float type value
* Fix: fixed possible division by zero
* Dev: improve the apply_cost query

= 2.10.0 - Released on 11 June 2024 =

* New: support for WooCommerce 9.0
* Update: YITH plugin framework
* Dev: minor changes

= 2.9.0 - Released on 20 May 2024 =

* New: support for WooCommerce 8.9
* Update: YITH plugin framework
* Dev: added new filter yith_cog_apply_cost_order_statuses

= 2.8.0 - Released on 18 April 2024 =

* New: support for WooCommerce 8.8
* Update: YITH plugin framework
* Dev: minor changes


= 2.7.0 - Released on 20 March 2024 =

* New: support for WooCommerce 8.7
* New: support for WordPress 6.5
* Update: YITH plugin framework
* Fix: fixed the categories filter in the stock report
* Dev: check if order is an object in the WPML compatibility
* Dev: deleting unnecessary class

= 2.6.0 - Released on 20 February 2024 =

* New: support for WooCommerce 8.6
* Update: YITH plugin framework
* Dev: added new filter yith_cog_sales_report_csv_columns_labels
* Dev: added new filter yith_cog_sales_report_csv_product_item
* Dev: added new filter yith_cog_stock_report_csv_columns_labels
* Dev: added new filter yith_cog_stock_report_csv_product_item
* Dev: avoid possible null object

= 2.5.1 - Released on 30 January 2024 =

* Update: YITH plugin framework

= 2.5.0 - Released on 11 January 2024 =

* New: support for WooCommerce 8.5
* Update: YITH plugin framework
* Dev: added new light query for the sales report, can be enabled with the filter yith_cog_use_light_query
* Dev: added new filter yith_cog_default_from_datepicker
* Dev: changed the sales report default date from to the first day of the actual month, to avoid timeouts in sites with large amount of order items

= 2.4.0 - Released on 12 December 2023 =

* New: support for WooCommerce 8.4
* Update: YITH plugin framework
* Fix: fixed issue with the stock report totals calculation

= 2.3.0 - Released on 16 November 2023 =

* New: support for WooCommerce 8.3
* New: support for WordPress 6.4
* Update: YITH plugin framework
* Fix: fixed the cost calculations in the exported CSV

= 2.2.1 - Released on 26 October 2023 =

* Update: YITH plugin framework
* Fix: fixed issue with the Gross Profit calculations in the totals
* Fix: fixed the data type of the item cost in the custom table
* Fix: fixed issue with the date filters
* Fix: minor fixes in the sales report
* Dev: minor changes

= 2.2.0 - Released on 05 October 2023 =

* New: support for WooCommerce 8.2
* Update: YITH plugin framework
* Dev: modified the totals summary to calculate all the pages, not the actual page

= 2.1.0 - Released on 13 September 2023 =

* New: support for WooCommerce 8.1
* Update: YITH plugin framework

= 2.0.1 - Released on 23 August 2023 =

* Update: YITH plugin framework
* Fix: fixing issues with the migration from old version
* Dev: minor changes

= 2.0.0 - Released on 17 August 2023 =

* New: support for WooCommerce 8.0
* New: support for WordPress 6.3
* New: Plugin panel with improved UI/UX
* Tweak: improved sales and stock reports
* Tweak: improved the CSV export
* Update: YITH plugin framework
* Dev: improved the plugin performance

= 1.25.0 - Released on 18 July 2023 =

* New: support for WooCommerce 7.9
* Update: YITH plugin framework

= 1.24.0 - Released on 06 June 2023 =

* New: support for WooCommerce 7.8
* Update: YITH plugin framework

= 1.23.0 - Released on 08 May 2023 =

* New: support for WooCommerce 7.7
* Update: YITH plugin framework

= 1.22.0 - Released on 11 April 2023 =

* New: support for WooCommerce HPOS feature
* New: support for WooCommerce 7.6
* Update: YITH plugin framework

= 1.21.0 - Released on 06 March 2023 =

* New: Support for WordPress 6.2
* New: support for WooCommerce 7.5
* Update: YITH plugin framework
* Fix: Prevent a fatal error when using the plugin with Aelia currency integration

= 1.20.0 - Released on 08 February 2023 =

* New: support for WooCommerce 7.4
* Update: YITH plugin framework

= 1.19.0 - Released on 04 January 2023 =

* New: support for WooCommerce 7.3
* Update: YITH plugin framework
* Fix: prevent the double quotes to jump to another row in the CSV

= 1.18.0 - Released on 05 December 2022 =

* New: support for WooCommerce 7.2
* Update: YITH plugin framework

= 1.17.1 - Released on 14 November 2022 =

* Fix: patched security vulnerability
* Dev: do not include the refunded order status in the sales report

= 1.17.0 - Released on 26 October 2022 =

* New: support for WordPress 6.1
* New: support for WooCommerce 7.1
* Update: YITH plugin framework

= 1.16.0 - Released on 04 October 2022 =

* New: support for WooCommerce 7.0
* Update: YITH plugin framework

= 1.15.0 - Released on 13 September 2022 =

* New: support for WooCommerce 6.9
* Update: YITH plugin framework
* Fix: stock pagination not showing

= 1.14.0 - Released on 03 August 2022 =

* New: support for WooCommerce 6.8
* Update: YITH plugin framework
* Fix: fixed the displayed item counts in the stock report

= 1.13.0 - Released on 06 July 2022 =

* New: support for WooCommerce 6.7
* Update: YITH plugin framework

= 1.12.0 - Released on 09 June 2022 =

* New: support for WooCommerce 6.6
* Update: YITH plugin framework

= 1.11.0 - Released on 10 May 2022 =

* New: support for WordPress 6.0
* New: support for WooCommerce 6.5
* Update: YITH plugin framework
* Fix: fixed the stock by category report

= 1.10.0 - Released on 04 April 2022 =

* New: support for WooCommerce 6.4
* Update: YITH plugin framework
* Fix: fixed warning about deprecated method

= 1.9.0 - Released on 02 March 2022 =

* New: support for WooCommerce 6.3
* Update: YITH plugin framework
* Fix: filter 'yith_columns_switch_stock' now changed to action

= 1.8.0 - Released on 31 January 2022 =

* New: support for WooCommerce 6.2
* Update: YITH plugin framework

= 1.7.0 - Released on 03 January 2022 =

* New: support for WooCommerce 6.1
* New: support for WordPress 5.9
* Update: YITH plugin framework

= 1.6.0 - Released on 02 December 2021 =

* New: support for WooCommerce 6.0
* Update: YITH plugin framework

= 1.5.0 - Released on 09 November 2021 =

* New: support for WooCommerce 5.9
* Update: YITH plugin framework


= 1.4.0 - Released on 07 October 2021 =

* New: support for WooCommerce 5.8
* Update: YITH plugin framework

= 1.3.1 - Released on 27 September 2021 =

* Update: YITH Plugin Framework
* Fix: debug info feature removed for all logged in users
* Fix: fixed the simple products taken as variable in the reports

= 1.3.0 - Released on 08 September 2021 =

* New: support for WooCommerce 5.7
* Update: YITH plugin framework
* Dev: applied PHPCS

= 1.2.17 - Released on 12 August 2021 =

* New: support for WooCommerce 5.6
* Update: YITH plugin framework

= 1.2.16 - Released on 05 July 2021 =

* New: support for WordPress 5.8
* New: support for WooCommerce 5.5
* Update: YITH plugin framework

= 1.2.15 - Released on 08 June 2021 =

* New: Support for WooCommerce 5.4
* Update: YITH plugin framework
* Fix: fixed the cost column display in the product table
* Dev: adding conditionals to the enqueues

= 1.2.14 - Released on 11 May 2021 =

* New: Support for WooCommerce 5.3
* Update: YITH plugin framework
* Dev: added de custom field values also to the variations

= 1.2.13 - Released on 06 April 2021 =

* New: Support for WooCommerce 5.2
* Update: YITH plugin framework

= 1.2.12 - Released on 10 March 2021 =

* New: Support for WooCommerce 5.1
* New: Support for WordPress 5.7
* Update: YITH plugin framework
* Dev: calculate order total cost when the order is created by YITH RAQ
* Dev: minor changes

* Fix: prevent fatal error using "wc_get_product" function

= 1.2.11 - Released on 10 February 2021 =

* New: Support for WooCommerce 5.0
* New: integration with YITH Product Bundles, now it's possible to add a cost of good to the YITH Bundle products
* Update: YITH plugin framework
* Fix: prevent a Division by zero warning
* Fix: prevent fatal error using "wc_get_product" function

= 1.2.10 - Released on 02 January 2021 =

* New: Support for WooCommerce 4.9
* Update: plugin framework
* Fix: avoid displaying custom columns as empty in CSV export
* Fix: prevent getting ID of non-object

= 1.2.9 - Released on 30 November 2020 =

* New: Support for WooCommerce 4.8
* Update: plugin framework
* Fix: fixed a problem with the revenue calculation if the product prices are different
* Dev: removed the .ready method from jQuery
* Dev: applied more changes in the margin calculations
* Dev: added new filters yith_wcog_settings_page_capability, yith_cog_add_cost_field_label and yith_cog_add_cost_field_label_variations

= 1.2.8 - Released on 29 October 2020 =

* New: Support for WooCommerce 4.7
* New: Support for WordPress 5.6
* Update: update plugin fw

= 1.2.7 - Released on 02 October 2020 =

* New: Support for WooCommerce 4.6

= 1.2.6 - Released on 17 September 2020 =

* New: Support for WooCommerce 4.5
* Update: update plugin fw
* Fix: fixed the get cost method with variations without a cost
* Fix: fixed non-numeric value
* Dev: changes in the apply cost

= 1.2.5 - Released on 11 August 2020 =

* New: Support for WooCommerce 4.4
* New: Support for WordPress 5.5
* Update: plugin framework
* Dev: added an object check
* New: added a new option to exclude the shipping from the total cost

= 1.2.4 - Released on 06 July 2020 =

* New: Support for WooCommerce 4.3
* Update: plugin framework

= 1.2.3 - Released on 03 June 2020 =

* New: Support for WooCommerce 4.2
* Update: plugin framework
* Update: .pot file
* Dev: added a check in the case the product changes his type after an order is made

= 1.2.2 - Released on 05 May 2020 =

* New: Support to WooCommerce 4.1
* Update: updated plugin fw
* Update: updated plugin languages
* Dev: updated the plugin settings page slug
* Dev: changed the type number field in the settings
* Dev: Minor changes

= 1.2.1 - Released on 21 February 2020 =

* New: Support to WordPress 5.4 and WooCommerce 4.0
* New: added stock report total row and pagination
* Update: language file .pot
* Update: Italian language
* Update: Dutch language
* Update: updated plugin fw
* Fix: added the percentage marging to the totals row
* Fix: fixed a division by zero warning
* Fix: fixed a wrong total margin calculation
* Dev: added a change to not display a zero if the cost is not set

= 1.2.0 - Released on 06 November 2019 =

* New: support WooCommerce 3.8
* Tweak: improve the totals in the report, now it's the table footer and not a different table
* Tweak: added some changes in the report, now the average columns show a real average between the different product prices and margins
* Tweak: now, the variations cog have more priority than the parent product
* Tweak: Improving the plugin performance and making minor changes
* Update: updated plugin fw
* Update: updated .pot
* Fix: fixed an issue with the pagination
* Fix: fixed "Call to a member function is_type() on boolean" error
* Fix: now, the variations cog is automatically updated when adding a cog to the parent product
* Fix: fixed the cog in the imported variation from the WooCommerce plugin
* Dev: added a new condition to avoid a non object warning

= 1.1.10 - Released on 05 August 2019 =

* New: support WooCommerce 3.7
* Update: updated plugin core
* Fix: fixed a wrong value in the category totals table
* Dev: minor changes

= 1.1.9 - Released on 29 May 2019 =

* Update: Updated Plugin FrameWork
* Fix: fix a wrong numeric value when product has not cost of goods
* Fix: fixed A non-numeric value encountered
* Fix: fixed an issue with the cost decimals
* Fix: fixed an issue with the totals in the category and product reports

= 1.1.8 - Released on 9 April 2019 =

* New - support to WooCommerce 3.6.0 RC 1
* Tweak: improving the currency switcher integrations
* Update: Updated Plugin FrameWork
* Fix: Fixed a non-numeric value warning
* Dev: added new filter _yith_cog_order_total_cost_display_value and _yith_cog_item_cost_display_value
* Dev: added a new condition in the product per page variable

= 1.1.7 - Released on 22 March 2019 =

* Update: Updated Plugin FrameWork
* Update: Spanish language
* Dev: added a new condition in the product per page variable

= 1.1.6 - Released on 19 February 2019 =

* Update: Updating language files
* Update: Updated Plugin FrameWork
* Fix: fixed problems with the decimals
* Fix: Fixed the stock status in the variable products


= 1.1.5 - Released on 14 January 2019 =

* Update: Updating language files
* Update: Updated Plugin FrameWork
* Dev: adding a new filter in the str_replace of the get_cost_html method
* Dev: fixing a wrong string

= 1.1.4 - Released on 10 December 2018 =

* New: support to WordPress 5.0
* New: new compatibility with YITH Name your Price
* Update: Updating language files
* Update: Updated Plugin FrameWork
* Fix: fixing issues in the stock report
* Dev: changing an option description
* Dev: changing plugin author name


= 1.1.3 - Released on 22 October 2018 =

* Update: Updating language files
* Update: Updated Plugin FrameWork
* Fix: fixing the variable products in the stock report
* Dev: changing the plugin description

= 1.1.2 - Released on 17 October 2018 =

* New: Support to WooCommerce 3.5.0
* New: Basic integration with the WPML currency switcher
* New: New option to apply cost only to the selected order
* Update: Dutch language
* Update: Updated Plugin FrameWork
* Fix: fixing an issue with the decimal values in the product table
* Fix: fixing non numeric values warnings
* Fix: Fixing some notices.
* Dev: Fixing the wp_ajax_nopriv hooks
* Dev: added filters to the from_currency and to_currency variables in WPML integration

= 1.1.1 - Released on 20 August 2018 =

* New: New option to let the admin decide the status of the orders to be displayed in the report
* New: Added a basic integration with Aelia Currency Switcher
* New: Added a new option to add a new column with the margin percentage in the report
* New: Added the order total Cost of Goods in the orders totals table
* Update: Italian language
* Update: Spanish language
* Update: Plugin framework 3.0.21
* Update: Updating plugin options
* Update: Updating the plugin data
* Fix: Change the product price caught from the order, now the product price have included the coupons
* Fix: Fixing the refunded items values
* Fix: Fixed an issue with the pagination
* Fix: Fixed a plugin string
* Fix: Fixing non numeric values
* Dev: Fixing a filter name
* Dev: Changing the language file names
* Dev: Added instance in the admin premium class
* Dev: Deleting the plugin name from the text domain


= 1.1.0 - Released on 24 May 2018 =

* New: added a new pagination options in the settings
* New: Added a new option to hide the currency symbol in the reports
* Tweak: Improving the technical language of the reports
* Update: Italian language
* Update: Spanish language
* Update: Dutch language
* Update: Plugin framework 3.0.15
* Fix: Fixing the stock
* Fix: Fixed the name of the variation on the stock report
* Fix: fixing minor issues.
* Fix: adding a round to the values without currency symbol
* Fix: Fixed the item per page select.
* Dev: Hiding the item meta in the orders


= 1.0.6 - Released on 20 March 2018 =
* Update: Updating .pot
* Fix: Changing some texts strings
* Fix: Fixed a problem with the JS
* Fix: Fixing the stock report with variations.
* Dev: Added a filter in the product column value


= 1.0.5 - Released on 5 February 2018 =
* New: Add a Export CSV link in the stock report
* New: Add a button to import the cost from WooCommerce Cost of Goods


= 1.0.4 - Released on 30 January 2018 =
* Fix: Fixing the Quick Edit cost value, now don't disappear when quick edit the product
* Fix: Fixing a problem with the price that the report takes, now takes the order price, with the discount if it have one


= 1.0.3 - Released on 30 January 2018 =
* New: Support to 3.3.0-rc.2
* Fix: Now the product name is from the order, the deleted products now are showed correctly in the report


= 1.0.2 - Released on 28 January 2018 =
* Fix: Fixing Ajax problem with the apply cost buttons
* New: Spanish translations
* New: Italian translations


= 1.0.1 - Released on 22 January 2018 =
* Fix - Fixing Ajax mixed content
* New: Dutch translations


= 1.0.0 - Released on 11 January 2018 =
* First release


== Suggestions ==
If you have suggestions about how to improve YITH Cost of Goods for WooCommerce Premium, you can [write us](mailto:plugins@yithemes.com "Your Inspiration Themes") so we can bundle them into the next release of the plugin.


== Translators ==
If you have created your own language pack, or have an update for an existing one, you can send [gettext PO and MO file](http://codex.wordpress.org/Translating_WordPress "Translating WordPress")
[use](http://yithemes.com/contact/ "Your Inspiration Themes") so we can bundle it into YITH Cost of Goods for WooCommerce Premium.

 = Available Languages =
 * English
 * Dutch
 * Spanish
 * Italian
