Sale! Tested Updated Trending Bestseller Documented

Cost of Goods for WooCommerce

(23 customer reviews)

From: $49.99 / year

Save product purchase costs with Cost of Goods for WooCommerce plugin. Beautifully.

$49.99 Single site1 year of updates and support30-day money-back guaranteeBuy
$129.99 Unlimited sites1 year of updates and support30-day money-back guaranteeBuy
Clear

With Cost of Goods for WooCommerce plugin you can save WooCommerce products purchase costs, i.e. “Cost of goods sold” (COGS) or “Cost of goods” (COG).

After enabling the plugin, new “Cost (excl. tax)” input field will be added to the product’s edit page.

Cost of Goods for WooCommerce - Simple Product Cost Input

For variable products you can either set single cost for all variations:

Cost of Goods for WooCommerce - Variable Product Cost Input

or set costs for each variation individually:

Cost of Goods for WooCommerce - Variation Product Cost Input

Cost of Goods Plugin Options

Plugin options are located in “WooCommerce > Settings > Cost of Goods”.

Products

Admin Products List Columns

This section lets you add custom “Cost of Goods for WooCommerce” plugin columns to WooCommerce admin products list.

Cost of Goods for WooCommerce - Products - Admin Products List Columns

Product cost
Displays product cost.
Default: no
Product profit
Displays product profit.
Default: no

General Products Options

Cost of Goods for WooCommerce - Products - General Options

Cost field label
This is used in admin single product edit pages. Available placeholders: %currency_symbol%.
Default: Cost (excl. tax) (%currency_symbol%)
Product profit HTML template
This is used in admin single product edit pages, and in admin products list “Profit” column. Profit percent is “profit / cost”. Margin is “profit / price”. Available placeholders: %profit%, %profit_percent%, %profit_margin%.
Default: %profit% (%profit_percent%)
Add stock
Adds “Cost of Goods: Add stock” meta box to the product edit page. This will automatically calculate new average cost of goods for the product, based on new “Stock” and “Cost” values you enter.
Default: no

Quick and Bulk Edit

Cost of Goods for WooCommerce - Products - Quick and Bulk Edit

Quick edit
Adds “Cost” field to product “Quick Edit”.
Default: no
Cost of Goods for WooCommerce - Quick Edit
Product “Quick Edit” example.
Bulk edit
Adds “Cost” field to product “Bulk Actions > Edit”.
Default: no

Orders

Admin Orders List Columns

This section lets you add custom “Cost of Goods for WooCommerce” plugin columns to WooCommerce admin orders list.

Cost of Goods for WooCommerce - Admin Orders List Columns

Order cost
Displays pre-calculated order total cost.
Default: no
Order cost: Order statuses
Select order statuses to show cost column. Leave empty to show for all orders.
Default: None
Order profit
Displays pre-calculated order profit.
Default: yes
Order profit percent
Displays pre-calculated order profit percent (i.e. profit / cost).
Default: no
Order profit margin
Displays pre-calculated order profit margin (i.e. profit / price).
Default: no
Order profit: Order statuses
Select order statuses to show profit column. Leave empty to show for all orders.
Default: None

Admin Order Edit

Options for the admin order edit pages.

Cost of Goods for WooCommerce - Admin Order Edit

Item costs
Adds costs inputs for each order item to admin order edit page. Possible values: Enable; Readonly; Disable; Disable but show as standard meta.
Default: Enable
Order meta box
Displays “Cost of Goods” meta box on admin order edit page.
Default: yes
Cost of Goods for WooCommerce - Admin Order Meta Box - Order Page
Admin order meta box example.
Order meta box: Order profit HTML template
This is used in meta box. Available placeholders: %profit%, %profit_percent%, %profit_margin%. Profit percent is “profit / cost”. Margin is “profit / price”. Please note: to display %profit_percent% and %profit_margin% for orders created before plugin v2.2.0 was installed, you will need to recalculate orders cost and profit.
Default: %profit%
Admin notice
Adds notice to admin order edit page in case if order profit is below zero.
Default: no
Admin notice: Text
“Admin notice” option must be enabled.
Default: You are selling below the cost of goods.
Fill in on add items
Fills in item costs with the default costs when adding new items (i.e. “Add item(s) > Add product(s)”).
Default: yes
Save on item edit
Saves item costs when editing order items (i.e. “Edit item > Save”).
Default: yes
"Recalculate" button
Select what should be done when admin clicks “Recalculate” order button. Possible values: Do nothing; Fill in empty item costs with the default costs; Fill in all item costs with the default costs; Save all item costs.
Default: Do nothing

Calculations

Here you can set some options for order cost and profit calculations. You will need to recalculate order’s cost and profit after you change these settings.

Cost of Goods for WooCommerce - Calculations

Count empty cost lines
Count empty cost items when calculating order cost and profit. You will need to recalculate order’s cost and profit after you change this option.
Default: no
Order total for percentage fees
Total to calculate all extra costs percentage fees from (“All Orders”, “Payment Gateways”, “Shipping Methods”). Possible values: Order subtotal excl. tax; Order total excl. tax; Order total incl. tax.
Default: Order subtotal excl. tax
Shipping to profit
Adds order shipping cost to the order profit.
Default: no
Fees to profit
Adds order fees to the order profit.
Default: no
Delay calculations
Select order statuses to delay all order profit, cost etc. calculations until. All values will be set to zero until the required order status is set. Leave empty to calculate right away on new order.
Default: None

Extra Costs: All Orders

Here you can add extra costs for your orders, e.g. handling fees. You will need to recalculate order’s cost and profit after you change these settings.

Cost of Goods for WooCommerce - Orders - Extra Costs - All Orders

Fixed cost
In your shop currency.
Default: 0
Percent cost
Percent from order total (excl. tax).
Default: 0

Extra Costs: Per Order

Adds “Cost of Goods: Extra costs” meta box to admin order edit page. You may need to recalculate order’s cost and profit after you change these settings.

Cost of Goods for WooCommerce - Orders - Extra Costs - Per Order

Handling fee
Default: no
Shipping fee
Default: no
Payment fee
Default: no
Columns
Will add “Extra Cost: Per Order” columns to the WooCommerce admin orders list. One column per fee.
Default: no
Cost of Goods for WooCommerce - Extra Costs Per Order - Order edit
Extra costs per order example.

Extra Costs: From Meta

Adds extra costs from order meta. E.g.: Stripe – _stripe_fee, PayPal – PayPal Transaction Fee. You will need to recalculate order’s cost and profit after you change these settings.

Cost of Goods for WooCommerce - Extra Costs - From Meta

Meta keys
Ignored if empty. One meta key per line.
Default: None

Extra Costs: Payment Gateways

Here you can add extra costs for your orders based on order’s payment gateway. You will need to recalculate order’s cost and profit after you change these settings.

Cost of Goods for WooCommerce - Orders - Extra Costs - Payment Gateways

