Description
AppsBrain Coupon Margin Protection for WooCommerce helps shop owners understand the difference between sales revenue, product cost and estimated profit. It adds a cost input to WooCommerce products and variations, plus optional per-item packaging, delivery, payment processing and other expenses.
The product editor and Profit Breakdown page display estimated per-unit profit and margin after entered expenses. The Reports page shows operational order summaries, coupon discounts and estimated merchandise margin using current product purchase costs. It provides date and status filters, order-number search and pagination.
AppsBrain Coupon Margin Protection can warn when coupons reduce the cart’s merchandise gross margin below a configured threshold, or remove coupons in Enforce mode. Coupon enforcement uses product purchase costs only. It does not currently enforce a margin after shipping, packaging, processing fees or other overhead. Do not treat the product-profit preview as a guarantee of checkout profitability.
The Demo Catalog creates four sample WooCommerce products and three coupons. Generated records are marked so they can be identified and removed. Products referenced by orders are kept as drafts to preserve order history.
AppsBrain Coupon Margin Protection is released under the GPLv2-or-later license. There is no paid edition, license key, subscription, tracking service or required external account.
Privacy
No personal information is transmitted to services operated by the plugin developer. The plugin reads WooCommerce product and order information locally to provide reports to authorized administrators and shop managers. WooCommerce logging may store a generic warning about a cart’s coupon margin policy; it does not intentionally log customer names, email addresses or order details.
Upgrade notes
If you used an earlier development build under the previous plugin name, back up the site before installing the renamed plugin. The previous plugin folder and the new plugin folder are distinct; do not run both at once. Previously stored unit costs, expense fields, configuration, demo IDs and reporting baseline can be read from earlier namespaces. The new plugin does not automatically uninstall or delete the old plugin.
Screenshots






Installation
- Install and activate WooCommerce.
- Install and activate AppsBrain Coupon Margin Protection for WooCommerce.
- Open AppsBrain Coupon Margin Protection > Protection settings. Choose a minimum merchandise margin and start with Warn mode.
- Enter product costs in the WooCommerce product editor. For variations, enter the appropriate variation-level cost.
- Enter optional per-unit packaging, delivery, processing and other costs to review estimated profit.
- Test coupons and checkout paths on a staging store before using Enforce mode.
- Use AppsBrain Coupon Margin Protection > Demo catalog to generate sample products and coupons, and remove them when finished.
FAQ
-
What is profit margin?
-
For merchandise gross margin, divide (tax-exclusive merchandise revenue minus product purchase cost) by tax-exclusive merchandise revenue, then multiply by 100. For a product sold at 100 with purchase cost 70, the margin is 30% before other expenses.
-
Are packaging and delivery costs included in coupon protection?
-
No. They are included in the estimated per-product profit breakdown but not in the coupon-enforcement calculation. Enforce mode checks tax-exclusive merchandise revenue against entered purchase costs. Do not assume every accepted coupon is profitable after all business expenses.
-
Does the plugin support currencies outside the store currency?
-
You can enter manual target-currency exchange rates, and developers can provide a value through the
appsbrain_coupon_margin_cost_exchange_ratefilter. Rates are not fetched automatically. Currency switchers, checkout totals and exchange rates should be tested together before enabling enforcement. The AppsBrain-prefixed exchange-rate filter is supported; the older AppsBrain filter remains available for existing integrations. -
What happens if product cost or an exchange rate is missing?
-
The unknown-data policy lets you allow or block coupons when the enforcement calculation cannot be completed. Missing purchase costs are never silently treated as zero for coupon enforcement.
-
Are the reports accounting-grade?
-
No. Order profitability uses current product purchase costs, not cost snapshots from the time of purchase. It excludes shipping, processing fees, additional expenses, refunds and other adjustments. Charts and aggregate figures on the Reports screen represent the currently displayed orders, not necessarily every matching order in the store. The All statuses filter can include cancelled, failed, pending, and refunded orders; those figures are not a finalized sales ledger. The Profit Breakdown listing is limited to the first 2,500 products. Different currencies are not automatically added together.
-
Does it work with HPOS and Checkout Blocks?
-
It uses WooCommerce’s CRUD APIs for order access and declares HPOS compatibility. Validation hooks are included for the Store API. These do not establish compatibility with every checkout extension, gateway or currency switcher; test your actual store configuration before enabling enforcement.
-
Can I delete the sample products?
-
Yes. Demo Catalog includes cleanup controls requiring appropriate WordPress permissions and confirmation. It targets only records tagged by AppsBrain Coupon Margin Protection. Products already associated with orders are archived instead of permanently deleted.
-
Does AppsBrain Coupon Margin Protection send information to outside services?
-
No. AppsBrain Coupon Margin Protection does not transmit product, customer or order data to an external service. In Warn mode it may write a generic coupon-policy message to the WooCommerce logger. Financial records and product costs remain in the site’s WordPress/WooCommerce database.
-
How do I reach the developer?
-
The plugin is maintained by AppsBrain. It is an independent integration for WooCommerce and is not affiliated with or endorsed by WooCommerce. The developer’s WordPress.org profile is https://profiles.wordpress.org/titasappsbrain/ .
Reviews
There are no reviews for this plugin.
Contributors & Developers
“AppsBrain Coupon Margin Protection for WooCommerce” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “AppsBrain Coupon Margin Protection for WooCommerce” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.00
- Rebranded as AppsBrain Coupon Margin Protection for WooCommerce to distinguish the plugin from similarly named software.
- Added per-product profit and cost estimates, reports, demo catalog and coupon margin policy.
- Introduced a distinct AppsBrain namespace for globally accessible identifiers and persisted settings, with fallback reading of earlier stored data.
- Strengthened nonce, capability and input checks on administrative actions.
- Improved WooCommerce CRUD usage and clarified reporting and coupon-enforcement limitations.
