| 开发者 |
a1plugins
freemius |
|---|---|
| 更新时间 | 2026年8月4日 22:05 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
WC_Product::get_cogs_value() / get_cogs_total_value()), so cost entry, Quick Edit, and Bulk Edit all work the way they already do in WooCommerce — this plugin doesn't duplicate that, it reports on top of it.
Requirements
/wp-content/plugins/a1-profit-reports-for-woocommerce, or install through the WordPress admin's Plugins screen.Orders placed before the Cost of Goods feature was enabled never had a cost snapshotted. Use the "Recalculate Historical Cost for This Range" button on the report page — it applies each product's current cost retroactively. This is an approximation, not a historical record: if a product's cost has changed since the sale, the recalculated value won't match what it actually cost at the time.
The report flags products sold in the period that currently have no Cost of Goods value set. They're counted at $0 cost until you add one.
Plugin URI in the plugin header still pointed at the pre-rename /a1-woocog/ URL (404, flagged in wp.org review round 2) — now points to /a1-profit-reports-for-woocommerce/.Requires Plugins: woocommerce header, per the reviewer's optional suggestion.<select> had its JS in a hardcoded <script> tag instead of being enqueued. This file is excluded from the free/wp.org build by Freemius's __premium_only code-stripping (confirmed empirically against the built free zip — the file, and every <script> tag, is absent), but it does ship in the premium build, so fixed it the same way as the earlier product-list CSS finding: registered/enqueued via wp_enqueue_script()/wp_add_inline_script().premium_slug and wp_org_gatekeeper to the Freemius fs_dynamic_init() config, per Freemius's dashboard after the plugin rename. No functional change.a1-profit-reports-for-woocommerce to match. Internal constants, function/class prefixes, database meta keys, and the Freemius product slug (tied to existing license records) are unchanged.admin_head-edit.php printing a raw <style> tag) is now registered and enqueued via wp_enqueue_style()/wp_add_inline_style(), per WordPress.org's Plugin Check.plugin_updater_detected). Per Freemius support, this check is waived for SDKs placed under a vendor/ folder — moved the SDK from freemius/ to vendor/freemius/ (matching A1-WooBay's existing structure) and updated the bootstrap require path accordingly. No functional change.Plugin URI and Author URI in the plugin header were identical, which WordPress.org's submission check rejects. Plugin URI now points to the plugin's own product page (https://a1plugins.com/a1-woocog/) instead of duplicating the author/company URL.License/License URI lines (found by WordPress.org's Plugin Check tool).wc_price() output (which returns HTML) was echoed unescaped in several places — the report page, the order detail Profit row, the orders list Profit column, and the product list Profit column. All wrapped in wp_kses_post()..gitignore (in addition to the dev-only files already excluded).__premium_only), not just gated behind a license check. has_premium_version is now true — Freemius generates a separate free zip (for wp.org) and premium zip (for paying/trial customers). Existing customers who unlocked Pro in-place under the old model now need to download and install the separate premium zip from their Freemius account instead.has_premium_version to match has_paid_plans (true) since it was never set, so the plugin was treated as a dual-zip product requiring a separate premium download instead of unlocking Pro in place. Set has_premium_version to false and added a proper Account menu (nested under WooCommerce) so "Activate License" now appears on the Plugins page as expected.