Enable section
Enables/disables “Extra gateway costs” section.
Default: no
Payment gateway X: Fixed cost
In your shop currency.
Default: 0
Payment gateway X: Percent cost
Percent from order total (excl. tax).
Default: 0

Extra Costs: Shipping Methods

Here you can add extra costs for your orders based on order’s shipping method. You will need to recalculate order’s cost and profit after you change these settings.

Cost of Goods for WooCommerce - Orders - Extra Costs - Shipping Methods

Enable section
Enables/disables “Extra shipping costs” section.
Default: no
Use shipping instances
Enable this if you want to use shipping methods instances (with shipping zones) instead of shipping methods. Save changes after enabling this option.
Default: no
Payment gateway X: Fixed cost
In your shop currency.
Default: 0
Payment gateway X: Percent cost
Percent from order total (excl. tax).
Default: 0

Multicurrency

Here you can set currency exchange rates for your orders in non-default shop currency, i.e. order cost and profit will be converted to the default shop currency according to these rates.

Cost of Goods for WooCommerce - Multicurrency

Enable section
Enables/disables “Multicurrency” section.
Default: no
Currencies
Choose currencies you want to set exchange rates for, and “Save changes” – new settings fields will be displayed.
Default: None
Currency pair X (e.g. EURUSD)
Default: 0

Multicurrency Advanced Options

"Multi Currency for WooCommerce" plugin
When enabled, the plugin will try to get currency exchange rates from the “Multi Currency for WooCommerce” plugin (by VillaTheme) automatically.
Default: no

Tools & Reports

Bulk Edit Costs Tool

Bulk edit tool is located in “Tools > Bulk Edit Costs”. Use it if you need to bulk edit costs for all products from a single page.

Cost of Goods for WooCommerce - Bulk Edit Costs Tool Options

Search products
Possible values: Search by title; Search all.
Default: Search by title
Edit prices
Enable this if you want to edit product prices in addition to cost of goods.
Default: no
Manage stock
Enable this if you want to manage products stock in addition to cost of goods.
Default: no
Manage stock: Stock update method
Ignored unless “Manage stock” checkbox is enabled above. Possible values: Update product meta; Use product functions.
Default: Update product meta
Product types
Select product type(s) to list in the tool (e.g. simple products, grouped products, external/affiliate products, variable products etc.). Leave empty to display all product types.
Default: None

Cost of Goods for WooCommerce - Bulk Edit Costs Tool

Import Costs Tool

Import tool is located in “Tools > Import Costs”. Use it if you need to import costs from other meta fields.

Cost of Goods for WooCommerce - Import Costs Tool Options

Key to import from
Meta key to import costs from.
Default: _wc_cog_cost
Cost of Goods for WooCommerce - Import Costs Tool
Product import costs tool example.

Orders Tools

Cost of Goods for WooCommerce - Orders Tools Options

Recalculate orders cost and profit for all orders
Set items costs in all orders (overriding previous costs). Enable the checkbox and save changes to run the tool.
Default: no
Recalculate orders cost and profit for orders with no costs
Set items costs in orders that do not have costs set. Enable the checkbox and save changes to run the tool.
Default: no
PHP memory limit
Will set PHP memory limit (in megabytes) right before tools are run. Ignored if set to zero.
Default: 0

Reports

Orders Report

Cost of Goods for WooCommerce - Tools and Reports - Orders

Orders report: Order status
Select order statuses for the “Orders > Cost of Goods” report. “Refunded” status is added automatically where applicable. If left empty then default value (“Completed”, “Processing”, “On hold”) is used. Possible values: Pending payment; Processing; On hold; Completed.
Default: Completed; Processing; On hold
Orders report: Extra data
To display data gathered before the plugin v2.0.0, you will need to recalculate orders cost and profit. Possible values: Item costs (excluding fees); Fees (all); Shipping method fees (all); Shipping method fees (fixed); Shipping method fees (percent); Gateway fees (all); Gateway fees (fixed); Gateway fees (percent); Order fees (all); Order fees (fixed); Order fees (percent); Per order fees (all); Per order fees: Handling; Per order fees: Shipping; Per order fees: Payment; Meta fees (all).
Default: None

Cost of Goods orders report is available in “Reports > Orders > Cost of Goods”.

Cost of Goods for WooCommerce - Orders Report

Stock Report

Cost of Goods stock report is available in “Reports > Stock > Cost of Goods”.

Cost of Goods for WooCommerce - Reports - Stock

WooCommerce Analytics

Orders
Will add “Cost” and “Profit” columns to the “Analytics > Orders” report.
Default: no
Cost of Goods for WooCommerce - Analytics - Orders
WooCommerce “Analytics > Orders” example.

Advanced

Force Costs Update

Cost of Goods for WooCommerce - Advanced - Force Costs Update

Force costs update on order update
Force empty order items cost update on each order update.
Default: no
Force costs update on order status change
Force empty order items cost update on order status change.
Default: no
Force costs update on new order item
Force empty order items cost update on new order item addition.
Default: no

Columns Sorting

Cost of Goods for WooCommerce - Advanced - Columns Sorting

Sortable columns
Makes columns added to admin products and orders lists sortable.
Default: yes
Sortable columns: Exclude empty lines on sorting
Default: yes

How could I import/export products costs from/to CSV file?

Exact steps depend on which tool you are using for importing/exporting the data:

If you are using the standard "WooCommerce products (CSV)" tool for importing products from CSV (as described here), then you just need to add to your CSV file column named:

"Meta: _alg_wc_cog_cost"

If you are using some other tool for importing, then you need to set for the column to import to meta with _alg_wc_cog_cost key.

Similarly when exporting product costs, you would need to set to export product meta with _alg_wc_cog_cost key.

After installing the plugin I still have nothing showing for profit etc.

Go to "WooCommerce > Settings > Cost of Goods", check "Recalculate orders cost and profit for all orders" option there and click "Save changes". This will calculate profit for all previous orders.

Why my admin product listing or orders listing pages look confusing like this:

Cost of Goods for WooCommerce - Products - Admin Columns - Issue

Probably you just need to disable some columns by accessing the "Screen Options" at the top of the page:

Cost of Goods for WooCommerce - Products - Admin Columns - Screen Options

Or you can change the cost and profit columns by using our Products > Admin products list columns option.

How to enable cost and profit in Analytics?

First you need to enable the cost and profit columns in our plugin from the Analytics section you wish. You can find this option at: Tools & Reports > Analytics. Now, once you're at the Analytics section, you need to enable the columns next to the "Downloads" button, like the screenshot.

Also if you want to see the costs of historical orders, you will need to recalculate the order costs and profits. The option is located at Tools & Reports > Order Tools > Recalculate orders cost and profits.

