Public Ticket #4541199

Cost of sales field

Closed
Comments
2 Tickets
Dean John started the conversation 8 months ago on February 7, 2026 at 4:04am

  1. Does the current SalesKing version read WooCommerce’s native COGS field?
  2. If not, which exact meta key does SalesKing use for product cost when calculating profit-based commissions?
2,762
KingsPlugins replied 8 months ago on February 8, 2026 at 5:07pm

Hi Dean,

Thanks for getting in touch,

 

1. SalesKing does not currently read WooCommerce's native COGS field. That was added more recently by WooCommerce and we haven't yet updated to support it - though it will likely come in a future update.

2. The existing profit-based commission integration works with the free "Cost of Goods" plugin by WPFactory. You can find more details about the setup here: https://b2bkingplugin.com/docs/profit-based-commission-calculation/

SalesKing retrieves the cost using that plugin's native function (alg_wc_cog()->core->products->get_product_cost()), so the meta key would be whatever that plugin stores. I believe the key is "_alg_wc_cog_cost" but it's possible there may be modifiers.

It may be best to check their plugin's code directly, which you can find here: https://wordpress.org/plugins/cost-of-goods-for-woocommerce/

 

Kind regards,
Stefan

Sign In