| 开发者 | rickey29 |
|---|---|
| 更新时间 | 2026年9月24日 19:49 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
FLX_MODERNIZE_RENDER_URL yourself -- no publicly available compatible endpoint currently exists, and none is bundled with this plugin;FLX_MODERNIZE_SAVINGS_BADGE_ENABLED (boolean) overrides the sale savings badge checkbox.FLX_MODERNIZE_EXPERIMENT_ENABLED (boolean) overrides the Flx Render integration checkbox.flx-modernize folder to /wp-content/plugins/, or install it through the WordPress plugin screen.wp-config.php:define( 'FLX_MODERNIZE_RENDER_URL', 'https://your-render-endpoint.example.com' );
define( 'FLX_MODERNIZE_EXPERIMENT_PRODUCT_IDS', array( 12, 34 ) ); // your own product IDs
define( 'FLX_MODERNIZE_EXPERIMENT_ENABLED', true ); // overrides the Settings page checkbox
None of this is required for the sale savings badge, which works without any configuration.Yes. Once activated, any simple product you have on sale immediately shows a sale savings badge on its product page -- no configuration needed. The optional Flx Render integration remains off until you choose to enable and configure it.
No. The sale savings badge is presentation-only: it reads a product's existing regular and sale price to compute a percentage, and appends a small badge next to the price WooCommerce already shows. It never writes to product, cart, checkout, or order data.
The badge only appears for simple products that are genuinely on sale with a lower sale price than regular price. Variable, grouped, and external products, and any product with missing or ambiguous price data, are left completely alone -- no badge, no error, no change to what WooCommerce would otherwise render.
Flx Render is a separate, externally hosted rendering service that this plugin can optionally call for a small, curated set of products, entirely independent of the sale savings badge. It is not included with this plugin, and no publicly available compatible endpoint currently exists. Without it configured, or if a request fails, Flx Modernize always falls back to WordPress/WooCommerce's own native rendering.
This is an experimental release: the sale savings badge is a small, complete, standalone feature, but the broader Flx Modernize roadmap (Shop, Cart, Checkout, My Account, variable-product support, and more) is still in progress. See the plugin's GitHub repository for current scope and status.
uninstall.php to remove this plugin's own stored options when deleted from wp-admin.