23 reviews for Cost of Goods for WooCommerce

  1. Tom

    Does it keep historical data for COGS completed orders?

    E.g. Product X COGS were $10 Dec to Jan and from Feb it’s $9. So when report is generated for lets say 12months will it show different COGS for the product X?

    • WPFactory Plugins

      Hi Tom,

      Yes, because reports will use the cost data from orders. If orders have been placed in a period where a product had its price changed, the orders will reflect that. The product costs are saved in the orders.

  2. toni laine (verified owner)

    Great product to update your stock level and costs!

    • WPFactory Plugins

      Thanks 😉

  3. NAJJAR (verified owner)

    Very good plugin and very good support.

    • WPFactory Plugins

      Thanks 😉

  4. Reana Anna Brink (verified owner)

    Update (July 27, 2022): I had great support from WP Factory in assisting me with my installation of the plugin. The plugin is working effectively, and providing us with accurate data and more. Thank you Pablo and the team!

    Good day,

    I bought this plugin and I’m still unable to use it. They key was sent to me yesterday by your product support team and it keeps on saying key invalid. I reached out to them again with no reply or uncertain what I should do.

    Kerry

    • WPFactory Plugins

      Hello Reana,

      I’m sorry you had problems. This should be a simple problem to be solved.
      I just sent you a message. Please, let me know how we can help you.

  5. Scott

    Amazingly fast support, added a feature that we needed to work without any delay. Incredible service.

    Plug-in does exactly what we need it to do.

    • WPFactory Plugins

      Thanks 😉

  6. Sina Arzany (verified owner)

    The support is super fast and amazing.
    Plugin also is great and work really smooth and nice.

    • WPFactory Plugins

      Thanks 🙂

  7. Tasku Kuponai (verified owner)

    I was searching for a plugin that would help me to calculate my profit by deducting the fees of the payment gateway and this plugin does exactly that.

    Would recommend this plugin to every starting business to make your life easier and see exactly how much you earn.

    • WPFactory Plugins

      Thanks 🙂

  8. Tshepang (verified owner)

    Twice this plugin has removed all the costs to our products after months of hard work inputting those costs. On the first time my IT guy was doing some updates to the site, next thing all the data is gone. He did all the checks and was not happy about the plugin not having a backup functionality and recommended I remove it and try another plug in. I didn’t listen, did all the work again, on the last few products as I was adding data and ran a Force costs update, data gone again. WTF!

    • WPFactory Plugins

      Hello,

      The “Force costs update” option will only affect the costs on orders, not the costs from products. If for some reason you only have a problem with the costs from the orders, you can try to run the “Tools > Recalculate for orders with no costs”.

      Anyway, let me know if you want our help. We can try to take a look at your problem, and maybe we could even try to create a new option for you to set the costs for all your products at once in bulk somehow.

      Let me know your thoughts

  9. VICTOR QUESADA MARISCAL MARISCAL (verified owner)

    WE HAVE REALIZED THAT IT HAPPENS TO PROCESSING ORDERS WITHOUT PAYING !! We have clients who have taken laptops without paying

    • WPFactory Plugins

      I’m sorry to hear you had issues with the plugin. We did check it on your server and it looks like there are errors coming from another plugin (Checkout with SeQura).

      Let us know if you want our help to solve the problem

  10. Benjamin Cohen (verified owner)

    A very useful plugin, Used by us to know exactly the profit products percentages. The plugin Provides a lot of information, Pretty simple to to use, Very professional and fast support. Huge thanks to the developers

  11. Tye

    Excellent plugin with so much functionality but yet so easy to use to keep track of profit at an order level!

    Great work team!

  12. Markus (verified owner)

    If you are looking for a plugin for Woocommerce that can help you keep track of your profit, this is the one! Very well build and utilizing lots of native Woocommerce functionality like reports, analytic, and so on. Many settings as well! The owner of the plugin is very friendly and listens if you have issues. For the money, this is a bargain! 🙂

    • WPFactory Plugins

      😉

  13. Martijn (verified owner)

    Perfect plug-in and service! 🙂

    • WPFactory Plugins

      😉

  14. Guido Martin

    I owe a beer to you guys! Thanks for your support, and such a great plugin!

  15. waheed448 (verified owner)

    We’ve recently bought this plugin. Seems to be working good. We have request, stock that we receive/buy regularly (with different cost prices from diff vendors) needs to be added with below option in admin product page. This will add stock into existing stock and calc avg cost price. This is essential feature which is working good. We need this option to be added in “Quick Edit” and/or “Bulk Edit” option. Otherwise its really time consuming to go in each product edit option and update these fields, quite consuming task.

    Add “Cost of Goods: Add stock” meta box to the product edit page.

    Can you please help to enhance this feature or if its aleady exist then please do let us know…..

    • WPFactory Plugins

      Hi Waheed,

      Sorry for the delay.
      I’m sending you a direct message via email to discuss about the feature 😉

    • WPFactory Plugins

      Hello ,

      I just released version 2.3.5 with the new Quick and Bulk edit options for the “Add stock” feature.

      Please update the plugin and let me know if it works for you 😉

  16. SG (verified owner)

    Highly recommended if you are hesitating between the few COG plugins. I was hesitant and almost got the official one at WC.com but because this is cheaper (I had to try and at worst, get a refund) but it was the best move.

    I am super impressed by the speed Tom adjusts his plugin to my requirement and responds to feature requests. And he is making this sync with multi currency which everyone should pay attention to when getting a COG plugin.

  17. plaguna22 (verified owner)

    This plugin is what I have been looking for a long time, it is excellent and it keeps up to date. Tom, the programmer, always helps and responds fast. I highly recommend it

  18. Nicklas

    We have tested several of their plugins and all work as promised. We really want to highlight their fantastic support when you need it. Tom is also helpful with tips and tricks outside of their own plugin. Really appreciated. Thanks! / toplady.se

  19. Harris (verified owner)

    Very good plugin, just what I needed. The best plugin support answered questions and helped solve the problem quickly. I wish all plugin creators were this good.

  20. Ahmad Chehade

    This person is an excellent plugin producer. Takes feedback onboard and updates accordingly. Thank you for making such a great plugin!

  21. Lucas

    Perfect product and perfect support. I recommend. very high quality product

  22. numanzahid (verified owner)

    Great Plugin. Really what I needed.

  23. benye

    Great plugin! Great support!

Add a review

Your email address will not be published. Required fields are marked *

Free vs Pro

This plugin is a premium version of free "Cost of Goods for WooCommerce" plugin.

Free VersionPro Version
Products
Admin Products List Columns
Add stock
Quick edit
Bulk edit
Orders
Admin Orders List Columns
Item costs
Meta box
Admin notice
Extra Costs: All Orders
Extra Costs: Per Order
Extra Costs: Payment Gateways
Extra Costs: Shipping Methods
Tools
Product Bulk Edit Costs Tool
Product Import Costs Tool
Recalculate Orders Cost and Profit Tools
Reports
Graphical Orders (Costs/Profit) Report
Stock Report
WooCommerce Analytics

