

CostPro – Product Cost CalculatorCostPro – Product Cost Calculator
Calculate product costs, apply profit margins, and integrate with WooCommerce for seamless price updates and customizable cost hea
CostPro – Product Cost Calculator
Calculate product costs, apply profit margins, and integrate with WooCommerce for seamless price ...
Overview
HTML Description
CostPro – Product Cost Calculator is a powerful plugin designed to calculate the final product cost from customizable cost heads and apply profit margins. It integrates smoothly with WooCommerce, automatically updating product prices. The plugin also offers a standalone calculator via shortcode for non-WooCommerce environments. With customizable cost heads like Purchase Price, Packing, Transport, and Advertisement, this plugin helps e-commerce store owners manage their product pricing efficiently. The responsive design ensures compatibility with most WordPress themes, providing a seamless user experience.
Features
Key Features
- Customizable cost heads (e.g., Purchase Price, Packing, Transport, Advertisement)
- Automatic final cost summation across heads
- Profit margin as amount or percentage
- WooCommerce integration: updates product price on save
- Shortcode
[costpro_calculator]
for general e-commerce/non-WooCommerce use - Additional per-product custom cost fields via repeater UI
- Responsive front-end calculator that fits most themes
Requirements
WooCommerce
Instructions
CostPro – Product Cost Calculator
Calculate final product cost from customizable cost heads and apply profit margins. Integrates with WooCommerce to automatically update product prices, and provides a standalone calculator shortcode for non‑WooCommerce environments.
Features
Customizable cost heads (e.g., Purchase Price, Packing, Transport, Advertisement)
Automatic final cost summation across heads
Profit margin as amount or percentage
WooCommerce integration: updates product price on save
Shortcode `[costpro_calculator]` for general e‑commerce/non‑WooCommerce use
Additional per‑product custom cost fields via repeater UI
Responsive front‑end calculator that fits most themes
Installation
Copy the `costpro-product-cost-calculator` folder into `wp-content/plugins/` of your WordPress site.
In WordPress Admin, go to `Plugins` and activate “CostPro – Product Cost Calculator”.
Setup
Define your cost heads:
WooCommerce sites: `WooCommerce → CostPro Costs`
Non‑WooCommerce: `Settings → CostPro Costs`
Enter one cost head per line (e.g., Purchase Price, Packing, Transport, Advertisement).
For WooCommerce products:
Edit any product and use the meta box “CostPro: Product Costs & Profit”.
Enter amounts for each cost head.
Choose profit type (Amount or Percentage) and set the value.
Add any “Additional Costs” rows (label + amount) as needed.
On save, the plugin calculates the final cost and updates the product’s regular price.
For non‑WooCommerce usage:
Add the shortcode `[costpro_calculator]` to any page.
The calculator form will allow entering costs and profit margin and shows computed final cost and selling price.
Notes
Price updates currently target simple products. Extending to variable products can be added later.
All calculations are rounded to two decimals.
Security: Nonces and capability checks protect meta saves.
License: GPLv2 or later; no paid dependencies.
Uninstall / Deactivation
Deactivating the plugin leaves previously computed prices intact.
Removing the plugin does not delete stored options or product meta.
Usage Guide
Admin Settings
Navigate to `WooCommerce → CostPro Costs` (or `Settings → CostPro Costs` if WooCommerce is not active).
Enter one cost head per line; these appear in product edit and the `[costpro_calculator]`.
Product Edit Screen
Fields appear directly after the product description.
Fill built‑in heads and add any additional labeled costs.
Set profit type/value; computed totals update live.
Saving updates WooCommerce `_regular_price` and `_price` (simple products).
Shortcode
Place `[costpro_calculator]` on a page; it uses admin cost heads.
Enter costs and profit margin; the form shows Final Cost and Selling Price.
FAQ
The totals show 0.00 in admin.
Ensure the plugin is active and you’re on a product edit screen.
Check browser console for JS errors; jQuery must be available in admin.
Saving the product will still compute and update price even if live UI fails.
How do I add a new cost type like “Tax” or “Handling”?
Add it in `CostPro Costs` settings or use “Additional Costs” rows per product.
Does this work with variable products?
Current version targets simple products. Variation support can be added.
Does the plugin store or transmit personal data?
No. It stores product meta (costs and margin) only.
Troubleshooting
If prices don’t update: verify WooCommerce is active and the product type is Simple. Clear caches.
If settings don’t save: ensure user has `manage_options` capability.
Conflicts: Temporarily disable other pricing plugins to test.
Changelog
1.0.0
Initial release by E‑Porichoy.
WooCommerce integration for regular price update.
Customizable cost heads and additional per‑product costs.
Shortcode calculator; responsive front‑end.
License
GPLv2 or later — https://www.gnu.org/licenses/g...
Support & Updates
Suggested support window: 6 months with free updates.
Contact: provide email or support forum link in your distribution channel.
Marketing & Promotion
Suggested tags: pricing, cost, margin, WooCommerce, calculator.
Provide screenshots of admin settings, product edit fields, and shortcode page.
Consider a short demo video and a live demo site to showcase workflows.
Category | Plugins / WooCommerce |
First release | 4 October 2025 |
Last update | 4 October 2025 |
Supported CMS | WooCommerce 6.x, WooCommerce 7.x, WooCommerce 8.x, WooCommerce 9.x, WordPress 6.6, WordPress 6.7, WordPress 6.8 |
Files included | .php, Javascript .js |
Tags | woocommerce pricing, woocommerce plugin, product cost calculator, woocommerce price calculator, e-commerce price management, cost calculator plugin, product pricing tool, profit margin calculator, custom cost heads, woocommerce product cost, price calculation plugin, cost management plugin, product pricing automation, e-commerce profit calculator, woocommerce cost calculator, price markup calculator, woocommerce tools, product cost management, customizable pricing plugin, wordpress price calculator. |