Tested Updated Trending Bestseller Perfect rating Documented

Cost of Goods for WooCommerce

(8 customer reviews)

From: $29.99 / year

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

$29.99 Single site1 year of updates and support30-day money-back guaranteeBuy
$79.99 Unlimited sites1 year of updates and support30-day money-back guaranteeBuy
$149.99Unlimited sitesLifetime updates and support30-day money-back guaranteeBuy
Clear

Description

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

8 reviews for Cost of Goods for WooCommerce

  1. blank

    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.

  2. blank

    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

  3. blank

    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

  4. blank

    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.

  5. blank

    Ahmad Chehade

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

  6. blank

    Lucas

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

  7. blank

    numanzahid (verified owner)

    Great Plugin. Really what I needed.

  8. blank

    benye

    Great plugin! Great support!

Add a review

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

178 thoughts on "Cost of Goods for WooCommerce"

  1. Hello, I need an information: I see that with WooCommerce native import function is possible to import Cost into Products.
    I made it but all other datas are overwrite…and this is not good for me.
    Is there a way to import ONLY Cost into its label, without change all other fields?
    Thanks.
    Max.

  2. HI
    One of the last update deleted the cost price content from all my 2000 products. I have no idea how it happened, I do not know when it was, do you know this problem?
    Thanks Benny

    1. We are working with the bulk edit plugin, And fill in the fields in a tabular form, it is simple and easy to edit a product in this way. We do not monitor the data on a daily basis.

      In the last week we have uploaded new products, to my surprise I discovered that the previous cost price data products are missing, How can I ensure this does not happen in the future.

      Of course we can recover the deleted data, the plugin has the option to work with a formula, but it is very frustrating to meet in such a case, especially since we are constantly uploading new products
      Thanks again

    2. Hi Benjamin,

      I’m really sorry to hear it. This is the first time we receive such feedback.
      Maybe some other admin user was editing the page at the same time and clicked on “Save all” overwriting the settings?

      What we have received so far is related to timeout issues. Users with a high number of products might have this problem.

      We have plans for improving this tool page soon, probably adding a pagination for a start

    3. Hi
      Thank you for the fast reaply.

      1. No other admin did it, I am the only admin with editing responsibility, This option is not possible. I am very professional and know what I doing (-: Realy.

      2. Anyway this case is very strange. I’m glad I’m just reporting such this case.

      3. I will now pay more attention to plugin future updates, to see if the update has adversely changed the content.
      This amazing plugin
      Thank

  3. I sell fruits and vegetables to retail customers, and buy much of the products from wholesale vegetable distributers. I very often have significant depreciation costs of vegetables and fruits that I buy from wholesalers but I have not sold, since they don’t last for more than a few days.

    Can this cost somehow be recorded in your system?

    Thanks,

    1. Hi Alon,

      I’m afraid it’s not possible for now.
      Anyway, would you have some suggestion of how you’d like it to work?

  4. Hey, we have installed this plugin but when we click save the cost disappears from the box and doesn’t seem to be working?

    1. Hi Kate,
      If you’re trying the free plugin, please use the wp.org forums:
      https://wordpress.org/support/plugin/cost-of-goods-for-woocommerce/

      Anyway, can you please elaborate the question, maybe with some screenshot if possible? What box are you referring to?

  5. i need to update my orders with new cost but i got a 504 Gateway Timeout Error.
    I send mem to 2048 and higher but still the error.
    Suggestions??

    1. Hello,
      Are you trying to use the “Recalculate orders cost and profit” option?
      If that’s the case, please try to:
      – Set “Cost of Goods > Advanced > Background processing > Minimum amount” to 20

      And if it doesn’t work try to decrease it even further to 10.
      Let me know if it helps 😉

  6. Hello there,
    I have a need that I think could be shared with a lot of users.

    I have different packagings options with different costs:
    3 Item Package
    6 Item Package

    I wonder if I could save and manage different cost for this different packaging when I edit an order from the admin of WooCommerce.

    It would be really a game changer. This costs ARE NOT shipping costs, but “handling” fees related to the used package.

    1. Hi Andrea,
      Sorry for the delay.

      We have some options that maybe can help you. Please check the section “Extra Costs: Per Order” located at:
      – Cost of Goods settings > Orders

      Let me know if it helps 😉

    2. Hello there, thanks for the answer.
      I’ve already seen those options.
      I would like to create some presets, otherwise I have to type in manually into every order.

      I’m using Woo from the admin/be, not linked to an actual FE public website.

    3. Hi,
      This cost would be calculated based on the number of items or quantity of items?
      We were thinking of allowing the cost field to be calculated dynamically.
      For example:
      Cost = 5 * [quantity]

      Do you think it could help you or would you have another suggestion?

  7. I have a problem when using currency per product feature (from the Booster for Woocommerce plugin) with your plugin.
    My site’s main currency is Iraqi Dinar (IQD), and I have some products sold in USD. When setting the cost of goods for these said products, it clearly states that I should fill the cost in USD. However, your plugin deals with the cost as IQD in all order costs/profits calculations. I hope you can help me with this, as it practically makes this plugin unusable for me.

    1. Hi Aktham,
      We’re working on this issue. Probably the next version will have it fixed. As soon as we find a solution we’ll let you know.

  8. HI, i just purchased the plugin. The Tab Profit in Analytics is not showing. Can you help me?

    1. Hi Julia,
      What tab are you referring to?
      The only thing we are adding to “Analytics > orders” so far is a couple of columns (Cost and profit)

    2. The only thing we are adding to “Analytics > orders” so far is a couple of columns (Cost and profit)

      Yes thats what i´m missing.

    3. Hum,
      When you are accessing “Analytics > Orders” you can’t see any orders or just the columns?

      Anyway, please try to access:
      – WooCommerce > Status > Tools and click on “Clear Analytics Cache”

      And let me know if it works 😉

    4. Hum,
      When you are accessing “Analytics > Orders” you can’t see any orders or just the columns?

      Anyway, please try to access:
      – WooCommerce > Status > Tools and click on “Clear Analytics Cache”

      And let me know if it works 😉

      Hi, i did clear the cache. Still the same. I miss the Colums next to Orders, Clients, Stock and Tax…like Costs and Profit.

    5. Hi, i did clear the cache. Still the same. I miss the Colums next to Orders, Clients, Stock and Tax…like Costs and Profit.

    6. Hi Julia,
      Maybe you’re just looking at the wrong place. Please, take a look at this screenshot:
      https://ibb.co/wNPVFvw

      This is where we’re adding the new columns at “Analytics > Orders”.
      This is where you’ve been looking?

      And just to make sure, can you please confirm that you enabled the “COG Settings > Tools & Reports > Analytics > Orders”?

    7. Thats not what i ment.

      This is missing from you documentaion:

      Profit by Date
      All profit by date reports will allow you to see your net sales (minus costs you’ve excluded), total cost of goods, total profit, and average profit per order for the selected time span. Hovering over an overview on the left side will highlight the correct portion of the graph.

      WooCommerce Cost of Goods Profit by date
      Profit by Date report

      Profit by Product
      All profit by product reports will allow you to see your net sales (minus costs you’ve excluded) for the item, total costs for the item, total item profit, and total item purchases for the selected time span.

      In order to view a report, you must select a product in the “Product Search” section. Hovering over an overview on the left side will highlight the correct portion of the graph.

      WooCommerce Cost of Goods Profit by product
      Profit by Product report
      The profit by product reporting section also has a helpful, adjustable widget that will show you most profitable and least profitable sellers for your given time span. You can switch between “most profitable” and “least profitable” product lists by clicking the action in the bottom right of the widget.

      WooCommerce Cost of Goods most profitable products widget
      Most Profitable Products

      WooCommerce Cost of Goods least profitable products widget
      Least Profitable Products

      Profit by Category
      All profit by category reports will show you total profit for each selected category within your given time span. Hovering over an overview on the left side will highlight the correct portion of the graph.

      WooCommerce Cost of Goods Profit by category
      Profit by Category report
      If you select a parent category (such as “Clothing”), the total profit for this category will include the sum of profit for products within this category along with those in child categories (such as “Hoodies” or “Tee shirts”).

    8. Hi Julia,
      Probably we are just talking about different things.
      We only have reports in three different areas:

      1. Analytics > Orders
      2. WooCommerce > Reports > Orders > Cost of goods
      3. WooCommerce > Reports > Stock > Cost of goods

      The text you pasted is from another plugin

  9. Hi bought the plug in cost of goode a few hoursago and translatedit to germanlanguage. My proböem is, that the backend woocommerce settings rider for cost of goods ist already in english, the field labels in the products backend too. I did the same thing I ever did. Do you have a hint? Thank you

    1. Hi Ellen,
      Maybe if you simply try to use the option:
      – Reset section settings

      It will work. Please just try to think about making backup of your settings first, if you wish 😉

      Let me know if it works

    2. Sorry but it don’t work. Language on Your cost tap in woocommerce settings is still english just like befor but german. I translated german pot pos file to 100%. Do you hav another idea?
      Greetings from Germany

  10. We have an issue where when we loog at the stock report, a lot of the products has a regular price of 0, some work but more than half doesn’t display the regular price… and of course the products has a regular price…

    1. Hello Karina,
      Can you please provide access to your site sending the info to [email protected]?
      If possible, please try to send some screenshot too

  11. Hi,
    I am using this plugin and it seems to work well in the dashboard. I am having an issue though. I cant get the cost and profit to show up on the downloaded CSV file when I go to Analytics-Orders . I see the three dots and the cost and profit is selected so it should be downloading but is not. Am I missing something?

    1. Hi Jonathan,

      You are correct, I’ve just checked – cost and profit are not added to the CSV for some reason. Let me check the code. Will get back to you asap.

    2. Got a fix yet?

    3. Hi Jonathan,

      I’ve just sent you our newest dev version for testing via email.

  12. I have entered my cost of goods. I received an order and the net sale amount is calculated correctly in the order detail page but on the Analytics page, it is not correct. It is showing the order total sale for the net sale amount.

    Can I send you credentials to take a look?

    1. Hi Julie,
      Yes, sure, please send them to [email protected]

  13. Hi Tom,

    Presale questions before I get the Pro version.

    1. the cost of good of my products varies every quarter due to currency fluctuation and purchase price. When I install the plugin for the first time and enter a COG for all my SKUs, understandably it will work for all past orders. However, when my price change and I edit new COG on certain products, my historical (past COG) should not change. Only new orders reflecting the new COG should be counted. Is this correct?
    In other words, every order needs to capture the COG at time of order placed, so that historical profit will remain as is. (e.g past profit won’t change when the COG gets updated)

    2. I have multiple currencies, so the COG should adjust currencies COG/Profit to my base shop currency I assume?

    3. Is there an option to add a “Monthly Ad Spend” cost (custom post is ok) so that your WC COG report can show monthly ad spend and the Profit graph to deduct this Monthly Ad Spend too?
    This is very important for ecommerce stores and it will be a big win for you to pitch clients as I dont see a simple plugin doing this.

    Thanks

    1. I am testing your free version. The cost for my bundle was multiplied by 2. Will you be able to check before i purchase?

    2. I found the solution on the bundle setting to prevent double count.
      Now, the currency for COG is not reflected correctly. The COG still uses the base currency even though the purchase currency was a different one.

    3. Hi,

      1. Order profit calculation – the plugin works in such way that it will apply current product costs when calculating profit for a new order. That is, if, for example, some product’s cost of goods is $10 when new order is made, the plugin will calculate order profit based on $10. If after that you will change the product’s cost of goods, let’s say to $15, then, when another order is made, the plugin will calculate order profit based on $15. Profit for old orders will remain unchanged (i.e. based on $10). As for the older orders, made, for example, before the plugin was installed – by default profit for those orders will be unset, and you’ll have to run our “Recalculate orders cost and profit” tool (available in Pro version of the plugin only), which will calculate profit for all orders at once. You will have to run this tool only once.

      2. Currencies – unfortunately, currently the plugin will ignore the order currency, and will apply same product cost of goods. However, this is on my todo list for some time already, so I could try to implement it now. I’m thinking about adding “currency exchange rates” section, where you would set currency pairs conversion rates. I.e. you wouldn’t have to set product cost of goods in different currencies manually, and plugin would convert it to the base currency automatically instead, i.e. based on currency exchange rates multipliers.

      3. Monthly ad spend – there is “Extra Costs: All Orders” section in plugin (in “WooCommerce > Settings > Cost of Goods > Orders”), where you can set fixed or percentage extra costs for each order. In other words, this would give you the approximate value. For example, if your monthly ad budget is $300 and you have 200 orders per month on average, you could set “Extra Costs: All Orders > Fixed cost” option to $1.5 (i.e. $300 / 200).

      Please let me know what you think.

    4. Hi Tom,

      Thanks for the reply.

      1. Understood. It will work for me.
      2. Currencies – Great. How soon can this be implemented?
      3. Monthly ad spend. Monthly ad spend can’t be divided per item basis, although forcibly it can be taken that way. Will this be monthly based, example, the ad spend for Jul and Aug is different and it will only be known at the end of the month (final ad spend and final unit sold or percentage of revenue). Ideally, if there is a line/bar graph in WC Report/Analytics for ad spend alone (or you can name it any monthly overhead cost), I am sure yours will be unique, as I cant find any except on an accounting report like Xero (too granular and tedious, as folks just want to have a glance of how they are faring every month from top level)

      I will purchase if you can let me know the answers above.

    5. I will buy this plugin now in good faith hoping the currency issue can be resolved.

      Hopefully, it will be in a week’s time. When that happens, I can recalculate back orders using the new currency conversion function.

      I hope it works for bundles too. I will purchase now.

    6. I chose the wrong option. I wanted lifetime licence for 1 site. But mistakenly chose a yearly auto subscription. How do i change it?

    7. Please contact us on [email protected].

    8. Currencies – basically it’s already done. Just needs some final testing and I’m ready to release.

      It’s a bit more complicated with “monthly ad spend” – currently all calculations are done on per order basis, so I’d have to figure out how to squeeze monthly values there…

    9. I am super impressed by the speed Tom adjusts his plugin to my requirement and responds to feature requests. I was sceptical at first but I am so happy I bought this plugin over the more pricey COG plugin sold at official WC store. And he is making this sync with multi currency which everyone should pay attention to when getting a COG plugin.

  14. Hello,
    I am trying this plug-in with the free version. I want to bulk edit the costs, but when I save my work, it doesn’t work, and I have an error message (error 500).

    1. Hi Ezo,

      Could you please let me know how many products do you have on your site? Also, maybe it would be possible for me to login to your site to check what’s going on (my email is [email protected])? Please let me know if sharing an account is not an option, and I will continue solving it remotely

  15. Hello, when deactivating the plugin, the costs of the products appear in the orders below the SKU, with the code: _alg_wc_cog_item_cost: 0.50.
    I do not want the costs to be seen in the order

    1. Hi Paul,

      To hide it you will need to add this snippet to your (child) theme’s functions.php file:

      add_filter( 'woocommerce_hidden_order_itemmeta', 'my_alg_wc_cog_hide_order_cost_meta', PHP_INT_MAX );
      if ( ! function_exists( 'my_alg_wc_cog_hide_order_cost_meta' ) ) {
          function my_alg_wc_cog_hide_order_cost_meta( $meta_keys ) {
              $meta_keys[] = '_alg_wc_cog_item_cost';
              return $meta_keys;
          }
      }

      Hope that helps. Please let me know if you have any questions.

    2. I do not know how to do it, could you help me please

    3. Hi Paul,

      Sure. I would need to log in to your site though (my email is [email protected]).

    4. Thank you, I sent you an email. I deactivate the plugin momentarily because I don’t want the other managers of my store to see the costs and reports. By some way to hide it for the users “store managers” and only the “administrator” can see it.

  16. Hi,

    I have installed the plugin but from what I can see it isn’t calculating profit correctly, I have a cost of £12.32 and a sale of £14.69 with £1.66 VAT but in profit, it says -£4.00.

    Thanks,
    Harris

    1. Hi Harris,

      Would it be possible for me to log in to your site to check what’s going on (my email is [email protected])? If sharing an account is not an option – maybe you could send me the screenshot of your order edit page? Also, there is “Cost of Goods” meta box on order edit page – what does it say? Does it have “Cost details” section?

  17. Dear,

    I have just purchased the pro version but somehow it’s not activated and is still used as the free version. This after uploading the files as received in the zip file. How do I now activate the pro version please?

    Thanks

    1. Nevermind 🙂

    2. Glad you’ve figured it out. If anyone else has a similar question – you need to install zip via your admin dashboard, in “Plugins > Add New > Upload Plugin”. Then activate the Pro plugin (again in the “Plugins” menu).

      P.S. The free version is not required if you have Pro, i.e. you can deactivate/delete it.

  18. Hi Tom
    I need to add an Extra Payment Gateway Costs percentage to any purchase for PayPal Checkout only.
    Where is the best place to set it up?
    1. Here: https://1drv.ms/u/s!AlJM7dNlHfVYoLVvsrnClf_IFWbhSw?e=sIdo3V
    2. Or here: https://1drv.ms/u/s!AlJM7dNlHfVYoLVsPLUvS7VDljQsaA?e=XZWWdE

    If it is in 2 what Meta key per line I need to add, For paypal?
    Really I didn’t understand the difference between the 2 extra paypal fees
    Thanks Benny

    1. Hi Benny,

      If you add it to (1) (i.e. “WooCommerce > Settings > Cost of Goods > Extra Costs: Payment Gateways”), you will get an approximate fee value, e.g. 5% for each order.

      If you add it to (2) (i.e. “WooCommerce > Settings > Cost of Goods > Orders > Extra Costs: From Meta”), you will get the exact value that is automatically sent to WooCommerce by e.g. PayPal. For PayPal, you should set the option to (I know it doesn’t look like a proper meta key, but it is how PayPal fees are saved in WooCommerce):

      PayPal Transaction Fee

      To sum up – you should use either (1) or (2), otherwise, you will get a 5% + PayPal fee, which is not what you need probably.

      Hope that helps. Please let me know if you have any questions.

  19. Unrelated to my previous issues (which you are, or have, addressed), there is a request that would make this plugin 5 stars for us….

    Can you add the order profit to the “orders export” that is native to Woocommerce? This way we can easily report on profits. Without this, the profit numbers are anecdotal as we can just “look” at the orders tab to see “about” what we are making, but no way to really report on it.

    1. Hi Chris,

      Not sure if I understood you correctly, but if you go to “WooCommerce > Reports > Orders > Cost of goods”, you will be able to see the profit and costs report. And if you click “Export CSV” there, you will get profit and costs data in the CSV file. Is that what you need?

      * This report is available in Pro version only.

  20. Hi,

    I can see the ‘cost’ box in simple orders, but not in bookable orders (Woocommerce Bookings). How can we add the costs here?

    Thanks!

    1. Hi Ruben,

      To be honest, I didn’t test it with the WooCommerce Bookings plugin. Could you please send plugin zip to me ([email protected]), or if that’s an option – share access to your server with Bookings plugin installed?

    2. If anyone else is interested – we’ve added “Bookable” products (i.e. “WooCommerce Bookings” plugin) support in our plugin’s v2.1.0.

  21. Hello Sir,

    RE: Cost of Goods for WooCommerce

    I have questions before buying your plugin.

    1) Is it possible to add extra field for each order by manually input the value as part of Cost of goods Sold? See screenshot: https://ibb.co/6ZYcYCR

    2) And Display in report: https://ibb.co/nQkjgfD

    Please advise. Thanks in advance!

    1. Hi Mike,

      1. Extra field to manually add the shipping expenses – I believe what you need are “Extra Costs: Per Order” options in “WooCommerce > Settings > Cost of Goods > Orders”.

      2. Display it in the report – already working on it. Will be added in the next plugin version. It’s planned to be released this week.

      As for automatically subtracting the PayPal fee from order profit – this is not done yet, however, I will try to add it to the plugin as well. Meanwhile, you can use the “Payment fee” option in the same “Extra Costs: Per Order” section, however, you will have to manually enter the fee for now.

      Hope that helps. Please let me know if you have any questions.

    2. Hi Mike,

      As promised, we’ve just released new plugin v2.0.0, where you can add more data (including “Per Order” fees) to the report. You need to go to “WooCommerce > Settings > Cost of Goods > Tools & Reports > Reports” and select “Per order fees: Shipping” in “Orders report: Extra data” option. Please give it a try and let me know if there are any issues.

      Also, in current plugin v2.0.0, we’ve added new “Extra Costs: From Meta” section to “WooCommerce > Settings > Cost of Goods > Orders”. This will allow you to automatically add PayPal fees to the order costs.

      Please let me know if you have any questions. And if you like the plugin, please consider leaving me a rating.

  22. got a 500 error when i want to update and recalculate.

  23. Hello

    Can we add a field to WooCommerce orders so we can add shipping & transaction fees to a particular order?

    For us a flat rate shipping cost doesnt really work…it would be better to enter it in manually for each order.

    Thanks

    1. Hello Tom, have you got a reply on this questions?

      THanks

    2. Hi Dwayne,

      Sorry for the late reply.

      Not sure if I understood it correctly, but I believe what you need is “Extra Costs: Per Order” options in “WooCommerce > Settings > Cost of Goods > Orders”. When enabled, it will add input fields to each order admin edit page, as you’ve described. Please let me know if that’s not it.

  24. Hi Tom
    I understand your plugin is designed for only one cost price field, And it works great, so flexible, really efficient.
    I have a question and I hope you can help me. Is it possible to add another product cost field? Or do you have an idea how I can do this?
    Our problem is that we have 2 cost prices: vendor and agent, how can we solve this? We will be happy for ideas
    Thanks Benny

  25. Another issue – the net and gross numbers in woocommerce reports doesn’t seem to account for your costs/profits. This is the key reason we wanted this data – for reporting.

  26. It doesn’t appear that the profit calculation is adding what we’ve captured for shipping.

    We charge a flat $3.99 for shipping. Sometimes we make money, sometimes we lose, but the $3.99 was captured and needs to be added to total profit.

    Also, is there a way to have the Woocommerce shipping services functionality auto update the shipping cost on an order?

    1. It looks like if you add the following line to incudes/tools/class-alg-wc-cost-of-goods-core.php in between line 573 and 574 (create a new line):

      $profit += $order->get_shipping_total();

      that is all it needs. You may want to make this an option though (EG, “Add shipping total as profit” in shipping settings)

    2. sorry that file location was incorrect – it is just:

      includes/class-alg-wc-cost-of-goods-core.php after line 573

    3. Hi

      Was this fixed – I’m testing the plugin, and noticed that its the only thing missing as we do the same an calculate Sales revenue including the shipping price.

    4. Hi,

      Sorry for the late reply.

      Generally, shipping shouldn’t be included in profit calculations, as profit = items price – items cost, so as shipping is not included in “items cost”, it shouldn’t be included in “items price”. However, I can see that this could be a useful feature for some of our plugin users, so please give me a couple of hours to add it to the plugin. As suggested, I’m going to make it optional. Will get back to you shortly…

    5. Hi again,

      As promised, we’ve just released new plugin v2.0.0, where I’ve added new “Shipping to profit” checkbox option to “WooCommerce > Settings > Cost of Goods > Orders > General Options”. Please give it a try and let me know if there are any issues. By the way, I’ve realized that this could be done even with a previous plugin version. It’s a bit of a workaround though – you could set “Fixed cost” option(s) in “WooCommerce > Settings > Cost of Goods > Extra Costs: Shipping Methods” to a negative value, e.g. -3.99.

      Please let me know if you have any questions. And if you like the plugin, please consider leaving me a rating.

    6. “Generally, shipping shouldn’t be included in profit calculations, as profit”

      It definitely needs to be for a lot of use cases, but I see you are adding this in as an option, so problem solved!

    7. “…so as shipping is not included in “items cost”, it shouldn’t be included in “items price”.”

      We actually add the cost of shipping to our order cost via the override. Our store offers free shipping above a threshold, and dynamic shipping below, so we need to know what our total profit per order was.

      In fact, I would LOVE LOVE LOVE LOVE if you would include an option to take the shipping costs from Woocommerce Services (when you print a label with them) and auto-add it to the order shipping cost automatically.

    8. “… you could set “Fixed cost” option(s) in “WooCommerce > Settings > Cost of Goods > Extra Costs: Shipping Methods” to a negative value, e.g. -3.99.”

      We actually were thinking of doing just that, but what we charge is dynamic (free over a threshold), so it doesn’t apply across the board.

      And the actual cost varies as well, hence the request for Woocommerce Services shipping label cost to auto-add to the order fixed cost override meta.

      Thanks!

  27. Hello – I love the plugin but noticed that when I process a refund, the profit on that order isn’t re-calculated.

    1. Hi Gavin,

      Thank you.

      Not sure if I understood it correctly. Are you referring to a full or partial refund? If it’s full refund – do you mean that you need order profit and/or cost to be set to zero then?

      P.S. You can disable order profit and/or cost column display in Orders list for refunded orders – there is “Order statuses” option in “WooCommerce > Settings > Cost of Goods > Orders > Admin Orders List Columns”.

    2. Hi Tom – well both types of refund, of course, but I’ve noticed with partial refunds the profit doesn’t adjust accordingly. It would actually be good to be able to control the order cost field at the same time the refund is processed because sometimes we offer a partial refund and take the hit to our profit but sometimes this is fully covered by our suppliers.

      Thanks,
      Gavin

  28. Hi. If i buy the PRo version, do I get to include Cost and Profit in the CSV report (right now with the standard version I cant)?

  29. I was wondering how I would add a custom cost to each order if it changes based on the order. for example if an order qualifies for free shipping I would incur a cost sending it by UPS how would I capture the UPS shipping charge in an orders cost? keep in mind the amount can change based on the order and I cannot just use a percentage factor

  30. Good afternoon, you installed the plugin, but at the time of entering Reports, the Cost of Goods option does not appear

    Saludos,

    1. Hi,

      There should be two reports:

      1. “Reports > Orders > Cost of Goods” (e.g. https://wpfactory.com/wp-content/uploads/Cost-of-Goods-for-WooCommerce-Orders-Report-v1.3.0.png), and
      2. “Reports > Stock > Cost of Goods” (e.g. https://wpfactory.com/wp-content/uploads/Cost-of-Goods-for-WooCommerce-Reports-Stock-v1.3.2.png).

      If they are not there – maybe it would possible for me to log in to your site to check what’s going on (my email is [email protected])?

      P.S. Both reports are available in Pro version only.

  31. Hi,
    I would like to know if I could move the Cost and Profit Column from the end where it shows now to lets say after Total (order-total) in woocommerce order list?

    1. Hi Juan,

      Sorry for the late reply.

      Thanks for pointing this out – this indeed seems like a better place for the columns. Please update the plugin to the latest v1.7.0 – I’ve moved all our columns right after the “Total” column now.

      Please take a look and let me know if something is not working as expected.

      P.S. I’ve also made our columns sortable now.

      P.P.S. If you like the plugin, please consider leaving me a rating.

  32. Hi,
    I want to know that the Woocommerce has changed his reporting system. Is there any change in your reporting system . Mean you also support their new reporting system. Because screenshot attached with your product detail seems old. So can you provide a new screenshot if you support woo-commerce latest reporting system .Woocommerce Admin

    1. Hi Hardik,

      Sorry for the late reply.

      We are working on it. If you update the plugin to the latest v1.7.0, then go to “WooCommerce > Settings > Cost of Goods > Tools & Reports” and enable the “Orders” checkbox in “Analytics” settings section, then “Cost” and “Profit” columns will be added to the “Analytics > Orders” table. You can check the screenshot here. I understand this is not much, and we will be working further on adding more “Cost of Goods” data to the “Analytics”.

  33. I need to know if I can add percentage cost to base prices by categories.
    When I import the csv file with products and prices I need to add the percentage cost in automatic (performed before) by categories.

    1. Hi,

      Unfortunately this is not possible at the moment. However, let me try to include it in the next version. I’m thinking to make a new tool to set the cost of goods per category for existing products though (i.e. instead of doing that during the import).

  34. Hi,

    When i try to Recalculate orders cost and profit for all orders it comes up with the following error.
    what could be wrong?

    Fatal error: Uncaught Error: Call to undefined method Automattic\WooCommerce\Admin\Overrides\OrderRefund::get_payment_method() in /var/www/fritrolderi.dk/public_html/wp-content/plugins/cost-of-goods-for-woocommerce-pro/includes/class-alg-wc-cost-of-goods-core.php:364 Stack trace: #0 /var/www/fritrolderi.dk/public_html/wp-content/plugins/cost-of-goods-for-woocommerce-pro/includes/pro/class-alg-wc-cost-of-goods-pro.php(115): Alg_WC_Cost_of_Goods_Core->update_order_items_costs(8667, true, false) #1 /var/www/fritrolderi.dk/public_html/wp-includes/class-wp-hook.php(288): Alg_WC_Cost_of_Goods_Pro->recalculate_orders_cost_and_profit(‘tools’) #2 /var/www/fritrolderi.dk/public_html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(”, Array) #3 /var/www/fritrolderi.dk/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #4 /var/www/fritrolderi.dk/public_html/wp-content/plugins/cost-of-goods-for-woocommerce-pro/includes/settings/class-alg-wc-settings-cost-of-goods.php(108): do_action(‘alg_wc_cog_save…’, ‘to in /var/www/fritrolderi.dk/public_html/wp-content/plugins/cost-of-goods-for-woocommerce-pro/includes/class-alg-wc-cost-of-goods-core.php on line 364

    1. Hi,

      Sorry for the late reply.

      From the error message – it looks like this is related to our “Extra Payment Gateway Costs” section (there should be no errors if you disable it). I will be fixing that asap.

    2. Hi,

      I’ve just sent you our newest development version via email. The issue should be fixed now. Please give it a try. And please let me know if you have any questions.

    3. If anyone else has a similar problem – this is fixed in plugin v1.7.0.

  35. Hi,
    I am testing out the free version and its great. Could you advise if the following is possible? We are not VAT registered but we buy from VAT registered companies. As a result we would like to input our cost of of goods ex taxes (VAT in this case) as all our suppliers give prices ex tax. In other words is it possible (I can do a little custom coding) to check tax status of the product and if has tax then apply that to the cost of goods? Hope this makes sense.
    Thanks,

    1. Hi Robbie,

      Sorry for such a late reply.

      Currently the plugin always requires you to enter the cost of goods excluding tax. And when it calculates product’s profit, it will automatically take product’s price excluding tax (if there are any applicable taxes for the product). So basically we are always excluding tax from all the calculations. Please let me know if that’s not good enough.

    2. Hi Tom,
      Thanks for the reply – makes sense. I guess I would like to be able to disable Tax at the woocommerce level (as we dont pay the VAT) but still add VAT to the cost of good (if product has tax class) for profit calculations.
      So something like:
      – cost of Product A is 10 (ex VAT) as quoted from supplier.
      – actual cost to us 10 plus VAT ie 11.5
      – we sell it for 20 but pay no VAT
      – profit calc would be 8.5 but if we disable taxes it will be 10.
      So would it be a major recoding effort to say something like:
      if product has Tax Class = zero-rate then
      profit is regular price – cost of goods
      else
      profit is regular price – cost of goods +tax amount
      Hope that makes some sense – maybe there is a super simple way around it that I am missing.
      Thanks again

  36. Hi There,

    I see that you are able to add a Extra “Handling Fee” and “Shipping Fee” (Fixed or Percentage Fee) to every Order in the Settings section. However, is there a feature or a way to add a Extra “Handling Fee” and “Shipping Fee” for each Individual Order instead of every Order? Every Order has a different “Handling Fee” and “Shipping Fee”, so its hard to set 1 Fixed Fee or Percentage Fee for every order. Thanks.

    1. Hi Tony,

      Sorry for such a late reply.

      This is not possible at the moment, but should be quite easy to add to the plugin. Let me try to include it in the next version.

    2. If anyone else has similar requirements – we’ve added “Extra Costs: Per Order” in plugin v1.7.0 (settings are in “WooCommerce > Settings > Cost of Goods > Orders”).

  37. Hello,
    I set all my last orders since one month with the free version, I just bought the pro version but the stats are not accurate, only few orders seems to be calculated, what is your advice about checking my setup please ?

    1. Ok it just don’t take orders with custom status, how to integrate them please ?

    2. My mistake, I forgot to check in custom status to be included in the report 😉

    3. Hi, Yannick,

      Glad to hear that you’ve figured out. Please let me know if you need anything else.

      In case anyone else has a similar question – you can include (custom) order statuses to be used in the report in “WooCommerce > Settings > Cost of Goods > Reports > Orders report: Order status” (option is available since the plugin v1.6.0).

  38. Hi, I bought your Cost of goods plugin,
    When I make sales through the POS POS, the item cost report does not appear, if I make a test purchase through the web, it does.
    You can help.

    1. Sorry I mean POS TPV

    2. Hi Miguel,

      Sorry for such a late reply.

      Let me try to add some new features to the plugin for this. I will get back to you asap.

    3. Hi Miguel,

      Could you please update the plugin to the latest v1.6.0 (released today) and try if POS orders are ok now.

      If it still not showing the costs – could you please try enabling one of these options (all in “WooCommerce > Settings > Cost of Goods > Advanced Options”):

      * Force costs update on order update
      * Force costs update on order status change
      * Force costs update on new order item

      Please let me know if that helps.

  39. Hi Tom! First of all, congrats by this great plugin. To be perfect… one question: it will have reports on new WooCommerce Statistics Board?

    At this moment the old wc-reports show me all orders. I only want to see payed orders on calcs.

    Thanks

    1. Hi Bruno,

      Sorry for such a late reply.

      If you mean reports in the new WooCommerce “Analytics”, then yes, we are already working on it. I will let you know as soon as we add it to the plugin.

    2. P.S. As for “… I only want to see payed orders on calcs…” – as far as I can remember, the “old” sales report includes completed, processing, on-hold and refunded orders. I will check if I can make this customizable. Will get back to you asap about this.

    3. Hi Tom,

      Yes, i refer to the new “Analytics” 🙂 Will wait for update as soon as possible.

      I know that “old” sales report include all status… but for real cost of goods i just want to view your plugin value on only Status when order is payed. I i appreciate if you can see that for me please. Thanks and keep with the good work.

    4. Hi Bruno,

      As promised, we’ve just released new plugin v1.6.0, where I’ve added “Orders report: Order status” option (it’s in “WooCommerce > Settings > Cost of Goods > Reports”). So now you can set which order statuses should be included in the “Orders > Cost of Goods” report. Could you please give it a try and let me know in case if something is not working as expected.

      P.S. “Analytics” is still in progress. I will get back to you about this.

      P.P.S. If you like the plugin, please consider leaving me a rating.

    5. Hi Tom,

      Thanks for you very fast update 🙂 For now, in page you refer not appearing that options after update. Only this: https://imgur.com/8tT5cps

    6. Hi Bruno,

      From the screenshot it looks like it’s not the latest version of the plugin. Could you please recheck if it says v1.6.0 on your “Plugins” page?

    7. Sorry, forgot to update the pro version! Now the plugin appears PERFECT! Thanks, great update this one 🙂

    8. Happy to hear this one is solved! 🙂

  40. Hi Tom,

    So first, thank you for making your plugins affordable.

    I just purchased the cost for goods one so I can access the reports, I did the recalculate option and got the “Orders cost and profit successfully recalculated.” confirmation, however, in the reports, both costs and profits show as zero. It works on individual products but not on the reports. Could you help please?

    Website is jacksmillpantry.co.uk
    If you send me a private email, I can send you logins for you to access the backend as I am sure it’ll be easier for you.

    1. just saw your email below so sending you logins there.

    2. Just added you as admin on the site so you should have received an email with all infos to login.

    3. Nevermind. Cleared the cache and it worked.
      Thanks, great plugin!

    4. Hi Blandine,

      Glad you’ve figured it out. Please let me know if you need anything else.

      P.S. If you like the plugin, please consider leaving me a rating.

  41. Hi Tom! I’ve installed the pro version of the COGS plug-in. When I check the boxes to “Recalculate orders cost and profit for all orders”, I get a fatal error. I can send you that screenshot if needed. Can you advise?

    Thank you!

    1. Hi Katie,

      If possible, please share an admin account to your site, so I could log in and check what’s going on (my email is [email protected]). Please let me know if sharing an account is not an option, and I will continue solving it remotely.

      By the way – how many orders do you have in your shop?

  42. Hi,

    My profit and costs is not in my overview.
    It stays 0.00.

    Can you help me out please?

    I did try to empty the caches and do recalculate on tools and the repop.

    1. Hi Peter,

      If possible, please share an admin account to your site, so I could log in and check what’s going on (my email is [email protected]). Please let me know if sharing an account is not an option, and I will continue solving it remotely.

  43. Hey,

    I can’t manage to bulk edit cost prices.
    can you please advise how to do so?

    Thanks,
    Reef.

    1. Hi,

      Sorry for the late reply.

      Generally, our tool is located in “Tools > Bulk Edit Costs” in your admin area, but, I suppose, you already checked that? Are you having any issues? If so – are there any (error) messages?

  44. Hi Tom,

    I just wondered if this is compatible with WooCommerce 4.0?

    Thanks, Keith

    1. Hi Keith,

      As far as I tested everything is working fine with WC 4.0.

    2. Hi,

      I cannot add any more costs in the bulk edit section.
      I type them in, click save all and nothing saves?

    3. It worked for the first 430 or so but wont save for any after that

    4. Hi Samuel,

      Maybe it would be possible for me to log in to your site to check it out? And FTP access would also help. How many products do you have on your site?

      Just to be sure – is your question related to the original Keith’s thread about the compatibility with WooCommerce v4.0?

  45. Hi Tom,
    I have an issue – only maybe related to your plugin,
    All worked fine and all plugins are up to date, but suddenly, when setting regular price to all variation to a new product, we need to verify twice about saving changes but most times only some or none of the variations get update with the price, same for sale price, and only when cancelling the request to save changes the prices get updated. and I think (humbly) its related to the cost of goods plugin cause before we had it install in the past we did not get requested to save changes when setting regular price.
    do you think its related to you?
    If im wrong – sorry to bother.
    Thanks,

    1. Hi Lior,

      Could you please let me know if the issue is still there if you disable our plugin?

    2. Hi Tom,

      When disabling your plugin the issue is fixed.

    3. Hi Lior,

      Ok. Could you please try disabling “Prepopulate in AJAX” and then “Repopulate on recalculate” options in plugin settings and let me know if disabling any of them makes any difference?

    4. Hi Tom,

      I disabled “Prepopulate in AJAX” that was already checked, and the issue is still there,
      “Repopulate on recalculate” was already disabled, so I didn’t enable it.
      Maybe I can try something else?
      Thx

    5. Hi Lior,

      Hmm… Maybe I can log in to your site to check it out (my email is [email protected])? And just to be sure – you are using the latest plugin v1.4.5?

  46. In case payment is not made at the time of purchase the same cost and profit are showing for previous order in the orders list as well.
    After another order is made and paid, then cost and profit are showing up correctly for all orders again.

    1. Hi Kristjan,

      Maybe it would be possible for me to log in to your site to check what’s going on (my email is [email protected])? Please let me know if sharing an account is not an option and I will continue solving it remotely.

    2. If anyone else has a similar issue – this is fixed in plugin v1.4.6.

  47. Hi its not showing right amount of profit and cost. My total sales are 4k$+ but its only showing 642$ cost and 664$ profit in THIS MONTH tab and for year with 7k$ sales its showing only 2.1k$ cost and 1840$ Profit. Kindly help me fix this issue

    https://prnt.sc/r7hvg4

    1. Hi,

      The first idea that comes to mind – did you click “Recalculate orders cost and profit for all orders” (in “WooCommerce > Settings > Cost of Goods > Tools”) so the plugin would calculate profits from before it was installed? Also please make sure that you have set costs for the products from the orders.

      If that doesn’t help – as far as I remember, WooCommerce saves reports in transients, so please try clearing transients in “WooCommerce > Status > Tools > WooCommerce transients”.

      If none of the above helps – maybe it’s possible for me to log in to your site to check what’s going on (my email is [email protected])? Please let me know if sharing an account is not an option and I will continue solving it remotely.

    2. I’ve tried doing both of the things above but its still not giving me the whole amount.

      My total sales are 666$ this month. Its showing me 605$ total after i add cost and profit.

      https://prnt.sc/raxfm5

      332$+272$ = 605$ however the amount of total sales are 666$
      All the products have their cost and profit on orders page from this month.

    3. Hi,

      The only explanation I’ve got – some order items (i.e. products) do not have the cost entered. Even if an order has profit calculated, it may be that some items don’t have cost set. For example, let’s say we have an order with a total of $100. Let’s say this order has two items: Product A and Product B, both sold for $50. Now if you have only set cost for Product A (let’s say $30), then the order profit will show $20, so that can produce a mismatch.

      Again, if I could log in, I would be able to tell exactly what’s happening. I would start by checking reports day by day (i.e. instead of “This month”, I would start checking “2020-03-01 – 2020-03-01”, “2020-03-02 – 2020-03-02” and so on, until I could see a mismatch, then I would check each order for that day.

  48. Hi,

    I’ve unticked Admin Order Options -> Meta box
    Adds “Cost of Goods” meta box to admin order edit page.

    but the Cost of Goods box is still showing on all orders.

    I would like to remove it.

    Can you help?

    1. Hi Keith,

      Hmm… That’s really strange. I’ve just retested it on my server and it seems to be working fine here – as soon as I unchecked the “Meta box” checkbox, the “Cost of Goods” meta box on the order edit page is no longer showing. Are you sure it’s not coming from some other cost of goods plugin? Maybe I can log in to your server to check what’s going on (my email is [email protected])?

    2. In case if anyone else has a similar issue – the question was about item cost inputs (i.e. not about the meta box, which is working normally). Since plugin v1.4.5, it’s now possible to disable (or alternatively make them read-only) item cost inputs with the “Item costs” option in “WooCommerce > Settings > Cost of Goods > Admin Order Options”.

    3. Sorry for the confusion and thanks for adding the new feature Tom. Great support.

  49. how is this possible?
    order total € 64,75 – cost € 40 – profit = -€25,05 ?? see https://nimb.ws/p1aL7I

    1. Hi,

      Are there any shipping costs included in the order total? If so – please let me know what are they. Also is this order total include taxes? If so – please let me know what is tax percent.

    2. Yes shipping cost are 4.9 and inclbtax 21%.
      Looks like he don’t counts the amounts of the products but only the single product

    3. Hmm… It should count the amount… Maybe it’s possible for me to log in to your site to check what’s going on (my email is [email protected])? Please let me know if sharing an account is not an option and I will try to solve this remotely.

    4. Tom, can you check our admin, shopify plugin is updated but if you see /post.php?post=6785&action=edit there is a negative profit 🙁

  50. Hello,

    When we are trying to add variation to existing variable product (with cost of goods already entered) –
    the page stuck and the product is not editable anymore and needs to be deleted
    here is a error message I get from wordpress:

    אירעה שגיאה מסוג E_ERROR בשורה 176 בקובץ /home/thethirdeyeco/public_html/wp-content/plugins/cost-of-goods-for-woocommerce/includes/class-alg-wc-cost-of-goods-core.php. הודעת שגיאה: Uncaught Error: Call to a member function get_parent_id() on bool in /home/thethirdeyeco/public_html/wp-content/plugins/cost-of-goods-for-woocommerce/includes/class-alg-wc-cost-of-goods-core.php:176
    Stack trace:
    #0 /home/thethirdeyeco/public_html/wp-content/plugins/cost-of-goods-for-woocommerce/includes/class-alg-wc-cost-of-goods-core.php(206): Alg_WC_Cost_of_Goods_Core->get_product_cost(10268)
    #1 /home/thethirdeyeco/public_html/wp-content/plugins/cost-of-goods-for-woocommerce/includes/class-alg-wc-cost-of-goods-core.php(237): Alg_WC_Cost_of_Goods_Core->get_product_profit(10268)
    #2 /home/thethirdeyeco/public_html/wp-content/plugins/cost-of-goods-for-woocommerce/includes/class-alg-wc-cost-of-goods-core.php(219): Alg_WC_Cost_of_Goods_Core->get_variable_product_html(2780, ‘profit’)
    #3 /home/thethirdeyeco/public_html/wp-content/plugins/cost-of-goods-for-woocommerce/includes/class-alg-wc-cost-of-goods-core.php(270): Alg_WC_Cost_of_Goods_Core->get_product_profit_html(2780)
    #4 /home/thethirdeyeco/public_html/wp-incl

    Please help

    1. Hi Lior,

      Please give me a minute to check this – I will get back to you shortly.

    2. Hi again,

      I was unable to reproduce the issue on my server, however, I’ve just released new plugin version 1.4.1, where I’ve added additional safe-checks to the code. Could you please update and let me know if this fixes the issue.

    3. Hi Tom,

      Sorry for my late reply, Yes the update solve the issue, thanks!!!

    4. Hi Lior,

      Great, happy to hear it’s solved. Please let me know if you need anything else. And if you like the plugin, please consider leaving me a rating.

  51. Bonjour, je viens d’installer le plugin Cost of good pro, mais je ne comprends pas la logique du calcul, mon “cost(excl.tax) donc mon prix HT + le “profit” n’est pas égal a mon prix ttc, certe j’ai en plus de la TVA une marge, mais du coup ça fausse le profit.. ou alors je n’ai rien compris XD
    Possible d’avoir un mail ou un numéro pour m’aider a installer et a comprendre ce plugin SVP?
    Merci
    Cordialement.

    1. Hi,

      Maybe you could give me an example? I mean what is the product’s price, what cost did you set for it, and what profit is calculated by our plugin? Please note that all calculations are done excluding tax.

      Also – if you wish – you can share an admin account to your site so I could log in and check what’s going on (my email is [email protected]).

  52. Hello,

    when am adding a product to order, the cost of goods does not filled, and the system did not calculate the profit. I must add the cost manually.

    http://www.preklady-textu.cz/crm/preview/cost-of-good-error.png

    Thanks

    1. Hi Hani,

      Would it be possible for me to log in to your site’s admin, if yes – my email is [email protected]

  53. Hello

    I am getting this error in my site http://prntscr.com/p8zxgf

    1. Hi Daniel,

      Thanks for reporting. I’m not getting the error on my test server, however, I will add some more safety checks to the code to make this error impossible. Will be releasing new plugin version later today.

    2. Hi again Daniel,

      We’ve just released new plugin version 1.3.5. Could you please update and let me know if the warning is gone?

  54. hi there

    cost of good is showing up in invoice. can you please help me solve this problem. I am using this plugin for invoices. https://wordpress.org/plugins/print-invoices-packing-slip-labels-for-woocommerce/

    1. Hi,

      Sorry for the late reply.

      I’ve just added the compatibility with “WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels” plugin in v1.3.4.

Leave a Reply

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

Changelog

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.

Frequently Asked Questions

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

A. 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.

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

A. 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.

Free vs Pro

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

Free VersionPro Version
Products
Admin Products List Columnsyesyes
Add stockyesyes
Quick editnoyes
Bulk editnoyes
Orders
Admin Orders List Columnsyesyes
Item costsyesyes
Meta boxyesyes
Admin noticeyesyes
Extra Costs: All Ordersyesyes
Extra Costs: Per Orderyesyes
Extra Costs: Payment Gatewaysyesyes
Extra Costs: Shipping Methodsyesyes
Tools
Product Bulk Edit Costs Toolyesyes
Product Import Costs Toolyesyes
Recalculate Orders Cost and Profit Toolsnoyes
Reports
Graphical Orders (Costs/Profit) Reportnoyes
Stock Reportnoyes
WooCommerce Analyticsyesyes

Developers

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 );

Installation and Updates

  • Buy the plugin 🙂
  • Download plugin's zip to your computer (you will receive an email with download link, or you can always download the plugin from your account).
  • Go to "Admin Dashboard > Plugins > Add New > Upload Plugin" and browse for downloaded zip file.
  • If plugin is successfully installed - you should see it added to the Plugins list.
  • To keep WPFactory items up to date, please install WPFactory Helper plugin and enter your site key.

Refunds

We want to ensure that you are 100% happy with your purchase, so if you feel the product(s) you purchased are not the best fit for your requirements and you attempted to resolve issues with product's author, we are offering 30 day money back guarantee refund policy.