| 开发者 | pezweb |
|---|---|
| 更新时间 | 2026年6月17日 13:40 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
es_ES) translation is included and loads automatically when the site locale is set to any es_* variant.
Pro edition
A separate Pro edition adds advanced strategies (bulk volume discounts, attribute-quantity tiers), built-in analytics, and additional audience filters. It is sold directly by the author and is not distributed through this WordPress.org listing.
/wp-content/plugins/ or install it from Plugins → Add New.No. WooCommerce must be installed and active. The plugin checks for this on every admin load and shows a clear notice if the dependency is missing.
In custom database tables created during plugin activation. No data is stored in wp_options or wp_postmeta, and uninstalling the plugin removes those tables cleanly.
Yes. Multiple campaigns can be active simultaneously. If a product qualifies for more than one campaign, the stacking behaviour follows the priority order you configure — the default is to apply the highest-priority campaign.
Campaigns are independent of WooCommerce's coupon system. A customer can use a native coupon code and still benefit from an active campaign on the same order.
Badge overlays render on WooCommerce's standard product image hooks, so they work with most themes out of the box. Products without a featured image do not receive a badge wrapper, avoiding layout issues. If your theme has a heavily customised product loop you may need to check the output, but no theme file edits are required.
Campaigns apply at the WooCommerce cart and pricing layer, so they work regardless of how product pages are built. Badge overlays rely on standard WooCommerce hooks; if your page builder replaces those hooks entirely (some do), badges may not appear on the front end — the discount itself is unaffected.
Lite ships three strategies: basic discount, buy X pay Y, and expiry-based tiered discount. The Pro edition adds bulk-volume discounts, attribute-quantity tiers, campaign analytics, and additional audience filters. Pro is sold separately by the author and is not available through WordPress.org.
ProductPriceHandler.php and CampaignPricingService.php (fixes fatal error on plugin load after updating from WordPress.org).stacking_mode values default to priority when saving campaigns.pw/backend-ui copy lacks CORE_STYLE_HANDLE (backward-compatible stylesheet dependency).ProductPriceHandler and CampaignPricingService (required by cart and catalog pricing since recent releases).NonceVerification suppressions in favour of explicit checks).pw/backend-ui pinned to 1.4.7 in the distributed package.AssetsManager::CORE_STYLE_HANDLE), so utility classes sit where they should with the bundled pw/backend-ui.es_ES) strings covered in the bundled translation files (.po / .mo).CampaignPostSanitizer.php in the Lite package (fixes campaign save and conditional validation in the wizard).init action so the pezweb-ofertas-avanzadas text domain loads before any translated strings run (fixes _load_textdomain_just_in_time doing work too early).cdn.tailwindcss.com).