product-cost-price

WooCommerce Cost of Goods

Easily track your profit margins by saving your product costs in WooCommerce

Description

WooCommerce Product Cost Price module allows you to save the cost you pay for the products you sell in your WooCommerce store, as well additional information (shipping, etc.), for reporting purposes at a later date. When you come to off-set the price you are paying versus the price you sell for, this tool will come in handy! Save WooCommerce product purchase costs data for admin reports!

Default Price Fields

These are default product cost fields – choose which one (or none) do you need.

WooCommerce Product Cost Price - Admin Settings - Price Fields

Custom Price Fields

Add custom fields, which will be included in product cost calculation. You can choose field’s name, type (percent or fixed) and default value.

WooCommerce Product Cost Price - Admin Settings - Custom Price Fields

Info Fields

Info fields are not used in product cost calculation, but you can save additional info (like purchase date) here.

WooCommerce Product Cost Price - Admin Settings - Info Fields

Admin Orders List Custom Columns

If you want to add Profit column to admin’s products list page, you can enable it in this section.

WooCommerce Product Cost Price - Admin Settings - Orders List Custom Columns

Admin Edit Product

After you set all options, visit selected product’s edit page. There you will find Booster: Product Cost Price metabox. After filling metabox fields, press Update, and Booster will automatically calculate products cost and potential profit for you.

Booster for Woocommerce Product Costs Per Product Backend

Developers

If you need to retrieve saved cost in PHP – Booster uses _wcj_purchase_price meta key, e.g.:

echo get_post_meta( $product_id, '_wcj_purchase_price', true );

This will return main product cost (purchase price). If you want to get final cost (i.e. with extra expenses, custom price fields etc.), you need to use wc_get_product_purchase_price( $product_id = 0 ) function:

echo wc_get_product_purchase_price( $product_id );

wcj_get_product_purchase_price filter is applied to final function’s output:

apply_filters( 'wcj_get_product_purchase_price', $purchase_price, $product_id );

Accessible through:

  • WooCommerce > Settings > Booster > Products > Product Cost Price

Tested on WooCommerce 4.0.0 and WordPress 5.3.2Plugin can be downloaded here. If there are any locked fields in the module, you will need to get Booster Plus to unlock them.

WooCommerce Booster ModulesWooCommerce Product Cost PriceWooCommerce Products

#comment>

#comment>

#comment>#comment>#comment>

Leave a Reply Click here to cancel reply.

#comment>

Comments

