Linux 软件免费装
Banner图

JeyTech Below Cost Guard for WooCommerce

开发者 jeytech
更新时间 2026年10月19日 01:46
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce checkout discounts cost of goods

下载

1.0.0

详情介绍:

A basket can remain profitable while one product sells below its cost. JeyTech Below Cost Guard checks each product line after WooCommerce has calculated discounts, including fixed-cart coupons and stacked coupons. Start in observation mode to review potential problems without stopping sales. Enable blocking when your product costs and settings are ready. What it does Requirements and setup Requires WooCommerce 10.3 or newer and its native Cost of Goods Sold feature. Enable COGS under WooCommerce > Settings > Advanced > Features and enter positive unit costs EXCLUDING TAX for every product you want to sell while blocking is enabled. Configure the guard under WooCommerce > Settings > Advanced > Below Cost Guard. Blocking is strict: it also refuses products with missing or zero costs, disabled COGS, order currencies different from the store currency, and discounts entered as negative fees that cannot be allocated to product lines. Observation is the default. Inspect WooCommerce > Status > Logs and select source jeytech-below-cost-guard before enabling blocking. Scope This is a product margin floor. Shipping revenue and positive fees do not offset a losing product line. Shipping costs, gateway fees and operating expenses are not calculated. It is not a full profit guarantee or a legal resale-price compliance tool. The supported scope is standard simple products and variations, native WooCommerce COGS, native coupons and the store currency. Cost plugins, currency conversion, bundles, subscriptions, deposits and third-party promotion engines require their own compatibility validation. Validation runs before payment on the standard WooCommerce checkout hooks. Custom code or gateways changing charges afterwards are outside this scope. A rejected order can remain unpaid in the order list for review and retry; the plugin does not cancel it or refund paid orders. No external service, account, subscription or telemetry is required. Logging uses WooCommerce's local logging system.

安装:

  1. Install and activate with WooCommerce 10.3 or newer.
  2. Enable native Cost of Goods Sold and enter positive unit costs excluding tax.
  3. Open WooCommerce > Settings > Advanced > Below Cost Guard.
  4. Keep Observe and log selected while checking the log and representative carts.
  5. Select Block checkout payment when product costs and discounts are ready.

屏幕截图:

  • Classic checkout refuses a fixed-cart coupon basket with a losing product line.
  • Checkout Blocks shows the neutral server validation message.

常见问题:

What does the margin percentage mean?

Margin = (final product revenue excluding tax - product cost) / revenue. A unit costing 80 with a minimum margin of 20% needs at least 100 in revenue excluding tax after discounts. Zero percent prevents covered lines from selling below their product cost.

Does this change my coupon?

No. The guard checks the final calculated totals. Observation logs findings. Blocking refuses checkout payment without changing the price or coupon amount.

What happens when a cost is missing or zero?

Observation logs a coverage problem. Blocking refuses checkout. Enter a positive native unit cost or use observation. Zero-cost products are not covered in this version.

Where are the logs?

WooCommerce > Status > Logs, source jeytech-below-cost-guard. Cost and margin findings are merchant diagnostics and are not included in the customer error message.

Is Checkout Blocks supported?

Yes, using native Store API validation and a final order check before payment. Classic checkout and standard order-pay validation are also covered.

Does it work with third-party cost or discount plugins?

No compatibility is claimed for third-party cost fields, promotion engines, bundles, subscriptions, deposits or currency conversion. Validate your own integrations on a staging store.

Does observation stop sales?

No. It records findings without blocking payment and is selected by default.

更新日志:

1.0.0