Product costs are stored in product's meta with _alg_wc_cog_cost key, so if you need to get it with PHP:

$product_cost = get_post_meta( $product_id, '_alg_wc_cog_cost', true );

As for the orders, profit and cost are stored in _alg_wc_cog_order_profit and _alg_wc_cog_order_cost meta respectively:

$order_profit = get_post_meta( $order_id, '_alg_wc_cog_order_profit', true );
$order_cost   = get_post_meta( $order_id, '_alg_wc_cog_order_cost',   true );

Changelog

2.9.2 - 08/03/2023

  • Dev - Tools - Recalculation - Date - New option: After date.
  • Dev - Tools - Recalculation - Date - New option: Before date.
  • Dev - Tools - Recalculation - Date - New option: Date type.

2.9.1 - 21/02/2023

  • Dev - Shipping - Percent cost - New option: Percent cost source.
  • Dev - Shipping - Percent cost - New option: Shipping total calculation method, regarding taxes.

2.9.0 - 16/02/2023

  • Fix - Bulk update prices - Variations are not getting updated.
  • Dev - Orders - Calculations - Display "Shipping", "Fees" and "Taxes to profit" on order meta box as extra profit.
  • Dev - New filters: alg_wc_cog_extra_profit_meta_keys.
  • WC tested up to: 7.4.

2.8.9 - 06/02/2023

  • Add German translation.
  • Fix - Compatibility - ATUM - Taxes option is not working well.
  • Fix - Bulk edit costs - Variation name is incomplete.

2.8.8 - 25/01/2023

  • Fix - Bulk edit tool - Change access control check from manage_options to manage_woocommerce.
  • Fix - Multicurrency - Currencies costs - Profit does not change.
  • Dev - Orders - Calculations - New option: Shipping to profit - Percentage.
  • Dev - Orders - Admin order edit - Meta box - New option: Allow editing the total order cost value by adding a cost input.
  • Dev - New filters - alg_wc_cog_order_cost, alg_wc_cog_order_profit, alg_wc_cog_order_metabox_cost_value_html.

2.8.7 - 20/01/2023

  • Fix - Implement access control and nonce check on Bulk edit tool.
  • Fix - Bulk edit prices - Some translations are not working.
  • Fix - Compatibility - WC Foods - PHP warning triggers sometimes.
  • Dev - Multicurrency - Currencies cost - New option: Add extra costs based on the order currency.
  • Dev - Compatibility - ATUM - Taxes - New option: Subtract taxes from ATUM cost while using the "Import" or "Cost sync" options.
  • Dev - New filters: alg_wc_cog_update_order_values, alg_wc_cog_currencies_costs_total, alg_wc_cog_currencies_costs_percentage_total.
  • Move Multicurrency advanced section to Compatibility section.

2.8.6 - 13/01/2023

  • Fix - Orders - Profit margin calculated in a wrong way.
  • WC tested up to: 7.3.

2.8.5 - 10/01/2023

  • Dev - Products - Cost sanitization - Product export - New option: Convert cost to number.
  • Dev - Products - Cost sanitization - Product export - New option: Dots and commas operation.

2.8.4 - 03/01/2023

  • Fix - Tools & Reports - Orders tools - PHP error when trying to recalculate order cost and profit.

2.8.3 - 27/12/2022

  • Fix - Compatibility - WC Foods - Fix php warning.
  • Fix - Products - Add stock - Negative stock - Stock may increase even with negative values.

2.8.2 - 26/12/2022

  • Dev - Refactor "Add Stock" feature in a new class.
  • Dev - Products - Cost archive - New option: Save archive.
  • Dev - Products - Cost archive - New option: Enable a cost archive meta box.
  • Dev - Compatibility - ATUM - New option: Change cost of goods every time the purchase price is updated in ATUM.
  • Dev - Compatibility - WC Foods - New option: Add fixed costs to food options.
  • Dev - New filters: alg_wc_cog_cost_meta_keys, alg_wc_cog_update_order_item_values, alg_wc_cog_food_options_fixed_costs_total.
  • Dev - New actions: alg_wc_cog_update_order_values_action.

2.8.1 - 19/12/2022

  • Dev - Improve the way of initializing the main class.
  • Dev - Tools - Import - New option: Run import tool automatically via cron.
  • WC tested up to: 7.2.

2.8.0 - 02/12/2022

  • Dev - Tools - Import - New option: Sync with Product Importer from WooCommerce.

2.7.9 - 22/11/2022

  • Dev - Tools & Reports - Bulk edit prices - New field allowing to set product prices by absolute profit.

2.7.8 - 21/11/2022

  • Dev - Tools & Reports - Bulk edit prices - New option: Edit tags.
  • Dev - Products - Get price method - New option: Get regular price.

2.7.7 - 16/11/2022

  • Dev - Tools & Reports - Bulk edit prices - New option: Filter by tags.

2.7.6 - 15/11/2022

  • Fix - Tools - Analytics - SQL syntax error regarding minus character.

2.7.5 - 10/11/2022

  • Fix - Tools - Analytics - Unknown column wp_wc_order_product_lookup.product_net_revenue.

2.7.4 - 09/11/2022

  • Fix - Tools & Reports - Bulk edit costs - Fix profit style on cost field description.
  • Fix - Tools & Reports - Bulk edit costs - Remove top save button.
  • Fix - Tools & Reports - Bulk edit prices - Update prices button does not work.
  • WC tested up to: 7.1.

2.7.3 - 03/11/2022

  • Dev - Tools & Reports - Bulk edit costs - Add tags column.
  • Dev - Tools & Reports - Bulk edit costs - By price - New option: Filter by tags.
  • Dev - Tools & Reports - Bulk edit costs - By profit - New option: Filter by tags.
  • Tested up to: 6.1.

2.7.2 - 01/11/2022

  • Dev - Tools & Reports - Bulk edit costs - Costs - New option: Show profit as cost field description.

2.7.1 - 24/10/2022

  • Fix - Bulk edit costs - Paged parameter overrides search change.
  • Fix - Bulk edit costs - Search is using post method.

2.7.0 - 21/10/2022

  • Dev - Products - Cost sanitization - New option: Get only the cost number when using the WooCommerce Importer.

2.6.9 - 20/10/2022

  • Fix - Bulk edit costs - Disabled screen options are being displayed on the page after "Apply" button is clicked.
  • WC tested up to: 7.0.

2.6.8 - 03/10/2022

  • Fix - Error: Class WP_Background_Process not found.
  • WC tested up to: 6.9.

2.6.7 - 08/09/2022

  • Dev - Products - Admin products list columns - Make profit column sortable.

2.6.6 - 08/09/2022

  • Fix - Remove unnecessary folder from free version.

2.6.5 - 31/08/2022

  • Fix - Products - Add stock option does not update cost.

2.6.4 - 18/08/2022

  • Dev - Tools - Bulk edit prices - Add rounding option.
  • Reorganize admin products settings.
  • WC tested up to: 6.8.