36 Comments

  1. bos December 26, 2019 at 4:30 pm#comment>

    hello,

    When installing this plugin , the subtotal shown on product page is wrong.
    The pluging causes that feature to show and calculate with price ex tax, and not inc. tax as shown.

    There for customer is paying to low, since shop set to show prices incl. tax, and no correction is made in the cart for the price ex tax.

    Reply to thread

    #comment>#comment>#comment>Avatar#comment>

    • RokasJ December 26, 2019 at 8:03 pm#comment>

      Hi Bos,

      Could you contact us directly via email [email protected]

      Best regards,
      Rokas – Support Team

      #comment>#comment>Avatar#comment>

    • #comment>

    #comment>

  2. #comment>

  3. Tom October 24, 2019 at 7:03 pm#comment>

    Hello, is it possible to add a field for each order separately? The point is that we have multiple vendors and the price of the same product is different for each one, so in such cases it would be better to create fields for each order where these values could be entered. In particular, the purchase price and the supplier.

    Reply to thread

    #comment>#comment>#comment>Avatar#comment>

    • RokasJ October 27, 2019 at 9:02 pm#comment>

      Hi Tom,

      Unfortunately that is not possible yet but we have added it to our todo list.

      Best regards,
      Rokas – Support Team

      #comment>#comment>Avatar#comment>

    • #comment>

    #comment>

  4. #comment>

  5. Toby October 24, 2018 at 9:58 am#comment>

    Hi, When will the Tax problem be fixed?

    Reply to thread

    #comment>#comment>#comment>Avatar#comment>

    • bos December 26, 2019 at 4:31 pm#comment>

      just asked the same question.

      Too bad that developers are not responding.

      #comment>#comment>Avatar#comment>

    • #comment>

    #comment>

  6. #comment>

  7. Andrew Young September 29, 2018 at 3:50 pm#comment>

    Bug found: Cost of goods module does not work as intended. When entering the cost of the goods and selecting update the field reverts back to (0) every time.

    Reply to thread

    #comment>#comment>#comment>Avatar#comment>

    • RokasJ September 29, 2018 at 5:13 pm#comment>

      Hi Andrew,

      Can you contact us via email at [email protected]? Thank you,

      Best regards,
      Rokas – Support Team

      #comment>#comment>Avatar#comment>

    • #comment>

    #comment>

  8. #comment>

  9. Simon Gosselin July 10, 2018 at 11:06 pm#comment>

    Hi I have enabled this “WooCommerce Product Cost Price” feature.

    Your product description: “Save WooCommerce product purchase costs data for admin reports!” – Is there a way to include Cost prices in the admin reports? I want a report which include retail price AND cost price. Not necessary at the same time but both available.

    Thanks in advance!

    Reply to thread

    #comment>#comment>#comment>Avatar#comment>

    • RokasJ July 11, 2018 at 7:49 am#comment>

      Hi Simon,

      You can only include “Profits” in the admin reports at the moment and “Profit” with “Purchase cost” in Woocommerce Orders and Woocommerce Products screens.

      Best regards,
      Rokas – Support Team

      #comment>#comment>Avatar#comment>

    • #comment>

    #comment>

  10. #comment>

  11. sergio May 12, 2018 at 1:22 am#comment>

    Can the order profit be placed in some way in the new order email?

    Reply to thread

    #comment>#comment>#comment>Avatar#comment>

  12. #comment>

  13. DJGLIVE April 26, 2018 at 9:58 pm#comment>

    We use a plugin to import data to our store. What would the codes be for the fields so I can assign them to the CSV doc.

    Reply to thread

    #comment>#comment>#comment>Avatar#comment>

  14. #comment>

  15. Maz April 25, 2018 at 9:59 am#comment>

    Ability to dissalow or notify when sales price goes below or reaches close to cost price.

    And ability to bulk edit product pricing so we can always be on top of pricing overall. Difficult with 1000+ Products to go to each one manually.

    Reply to thread

    #comment>#comment>#comment>Avatar#comment>

    • Booster Support Team April 25, 2018 at 6:05 pm#comment>

      Hi,

      We could probably add this, but could you please give more details – when do you want this notification to appear? I mean – are you changing prices manually, or have some plugin for automatic pricing enabled?

      As for bulk edit product pricing – not sure if this will be good enough, but there is “Bulk Price Converter” module in Booster (in “WooCommerce > Settings > Booster > Prices & Currencies > Bulk Price Converter”). Also there is more general “Product Bulk Meta Editor” module (in “WooCommerce > Settings > Booster > Products > Product Bulk Meta Editor”). Could you please take a look and let me know if you have any questions, or need something changed/added there.

      Best regards,
      Tom

      #comment>#comment>Booster Support Team#comment>

    • #comment>

    #comment>

  16. #comment>

  17. Mark September 19, 2017 at 8:10 am#comment>

    Hello,

    My questions relate to the managing of the Cost price field. As you call it the Cost of Goods, I would appreciate your feedback on this.

    Many store owners work on creating their Sell price (Regular price) from a base Cost of Goods price. This is something that is missing in Woocommerce which is crazy because it is sorely needed. By this I mean from the Cost prices for products, to be able to Markup that Cost by a Percentage (or in some cases a Fixed dollar amount) to result in the Regular Price. (Variable products is also a consideration)

    Thus what is entered is the Cost, and the Sell price (Regular Price) is a consequence of the Cost x Markup %, or Cost + Fixed

    Also sorely missing, import a CSV to bulk add the Cost to products, it is too slow and not practical to enter each one manually. We have 3500 products.

    Any chance of the above ?

    cheers

    Reply to thread

    #comment>#comment>#comment>Avatar#comment>

    • ketil Morstøl January 5, 2019 at 9:58 pm#comment>

      Totally agree that a deasent method for calculating Sell price from Cost price is very much aftersougth. I just can’t understand how òne can run a business without being able to calculate the earnings, and not to forget about budgets and forcasts.

      Did you manage to find a solution for both the price calculation as well as data imports

      #comment>#comment>Avatar#comment>

    • #comment>

    #comment>

  18. #comment>

  19. Sven de Bie September 13, 2017 at 5:46 am#comment>

    Can profit be shown in the Woocommerce reports revenue reports?

    Reply to thread

    #comment>#comment>#comment>Avatar#comment>

    • Paul September 13, 2017 at 6:27 am#comment>

      Hi,
      The idea is good, only the profit calculation is not ok!
      Now it is selling price – product cost price – extra expenses = profit
      It must be selling price – TAX – product cost price – extra expenses = profit.
      Regards Paul.

      #comment>#comment>Avatar#comment>

    • #comment>

    #comment>

  20. #comment>

  21. bendge July 22, 2017 at 7:04 pm#comment>

    Hi Admin,
    Do we have a shortcodes for below:

    Product cost (purchase) price
    Extra expenses (shipping etc.)
    Seller

    Thanks

    Reply to thread

    #comment>#comment>#comment>Avatar#comment>

  22. #comment>

  23. Bjorn March 18, 2017 at 3:06 am#comment>

    is it possible to active ajax for realtime percent calculation?

    Reply to thread

    #comment>#comment>#comment>Avatar#comment>

  24. #comment>

  25. Tommy Stubsveen December 29, 2016 at 8:47 am#comment>

    Hi I have enabled this “WooCommerce Product Cost Price” feature.

    Your product description: “Save WooCommerce product purchase costs data for admin reports!” – Is there a way to include Cost prices in the admin reports? I can see a profit line by line in the orderspanel, but I want a report which include retailprice AND cost price – it would be helpful when calculating the stores inventory value.

    Reply to thread

    #comment>#comment>#comment>Avatar#comment>

  26. #comment>

  27. Georgia December 22, 2016 at 2:22 pm#comment>

    Hi. I only offer variable products on my eshop and all variations have the same price. This module is asking for a cost for each variation. Is it possible to only enter one price for all variations?

    Reply to thread

    #comment>#comment>#comment>Avatar#comment>

    • Booster Support Team December 25, 2016 at 5:49 pm#comment>

      Hi,

      Sorry for a slight delay. We’ve made some changes in plugin. Please download the development version here – http://booster.io/dev/. You will need to uninstall the old version first (don’t worry your saved settings won’t disappear).

      Now at the bottom of module’s settings (in “WooCommerce > Settings > Booster > Products > Product Cost Price”), you can find “Treat Variable Products as Simple Products” checkbox. Please let me know if it works as expected.

      And if you like Booster, please leave us a rating

      Best regards,
      Tom

      #comment>#comment>Booster Support Team#comment>

    • #comment>

    • Georgia December 26, 2016 at 4:12 pm#comment>

      Do I uninstall both the free version and the pro version before installing the development version you suggested?

      #comment>#comment>Avatar#comment>

    • #comment>

    • Booster Support Team December 26, 2016 at 4:16 pm#comment>

      Hi,

      No, just free version. Plus version should remain as it is.

      Best regards,
      Tom

      #comment>#comment>Booster Support Team#comment>

    • #comment>

    #comment>

  28. #comment>

  29. Jimmy December 8, 2016 at 7:42 pm#comment>

    This sounds amazing in theory. I had it setup and integrated on our website until a friendly customer sent me an email of his order email. His email receipt showed ALL of my costs for every product he ordered. Somehow it switched the store price with the product cost. It was terrifying. Unless someone can explain what happened and how to prevent it, I will never use a product cost plugin again.

    Reply to thread

    #comment>#comment>#comment>Avatar#comment>

    • Booster Support Team December 8, 2016 at 8:49 pm#comment>

      Hi Jimmy,

      Really sorry to hear that, I can only image how unpleasant that could be. Product’s cost price is saved as standard “post meta”, so unless your email receipt was modified to show all product’s meta, I don’t see how this could happen. How this email receipt is formed? Is it standard WooCommerce email? Was it modified somehow? If you wish, you can create/share an admin account to your server (WP and FTP) so I could login and check what’s going on – I’m almost sure I could tell exactly why this happened.

      Best regards,
      Tom

      #comment>#comment>Booster Support Team#comment>

    • #comment>

    • Booster Support Team December 8, 2016 at 8:49 pm#comment>

      P.S. If you wish to send me server details, my email is [email protected]

      #comment>#comment>Booster Support Team#comment>

    • #comment>

    #comment>

  30. #comment>

  31. kb September 16, 2016 at 11:48 am#comment>

    Hi I have enabled this “WooCommerce Product Cost Price” feature.

    Your product description: “Save WooCommerce product purchase costs data for admin reports!” – I can’t see where in the admin reports I can see the profit figures?

    I can see on individual orders and on individual products but surely it would make sense to see this calculation on the “Admin Order reports” where you can see Sales figures?

    Have I miss understood this?

    thanks

    Reply to thread

    #comment>#comment>#comment>Avatar#comment>

  32. #comment>

  33. Vadim Smilansky September 15, 2016 at 7:18 pm#comment>

    Hi!
    It didn’t calculate profit or price, I have cost 360$ and price 432$ and custom field 20%
    All what I get is:
    Selling$432.00
    Buying$432.00
    Profit$0.00 (0.00 %)

    Actually this module must have a “calculate” button which add up profit to cost and populate product price field automatically

    Reply to thread

    #comment>#comment>#comment>Avatar#comment>

  34. #comment>

  35. Paul July 2, 2016 at 9:13 am#comment>

    Hi,

    I have activated the Product cost price option, it shows the profit “winst” of the product, only the profit is incl. taxt/VAT/BTW.
    Profit should be whitout TAX.
    Do I have a setting wrong?
    Regards Paul

    Reply to thread

    #comment>#comment>#comment>Avatar#comment>

  36. #comment>

  37. Alejandro January 27, 2016 at 11:17 pm#comment>

    How they look, the data generated in the Site Statistics of WooCommerce. Some new data is created? Graphics?

    Reply to thread

    #comment>#comment>#comment>Avatar#comment>

    #comment>

  38. #comment>

  39. Paula November 18, 2015 at 10:14 pm#comment>

    Same that Jesse, I have different cost in variable products. Please, let me know when you add this feature.

    Thanks!

    Reply to thread

    #comment>#comment>#comment>Avatar#comment>

  40. #comment>

  41. Jesse September 4, 2015 at 10:06 pm#comment>

    Hi. Is it possible to input different product cost for multiple variable products within a SKU? It seems like when I installed Booster, I can no longer view the variable products option. I have different “cost price” for each product variable.

    Thanks.

    Reply to thread

    #comment>#comment>#comment>Avatar#comment>

    • Valentin Solovjov September 16, 2015 at 5:55 pm#comment>

      Dear Jesse,

      not possible for this moment.
      We added this feature to our to-do list. Let you know when it will be available.

      BR,
      Val

      #comment>#comment>Avatar#comment>

    • #comment>

    #comment>

  42. #comment>

#comment>#comment>#comment>#comment>

Leave a Reply

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

Fill out this field
Fill out this field
Please enter a valid email address.

This site uses Akismet to reduce spam. Learn how your comment data is processed.