| 开发者 | titasappsbrain |
|---|---|
| 更新时间 | 2026年11月15日 21:25 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
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.
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.
You can enter manual target-currency exchange rates, and developers can provide a value through the appsbrain_coupon_margin_cost_exchange_rate filter. 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.
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.
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.
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.
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.
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.
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/ .