2.6.3 - 28/07/2022

  • Dev - Tools - Add Bulk edit prices page.
  • Dev - Advanced - Create "Costs update hooks" option. Remove woocommerce_new_order hook to the calculation work with Avatax + Subscription.
  • Dev - Shipping classes - Add option: "Fixed cost calculation".

2.6.2 - 21/07/2022

  • Dev - Compatibility - WPC Product Bundles - Exclude Smart bundle cost from order item on woocommerce_new_order_item and save_post_shop_order.
  • WC tested up to: 6.7.

2.6.1 - 11/07/2022

  • Fix - Shipping classes - Prevent possible error: "Call to a member function get_shipping_class() on bool".
  • Dev - Compatibility - WPC Product Bundles - Add option to calculate Smart bundle cost from its items.
  • Dev - Compatibility - WPC Product Bundles - Add option to exclude Smart bundle cost from order item.
  • WC tested up to: 6.6.

2.6.0 - 13/06/2022

  • Fix - Products - Add stock - Stock being saved as float sometimes causes errors in stock changing calculations.

2.5.9 - 04/06/2022

  • Fix - Error: Call to undefined method Automattic\WooCommerce\Admin\PageController::is_admin_page().

2.5.8 - 03/06/2022

  • Fix - Shipping classes costs are not getting calculated.
  • Fix - PHP Deprecated: Function is_admin_page.
  • Tested up to: 6.0.

2.5.7 - 23/05/2022

  • Dev - Compatibility - ATUM - New option: "Use function from ATUM plugin to copy the cost meta".
  • Dev - Tools - Product import costs tool - Create alg_wc_cog_copy_product_meta_args filter.
  • Dev - Tools - Product import costs tool - Create alg_wc_cog_can_copy_cost filter.
  • Dev - Tools - Product Import Costs Tool - Improve copy_product_meta() function.
  • Dev - Move compatibility code to an exclusive class.
  • Dev - Add "Bulk edit costs" and "Import costs" to plugin action links.
  • WC tested up to: 6.5.

2.5.6 - 10/05/2022

  • Dev - Remove package-lock.json.
  • Dev - Sync _alg_wc_cog_cost meta between different languages while using Polylang/WPML.

2.5.5 - 18/04/2022

  • Fix - Tools - Analytics - Products tab does not take quantity into consideration.
  • Fix - Tools - Analytics - Profit total from products tab is just calculating from totals.
  • Dev - Tools - Analytics - Add option to add "Cost" and "Profit" columns to categories tab.
  • Dev - Tools - Analytics - Add option to add "Cost" and "Profit" totals to the report chart on the categories tab.
  • Dev - Tools - Analytics - Add option to consider stock for cost and profit calculation on stock tab.
  • Dev - Tools - Analytics - Add profit to summary based on Product profit HTML template option, except on stock tab.
  • WC tested up to: 6.4.

2.5.4 - 29/03/2022

  • Fix - Recalculate orders cost and profit - Order ID is not passed when recalculation doesn't run via background processing.
  • Dev - Advanced - Force costs update - Create option to auto fill empty order items costs on order meta update.

2.5.3 - 14/03/2022

  • Fix - Orders - Admin new order email - Too few arguments to function Alg_WC_Cost_of_Goods_Orders::woocommerce_email_order_meta() when used with the "Woo Custom Emails" plugin.
  • Fix - Orders - Admin new order email - Too few arguments to function Alg_WC_Cost_of_Goods_Orders::woocommerce_email_order_meta() when used with the "Woo Custom Emails" plugin.
  • Fix - Products - Add stock - Improve method used to update stock. From update_post_meta() to wc_update_product_stock().
  • Dev - Orders - Extra Costs: From Meta - Use dots to access serialized array metas.

2.5.2 - 09/03/2022

  • Fix - Unsupported operand types: float / string in PHP 8 if Product profit HTML template is set as %profit%.
  • WC tested up to: 6.3.

2.5.1 - 10/02/2022

  • Fix - Reports - Stock - Cost of goods - Products having costs and prices with decimal places after zero don't get displayed on the report.
  • Dev - Tools - Bulk edit costs - Add "by price" and "by profit" sections.
  • Dev - Tools - Bulk edit costs - By price - Add option to define the costs from a percentage of product prices.
  • Dev - Tools - Bulk edit costs - By profit - Add option to define the costs according to a profit percentage.
  • Dev - Tools - Analytics - Add option to add "Cost" and "Profit" columns to products tab.
  • Dev - Tools - Analytics - Add option to add "Cost" and "Profit" totals to products tab.
  • Tested up to: 5.9.

2.5.0 - 19/01/2022

  • WC tested up to: 6.1.

2.4.9 - 06/10/2021

  • Fix - Add cost of goods on orders placed by WooCommerce REST API.
  • Dev - Improve Alg_WC_Cost_of_Goods_Orders::update_order_items_costs() function args.
  • WC tested up to: 5.7.

2.4.8 - 13/09/2021

  • Dev - Tools - Analytics - Add option to add "Cost" and "Profit" totals columns to revenue tab.
  • Dev - Tools - Analytics - Add option to add "Cost" and "Profit" totals columns to the report chart from the revenue tab.
  • Improve readme.

2.4.7 - 23/08/2021

  • Fix - Unsupported operand types error when there are variations with empty price.
  • Fix - Orders - Admin Order Edit - Item costs - Option is mandatory for calculating the order cost.
  • Fix - Advanced - Force costs update on order update doesn't work.
  • Fix - Advanced - Restrict by user role - Doesn't work for cost and handling fee input on admin order edit page.
  • Dev - Compatibility - Metorik - Add compatibility with Metorik.
  • Dev - Compatibility - Metorik - Add option to sync cost with _wc_cog_cost meta.
  • WC tested up to: 5.6.
  • Improve readme.
  • Add chinese translation.

2.4.6 - 17/08/2021

  • Fix - Uncaught TypeError: Unsupported operand types: int + string in Alg_WC_Cost_of_Goods_Orders:888.
  • Dev - Tools - Import - Create "Meta key replaced" option.
  • Add compatibility admin settings section.

2.4.5 - 16/08/2021

  • Fix - Check if order is from a \WC_Order type on Alg_WC_Cost_of_Goods_Orders::update_order_items_costs().
  • Dev - Tools - Analytics - Stock - Create option to add cost and profit columns.
  • Dev - Tools - Analytics - Stock - Create option to add category column.
  • Dev - Tools - Analytics - Stock - Create option to add a cost of goods filter allowing for example to filter only products with costs.
  • Dev - Orders - Admin order edit - Create "Item handling fees" option.
  • Dev - Replace is_plugin_active() function.
  • Dev - Add github deploy setup.
  • WC tested up to: 5.5.
  • Tested up to: 5.8.

2.4.4 - 14/06/2021

  • Fix - Free and pro plugins can't be active at the same time.

