=== PW - Ofertas Avanzadas Lite ===
Contributors: pezweb
Tags: woocommerce, discounts, marketing, campaigns, lite
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Stable tag: 2.2.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

WooCommerce discount campaigns with a guided wizard, strategies, and optional product badges.

== Description ==

**PW - Ofertas Avanzadas Lite** helps you create and manage discount campaigns in WooCommerce using a guided wizard, several marketing-oriented strategies, and optional on-product badges.

**Languages:** Strings passed through gettext use English as the `msgid` in code; the package includes a Spanish translation (`languages/pezweb-ofertas-avanzadas-es_ES.mo`). With the site language set to Spanish, WordPress will load those translations for menus, AJAX messages, and JS-localized strings.

**Pro version:** A separate Pro edition with additional strategies and analytics is sold separately by the author and is not distributed through this WordPress.org listing.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/` or install it from **Plugins → Add New**.
2. Activate the plugin.
3. Keep **WooCommerce** installed and active.
4. Open the **Offers** menu (the label may appear translated) to create campaigns.

== Frequently Asked Questions ==

= Does it work without WooCommerce? =

No. WooCommerce is required.

= Where are campaigns stored? =

In custom database tables created when the plugin is activated.

== External services ==

This plugin does **not** call remote APIs or send store data to third-party servers in the background. Wizard and dashboard admin layouts use utility CSS **bundled** in the plugin (`assets/css/pwoa-tailwind-admin.css`). The bundled design library (`pw/backend-ui`) loads its own JavaScript and CSS from the plugin package only; it does not load the Tailwind Play CDN.

== Changelog ==

= 2.2.4 =
* Build: include `CampaignPostSanitizer.php` in the Lite package (fixes campaign save and conditional validation in the wizard).

= 2.2.2 =
* i18n: WordPress 6.7+ compatibility — defer admin bootstrap (BackendUI, menus) to the `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).

= 2.2.1 =
* Plugin Check compliance: resolved all NonceVerification, EscapeOutput, PrefixAllGlobals, and SQL prepared statement warnings.
* i18n: all gettext msgids now use English; text domain aligned with slug (pezweb-ofertas-avanzadas).
* Build: composer.json bundled with vendor/; hidden files and dev metadata excluded from ZIP.

= 2.1.5 =
* Remove all artificial feature limits and locked strategies to comply with WordPress.org Plugin Directory Guidelines.
* Lite build no longer includes Pro-only strategy references, upgrade URLs, or campaign count restrictions.

= 2.1.4 =
* Resolve all Plugin Check warnings: wp_unslash on all POST reads, absint for IDs, object cache for direct DB queries, remove deprecated load_plugin_textdomain.
* Build: Lite ZIP filename no longer includes -lite suffix (matches wp.org slug).

= 2.1.3 =
* Plugin URI now differs from Author URI (WordPress.org requirement).
* Lite no longer calls deactivate_plugins(); skips initialization when Pro is active and shows an admin notice instead.

= 2.1.2 =
* WordPress.org: uninstall handler, ZIP verification in build, readme external services; deploy option to keep current version; admin assets and shortcode hygiene.

= 2.1.1 =
* WordPress.org readiness: readme stable tag, external services disclosure, English plugin header description.
* Pro/Lite conflict: Pro correctly deactivates the Lite package when both are installed.
* i18n: Pro strategy labels use literal translatable strings; product expiry field and storefront notice are translatable.
* Styles: product expiry admin/frontend use enqueued CSS (no inline styles); admin Tailwind utilities built locally (no `cdn.tailwindcss.com`).

= 2.0.18 =
* Readme and branding aligned with PW - Ofertas Avanzadas; Spanish (es_ES) translation; filterable Pro upgrade URL.

== Upgrade Notice ==

= 2.2.4 =
Hotfix: Lite build includes CampaignPostSanitizer.php (wizard save/validate); Tailwind CSS order uses AssetsManager::CORE_STYLE_HANDLE for older pw/backend-ui.

= 2.2.1 =
Remove all artificial feature limits and locked strategies to comply with WordPress.org guidelines.

= 2.1.1 =
Recommended update for WordPress.org metadata, translations, and admin/frontend styling.
