WordPress plugin intelligence profile

Additional Order Costs for WooCommerce

Whether it's an extra invoice, or a credit from a merchant related to an order. Dynamically add as many costs to your order as you would like!

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.1
Current version1.0.6
WordPress coverageTested up to WordPress 7.1
Minimum stackWP 4.0 · PHP 5.6
Directory statusactive
Last directory update27 Aug 20262mo ago
Active installationsNewAdoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Additional Order Costs for WooCommerce version 1.0.6 as active, updated 2mo ago and tested up to WordPress 7.1.

Overview

About this plugin

Whether it’s an extra invoice, or a credit from a merchant related to an order. Sometimes you just need a couple extra cost fields for your store’s reporting. Dynamically add as many costs to your order as you would like!

After installing this plugin you’ll be able to manually add or adjust and label additional costs for each order on the WooCommerce Edit Order page. This starts with 5 additional cost fields that can be changed in the settings page with the plugin. 5 fields too much?

Set it to 2! Not enough, set it to 9!

In the future we will be looking at making these a repeatable field rather than a set number, but we wanted to get users thinking of other expansions as well!

Once you start tracking the additional order costs you associate, you’ll want to use our WooCommerce Net Profit plugin that will give you beautiful, functional reports to fully analyze your profitability.

This also pairs well with our other cost tracking plugin, WooCommerce Cost of Shipping.

While using the WooCommerce Net Profit plugin, you will individually be able to track Additional Costs, Cost of Shipping, and Cost of Goods. The Net Profit plugin has recently been expanded to allow for custom costs to be associated from any other third party plugin as well, though coding is necessary.

This plugin also serves as the first ever example of how to integrate with WooCommerce Net Profit in a dynamic fashion.

5 now has an active filter

add_filter( 'trs_wc_np_order_cost_extension', 'callback_function', 10, 1 )

php

The filter allows for a PHP array of objects to be modified. Each object in the array represents a plugin that needs to extend to a cost calculation. The key in the array should be the meta_key found in the database.

The rest of the object should be structured as follows:

$array[$meta_key] = new StdClass(); $array[$meta_key]->key = $meta_key; $array[$meta_key]->category = 'additional_costs'; // could be cost_of_goods, additional_costs, cost_of_shipping $array[$meta_key]->function = 'aoc_wc_calculate_addition_costs_on_order'; // This should be a callable non-class protected function.

php in themes. This function is called when doing data/reporting queries. The function is only applied to the individual meta keys value.

For example: this plugin stores multiple order cost lines with associated labels. The “function” portion of the filter plucks out the important values and returns a singular non-scalar (non-complex) value. This value can then be subtracted from any other simple (float, integer, double) data format.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • additional costs
  • order costs
  • woocommerce costs
  • reporting
Compatibility & maintenance

Compatibility & maintenance

Tested with WP 7.1

Marked as tested with the current WordPress 7.1 release.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.1
Minimum requirementsWordPress 4.0 · PHP 5.6
Update activity27 Aug 20262mo ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.