2.4.3 - 11/06/2021

  • Fix - Some products are empty on Cost of goods stock reports csv.
  • Dev - Orders - Refunds - Create option to calculate quantity by excluding refunded items.
  • Dev - Add "Extra costs: Shipping classes" admin section.
  • Dev - Add wpfactory promoting notice.
  • Dev - Add composer.
  • Dev - Multicurrency - Add "Auto Currencies Rate From exchangerate-api.com" option.
  • Dev - Advanced - Add compatibility with WooCommerce Product Add-ons.
  • Improve admin settings texts.
  • WC tested up to: 5.4.

2.4.2 - 20/05/2021

  • Fix - Unsupported operand types: string * int on alg-wc-cog-orders.php:614 on PHP 8.
  • Fix - Unsupported operand types: float - string on PHP 8.
  • Dev - Products - Admin products list columns - Add "Column width" option for cost and profit.
  • Dev - Products - Admin products list columns - Add "Column width unit" option for cost and profit.
  • Dev - Products - Add stock - Add "Cost calculation expression" option.
  • Dev - Products - Add stock - Add "Empty cost field" option.
  • Dev - Products - Add stock - Add "Negative stock" option.
  • WC tested up to: 5.3.

2.4.1 - 21/04/2021

  • Fix - Tools & Reports - Analytics > Orders - Format "Cost" and "Profit" columns as currency.
  • Dev - Tools & Reports - Analytics > Orders - Add "Cost" and "Profit" totals to the report charts.
  • Add notice on settings page regarding pro version.
  • WC tested up to: 5.2.

2.4.0 - 25/03/2021

  • Fix - Advanced - Openpos - Some info doesn't reflect the "Order types" option.
  • Fix - Orders - Extra Costs: All Orders - Unsupported operand types.
  • Dev - Tools & Reports - Reports - Add "Stock report: Meta query" option.
  • Dev - Products - Add "Cost decimals" option.

2.3.9 - 15/03/2021

  • Dev - Advanced - Add compatibility with "Openpos - WooCommerce Point Of Sale" plugin allowing to manage POS orders on orders reports.
  • Dev - Products - Add "get price method" option.
  • Dev - Advanced - Add compatibility with "Openpos - WooCommerce Point Of Sale" plugin allowing to manage POS orders on orders reports.
  • Dev - Add alg_wc_cog_before_update_order_items_costs hook.

2.3.8 - 22/02/2021

  • Dev - Tools & Reports - Reports - Stock - Add SKU reference.
  • Dev - Advanced - Add compatibility with WPC bundle products for WooCommerce.
  • Dev - Developers - Create alg_wc_cog_stock_report_args filter.
  • WC tested up to: 5.0.

2.3.7 - 28/01/2021

  • Fix "Refund calculation" option.

2.3.6 - 27/01/2021

  • Fix - Orders - Refunds - "Net Payment inclusive of tax" option.
  • Fix error - Call to undefined method OrderRefund::get_total_refunded().

2.3.5 - 25/01/2021

  • Fix - Orders - Shipping to profit - PHP Warning.
  • Fix - Fix possible Uncaught TypeError when saving product costs.
  • Fix - Advanced - Compatibility - WP All Import - "Sanitize float number" option.
  • Dev - Orders - Refunds - Add "Refund calculation" option.
  • Dev - Orders - Refunds - Add "Net Payment inclusive of tax" option.
  • Dev - Calculations - Add "Taxes to profit" option.
  • Dev - Create table_attributes param for $args param from alg_wc_cog_get_table_html() function.
  • Dev - Orders - Create option to display the order cost and profit on the admin new order email.
  • Dev - Products - Add "Sanitize cog meta" option.
  • Dev - Products - Create "Add stock" fields option for quick and bulk edit actions.
  • WC tested up to: 4.9
  • Add question regarding cost fields not saving to FAQ.
  • Add question regarding to exporting cost of goods.
  • Add question regarding how to bulk edit a category.

2.3.4 - 14/12/2020

  • Fix - Display variation cost fields from the parent product in case the variation cost is empty.
  • Dev - Advanced - Compatibility - Add compatibility option with WP All Import plugin.
  • Dev - Advanced - Compatibility - WP All Import - Add "Convert to float" option.
  • Dev - Advanced - Compatibility - WP All Import - Add "Sanitize float number" option.
  • Dev - Advanced - Restriction - Add "Restrict by user role" option.
  • Dev - Products - Quick edit - Add "Replace all variations" option.
  • Dev - Tools & Reports - Add alg_wc_cog_create_import_tool_validation filter.
  • Dev - Tools & Reports - Add alg_wc_cog_create_edit_costs_tool_validation filter.
  • Dev - Tools & Reports - Add alg_wc_cog_create_report_validation filter.
  • Dev - Tools & Reports - Add alg_wc_cog_create_analytics_orders_validation filter.
  • Dev - Orders - Add alg_wc_cog_create_orders_columns_validation filter.
  • Dev - Orders - Add alg_wc_cog_create_order_meta_box_validation filter.
  • Dev - Products - Add alg_wc_cog_create_product_columns_validation filter.
  • Dev - Products - Add alg_wc_cog_create_product_meta_box_validation filter.
  • Dev - Add alg_wc_cog_create_wc_settings_tab_validation filter.
  • Tested up to: 5.6

2.3.3 - 20/11/2020

  • Fix - Localization - Move load_plugin_textdomain function to init call.
  • WC tested up to: 4.7

2.3.2 - 16/11/2020

  • Fix - Admin Products List Columns - Reduce priority on manage_edit-product_columns filter allowing third party solutions to change columns positions.
  • Fix - Admin Orders List Columns - Reduce priority on manage_edit-shop_order_columns filter allowing third party solutions to change columns positions.
  • Dev - Tools & Reports - Product Import Costs Tool - Add "Check key value" option.
  • Dev - Tools & Reports - Product Import Costs Tool - Add "Check if key exists" option.

2.3.1 - 10/11/2020

  • Fix - Products - Improve "Add stock" description.
  • Dev - Products - General - Add "Cost field position" option.
  • Dev - Tools & Reports - Reports - Create "Stock report: Get price method" option.
  • Dev - Tools & Reports - Bulk Edit Costs Tool - Add pagination and column sorting.
  • WC tested up to: 4.6

