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.
WooCommerce Net Profit as of version 1.5 now has an active filter
add_filter( 'trs_wc_np_order_cost_extension', 'callback_function', 10, 1 )
How the filter is implemented can be found in additional-oprder-costs-for-woocommerce/includes/class-aoc-wc.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.
The function listed above should be found in a file of similar structure to functions.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.
Starting from $0 per month.
Rating
Reviewers
No reviews
Tags
Developed By
The Rite Sites
Quick & Easy
Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!
Testimonial plugins for Wordpress
Galleries plugins for Wordpress
SEO plugins for Wordpress
Contact Form plugins for Wordpress
Forms plugins for Wordpress
Social Feeds plugins for Wordpress
Social Sharing plugins for Wordpress
Events Calendar plugins for Wordpress
Sliders plugins for Wordpress
Analytics plugins for Wordpress
Reviews plugins for Wordpress
Comments plugins for Wordpress
Portfolio plugins for Wordpress
Maps plugins for Wordpress
Security plugins for Wordpress
Translation plugins for Wordpress
Ads plugins for Wordpress
Video Player plugins for Wordpress
Music Player plugins for Wordpress
Backup plugins for Wordpress
Privacy plugins for Wordpress
Optimize plugins for Wordpress
Chat plugins for Wordpress
Countdown plugins for Wordpress
Email Marketing plugins for Wordpress
Tabs plugins for Wordpress
Membership plugins for Wordpress
popup plugins for Wordpress
SiteMap plugins for Wordpress
Payment plugins for Wordpress
Coming Soon plugins for Wordpress
Ecommerce plugins for Wordpress
Customer Support plugins for Wordpress
Inventory plugins for Wordpress
Video Player plugins for Wordpress
Testimonials plugins for Wordpress
Tabs plugins for Wordpress
Social Sharing plugins for Wordpress
Social Feeds plugins for Wordpress
Slider plugins for Wordpress
Reviews plugins for Wordpress
Portfolio plugins for Wordpress
Membership plugins for Wordpress
Forms plugins for Wordpress
Events Calendar plugins for Wordpress
Contact plugins for Wordpress
Comments plugins for Wordpress
Analytics plugins for Wordpress
Common Ninja Apps
Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.
Showcase Progress in a Beautiful, Animated, Visual Representation
Display LinkedIn Posts in a Stylish and Engaging Slider
Enhance Your Technical Content with Code Snippets
Transform Your Content with Interactive Diagrams and Flow Charts
Captivate Users With Interactive Before & After Images
Collect and manage donations with a customizable online form.
Add Testimonials To Improve Credibility & Conversions
Display Bluesky Posts in a Stylish and Interactive Carousel
Keep Users Up to Date & Improve Their Experience
Elevate your website's visual appeal with striking stacked image displays
Use Telegram Chat To Communicate, Support & Improve User Experience.
HIPAA-Compliant, Secure, and Customizable Forms for Any Use
More plugins
The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!