2.3.0 - 08/10/2020

  • Fix - Products - Using unfiltered (i.e. default shop) currency symbol in product cost input now.
  • Fix - Orders - Using unfiltered (i.e. default shop) currency symbol in order item cost input and per order fees meta box now.
  • Fix - Tools & Reports - Orders report - Using unfiltered (i.e. default shop) currency symbol in chart now.
  • Fix - Tools & Reports - Product Bulk Edit Costs Tool - Product types - "Variations" product type added.
  • Dev - Tools & Reports - Product Import Costs Tool - Add background processing.
  • Dev - Tools & Reports - Product Import Costs Tool - Create "Display table" option.
  • Dev - Tools & Reports - Recalculate orders cost and profit - Add background processing.
  • Dev - Tools & Reports - Fix compatibility with "WooCommerce Order Status & Actions Manager" plugin by managing the woocommerce_reports_order_statuses filter.
  • Dev - Tools & Reports - Analytics - Settings description fixed.
  • Dev - Advanced - Background Processing - Background Add "Send email" option.
  • Dev - Advanced - Background Processing - Add "Email to" option.
  • Dev - Advanced - Background Processing - Add "Minimum amount" option.
  • Dev - Advanced - Background processing - Add alg_wc_cog_bkg_process_email_params filter.

2.2.0 - 01/10/2020

  • Fix - Tools & Reports - Analytics - If order doesn't have cost/profit set, it's excluded from the report - this is fixed now.
  • Fix - Tools & Reports - Product Bulk Edit Costs Tool - Searching was saving product costs as well - this is fixed now.
  • Fix - Settings - Description fixed for all "Percent cost" options.
  • Dev - "Multicurrency" section added.
  • Dev - Orders - Admin Orders List Columns - "Profit percent" and "Profit margin" columns added.
  • Dev - Orders - Admin Order Edit - Meta box - "Order profit HTML template" option added.
  • Dev - Orders - Displaying all COG data in default shop currency now (i.e. instead of in order currency).
  • Dev - Orders - update_order_items_costs() - alg_wc_cog_order_item_cost - Order variable added to the filter's params.
  • Dev - Orders - update_order_items_costs() - alg_wc_cog_order_shipping_cost_fixed, alg_wc_cog_order_shipping_cost_percent, alg_wc_cog_order_gateway_cost_fixed, alg_wc_cog_order_gateway_cost_percent, alg_wc_cog_order_extra_cost_fixed, alg_wc_cog_order_extra_cost_percent, alg_wc_cog_order_total_for_pecentage_fees, alg_wc_cog_order_line_total, alg_wc_cog_order_extra_cost_from_meta, alg_wc_cog_order_shipping_total, alg_wc_cog_order_total_fees filters added.
  • Dev - Tools & Reports - Analytics - "Cost" and "Profit" columns added to the CSV server export.
  • Dev - Tools & Reports - Analytics - "Cost" and "Profit" columns added to REST report orders schema.
  • Dev - Tools & Reports - Product Bulk Edit Costs Tool - Code refactoring (now using wc_get_products() function etc.).
  • Dev - Tools & Reports - Product Bulk Edit Costs Tool - "Product types" option added.
  • Dev - Tools & Reports - Product Bulk Edit Costs Tool - "Search" button added.
  • Dev - Tools & Reports - Product Bulk Edit Costs Tool - "No products found" message added.
  • Dev - Compatibility - "WooCommerce Point of Sale" plugin (by "Webkul") compatibility added.
  • Dev - Compatibility - "Multi Currency for WooCommerce" plugin (by "VillaTheme") compatibility added.
  • Dev - Settings - Using unfiltered currency now, i.e. get_option( 'woocommerce_currency' ) vs get_woocommerce_currency().
  • Dev - Core - get_product_profit_html() function added (for backward compatibility, e.g. for wc-frontend-manager-ultimate plugin).
  • Dev - Code refactoring.
  • Localization - Turkish (tr_TR) translation added.

2.1.2 - 17/09/2020

  • Plugin author updated.

2.1.1 - 14/09/2020

  • Dev - Products - Admin settings rearranged.
  • Dev - Products - alg_wc_cog_get_product_cost filter added.
  • Dev - Orders - Calculations - "Fees to profit" option added.
  • Dev - Orders - update_order_items_costs() - Additional safe checks added.
  • WC tested up to: 4.5.

2.1.0 - 21/08/2020

  • Dev - Products - Cost field added to the "Bookable" products ("WooCommerce Bookings" plugin).
  • Dev - Products - General - "Cost field label" option added.
  • Dev - Orders - Admin settings rearranged: "General Options" subsection removed; "Admin Order Edit" and "Calculations" subsections added.
  • Dev - Orders - Admin Order Edit - "Prepopulate in AJAX" option renamed to "Fill in on add items".
  • Dev - Orders - Admin Order Edit - "Save on item edit" option added (defaults to yes).
  • Dev - Orders - Admin Order Edit - "Repopulate on recalculate" option renamed to '"Recalculate" button'. Option type changed from checkbox to select. "Fill in all item costs with the default costs" and "Save all item costs" options added.
  • Dev - Orders - Calculations - "Delay calculations" option added.
  • Dev - Tools & Reports - Product Bulk Edit Costs Tool - CSS and JS files minified.
  • Dev - Major code refactoring.
  • WC tested up to: 4.4.
  • Tested up to: 5.5.

2.0.0 - 07/08/2020

  • Dev - Products - General - "Product profit HTML template" option added.
  • Dev - Orders - "Extra Costs: From Meta" section added.
  • Dev - Orders - General - "Shipping to profit" option added.
  • Dev - Orders - General - Meta box - Colors added to the profit and cost values.
  • Dev - Orders - General - Meta box - "Cost details" table added (displayed only if cost consists of more than one element).
  • Dev - Orders - Saving total items cost and fees (shipping, gateway, order, total etc.) in order meta now.
  • Dev - Orders - alg_wc_cog_order_item_cost filter added.
  • Dev - Tools & Reports - Orders Tools - Now deleting shop order transients after recalculation.
  • Dev - Tools & Reports - Orders Tools - "PHP memory limit" option added.
  • Dev - Tools & Reports - Product Bulk Edit Costs Tool - "SKU" column added.
  • Dev - Tools & Reports - Product Bulk Edit Costs Tool - Title - Frontend product link added.
  • Dev - Tools & Reports - Reports - Orders report - "Orders report: Extra data" option added.
  • Dev - Tools & Reports - Reports - Orders report - Code refactoring.
  • Dev - Tools & Reports - Analytics - Reports caching removed.
  • Dev - Tools & Reports - Analytics - Admin settings description updated.
  • WC tested up to: 4.3.

1.7.2 - 11/06/2020

  • Dev - Orders - General - "Order total for percentage fees" option added.
  • Dev - Extra Costs: Shipping Methods - Now checking for get_shipping_methods() method to exist before applying the fees.
  • Dev - Import - Now using translated column title in set_import_mapping_option_default().
  • Dev - Admin settings descriptions updated ("Extra Cost" to "Extra Costs").

1.7.1 - 10/06/2020

  • Fix - Orders - General - Item costs - Now always recalculating order profit and cost, even if "Item costs" is not set to "Enable".
  • Dev - Tools & Reports - Analytics - Now checking if wc_admin_is_registered_page() function exists before enqueueing the script.
  • Screenshot titles added in readme.txt.
  • Descriptions in readme.txt updated.

1.7.0 - 04/06/2020

  • Fix - Orders - Always showing correct order currency in meta boxes and columns now.
  • Fix - Payment Gateways - "Recalculate orders cost and profit" tools fixed for "refunded" orders.
  • Dev - Products - "Add stock" option added.
  • Dev - Products - "Quick and Bulk Edit" options added.
  • Dev - Orders - "Count empty cost lines" option added.
  • Dev - Orders - "Order Extra Cost: Per Order" options (handling fee, shipping fee, payment fee) added.
  • Dev - Orders - Admin Orders List Columns - All columns moved right after "Total" column.
  • Dev - Tools & Reports - Analytics - "Orders" option added.
  • Dev - Advanced - "Columns Sorting" options added (i.e. columns in "Orders" and "Products" admin lists are sortable now).
  • Dev - Admin settings restyled - "General" admin settings section split into new sections: "Products", "Orders", "Advanced"; "Tools" section renamed to "Tools & Reports" etc.
  • Dev - Sanitizing all input now.
  • Dev - Code refactoring.
  • WC tested up to: 4.2.

1.6.0 - 13/05/2020

  • Dev - Advanced Options - "Force costs update on order status change" option added.
  • Dev - Advanced Options - "Force costs update on new order item" option added.
  • Dev - Reports - Orders - "Orders report: Order status" option added.
  • Dev - Code refactoring.
  • WC tested up to: 4.1.

1.5.2 - 04/05/2020

  • Fix - Reports - Stock - Displaying products with cost and/or price below 1 now (NUMERIC replaced with DECIMAL in meta_query).
  • Dev - Reports - Stock - "Print" and "Export" admin actions added.
  • Dev - Advanced Options - "Force costs update on order update" option added.

1.5.1 - 23/04/2020

  • Dev - "Cost" column added to WooCommerce "Products > Export".
  • Dev - "Cost" column added to WooCommerce "Products > Import".

1.5.0 - 08/04/2020

  • Dev - "Extra Payment Gateway Costs" section added.
  • Dev - "Extra Shipping Method Costs" section added.
  • Dev - "Order Extra Cost" subsection added.
  • Dev - Showing "N/A" (instead of empty string) when profit can not be calculated (i.e. when product cost is empty).

1.4.8 - 01/04/2020

  • Dev - Product profit - Showing profit percent for variable products now.
  • Tested up to: 5.4.

1.4.7 - 27/03/2020

  • Fix - Tools - "plugin settings" links fixed.
  • Fix - Admin settings notices fixed.
  • Dev - Admin settings descriptions updated.
  • readme.txt description updated.
  • WC tested up to: 4.0.

1.4.6 - 09/03/2020

  • Dev - Admin Orders List Columns and Admin Products List Columns - Getting order/product ID from filter params now (i.e. instead of get_the_ID()).

1.4.5 - 18/02/2020

  • Fix - Admin Order Options - Admin notice - Now showing on single order edit page only.
  • Dev - Admin Order Options - "Item costs" option added.

1.4.4 - 18/02/2020

  • Fix - Admin Order Options - Repopulate on recalculate - check_ajax_referer() bug fixed.
  • Dev - Admin Order Options - "Admin notice" options added.
  • Dev - Settings - Tools - Descriptions updated.

1.4.3 - 03/02/2020

  • Dev - Admin Order Options - "Repopulate on recalculate" option added (defaults to no).

1.4.2 - 28/01/2020

  • Dev - Admin Order Options - "Prepopulate in AJAX" option added (defaults to yes).
  • Dev - Settings - "Admin Order Meta Box" subsection renamed to "Admin Order Options".
  • Dev - Minor code refactoring.
  • WC tested up to: 3.9.

1.4.1 - 21/01/2020

  • Dev - Additional safe checks added when getting product cost from parent product.
  • Dev - Code refactoring.

1.4.0 - 24/12/2019

  • Dev - "Admin Order Meta Box" option added.
  • Dev - Tools - Bulk Edit Costs - "Edit prices" option added.
  • Dev - Tools - Bulk Edit Costs - "Search products" option (and "Search all" value) added.
  • Dev - Admin settings split into sections ("General" and "Tools").
  • Dev - Code refactoring.
  • Tested up to: 5.3.
  • WC tested up to: 3.8.

1.3.6 - 02/10/2019

  • Dev - Tools - Bulk Edit Costs - Manage stock - "Stock update method" option added.

1.3.5 - 23/09/2019

  • Dev - Reports - Additional safe checks added (to avoid possible PHP warnings on some servers).

1.3.4 - 06/09/2019

  • Dev - Tools - Bulk Edit Costs - Better styling (modified row).
  • Dev - "WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels" plugin compatibility.
  • WC tested up to: 3.7.

1.3.3 - 04/08/2019

  • Fix - Tools - Bulk Edit Costs - Search by product title - Now searching in any part of the title (not only from the beginning).
  • Dev - Tools - Bulk Edit Costs - Better styling (active row).
  • Dev - Tools - Bulk Edit Costs - Manage stock - Trailing zeros removed from stock input.

1.3.2 - 08/07/2019

  • Dev - Tools - Bulk Edit Costs - "Search by product title" input added.
  • Dev - Tools - Bulk Edit Costs - "Stock" column added. "Manage stock" option added.
  • Dev - Tools - Bulk Edit Costs - "Price" column added.
  • Dev - Tools - Bulk Edit Costs - Restyling and minor code refactoring.
  • Dev - Reports - "Stock > Cost of goods" report added.

1.3.1 - 26/06/2019

  • Dev - Admin Orders List Columns - "Order statuses" options added.

1.3.0 - 18/06/2019

  • Dev - "Cost of goods" report added (to "Reports > Orders").

1.2.0 - 17/05/2019

  • Dev - Tools - "Bulk Edit Costs" tool added.
  • Dev - Admin settings descriptions updated etc.
  • Dev - Minor code refactoring.
  • WC tested up to: 3.6.
  • Tested up to: 5.2.

1.1.1 - 19/12/2018

  • Fix - Core - add_cost_input_shop_order() - Getting order on AJAX correctly now.

1.1.0 - 06/12/2018

  • Fix - Comma decimal separator bug fixed.
  • Dev - Profit in percent added to profit HTML output.
  • Dev - Cost meta changed from _alg_cost to _alg_wc_cog_cost.
  • Dev - Forcing cost of goods to be always set excluding taxes.
  • Dev - Saving costs as order item meta.
  • Dev - Saving total cost and profit as order meta.
  • Dev - Import Costs Tool - Code optimized.
  • Dev - Major code refactoring.
  • Dev - Plugin URI updated.
  • Pro - Dev - "Recalculate orders cost and profit for all orders" option added.
  • Pro - Dev - "Recalculate orders cost and profit for orders with no costs" option added.

1.0.1 - 17/05/2018

  • Fix - Cost not saved for simple products - bug fixed.
  • Fix - Admin settings link fixed.

1.0.0 - 10/05/2018

  • Initial Release.