=== Plugin BlueX for WooCommerce === Contributors: @soporteblue Tags: blue express rates, live rates, shipping rates, blue express, woocommerce shipping Requires at least: 4.5 Tested up to: 7.1 Stable tag: 3.3.1 Requires PHP: 7.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html == Description == Once the plugin is installed, you need to go to the integration section in the woocommerce settings and add the data delivered by blue express. Also, create a rest api user, this must be in the advanced options and deliver it to Blue Express for the correct functioning of the module. == Screenshots == 1. Blue Express general settings 2. Blue Express custom services' settings 3. Blue Express shipping methods in the cart == Changelog == = 1.0.0 - 2022-11-03 = * First release! = 1.0.1 - 2022-12-15 = * Changes requested = 1.0.2 - 2023-03-02 = * Update of the tariff service for dispatches = 1.0.3 - 2023-03-02 = * Fix get pricing = 1.0.4 - 2023-03-03 = * Fix Custom price = 1.0.5 - 2023-03-13 = * Fix Orders View = 1.0.6 - 2023-04-24 = * Fix Email = 1.0.7 - 2023-04-24 = * Fix Parse Comunas = 1.0.8 - 2023-05-16 = * Add Catch Logs Webhooks = 1.0.9 - 2023-07-20 = * Fix Weight = 1.0.10 - 2023-07-27 = * Catch Logs = 1.0.11 - 2023-08-22 = * Fix Weight default 0.010k = 1.0.12 - 2023-09-07 = * Add Orders No Blue = 1.0.13 - 2023-09-13 = * Add Send orders by status = 1.0.14 - 2023-09-25 = * Send order when created = 1.0.15 - 2023-11-16 = * add pickup points = 2.0.0 - 2023-11-17 = * add bulk functionality and bug fix = 2.0.1 - 2023-11-24 = * Fix "Listo para enviar" = 2.0.2 - 2024-01-09 = * GoogleKey is added for pickup points, free shipping is added for amounts, agencyId is added to the map when a pickup point has already been selected. = 2.1.0 - 2024-03-27 = * Minor error fixes, integration of district functionality = 2.1.1 - 2024-05-08 = * Minor error fixes = 2.1.2 - 2024-07-24 = * Minor error fixes = 2.1.3 - 2024-09-25 = * Added support for pick-up url for older php versions = 2.1.4 - 2024-10-29 = * Fixed the issue where the custom status "Ready to Ship" was not functioning correctly in bulk actions. Now uses the appropriate WooCommerce filters and actions to ensure proper functionality. = 2.2.0 - 2024-12-18 = * The plugin integration is simplified so that the client only needs to input the necessary fields for the integration. = 2.2.1 - 2024-12-22 = * add check integration button. = 3.0 – 2025-01-16 * New UI, Simple Integration = 3.0.1 – 2025-01-17 * Fix Blue Express in Checkout = 3.0.2 – 2025-02-19 * fix api key integration = 3.1.0 - 2025-08-27 * Changes on UI. More simple integration. = 3.1.1 - 2025-08-28 * Changes for compatibility with old php versions = 3.1.2 - 2025-09-01 * Delete send_on_create flag = 3.1.3 - 2025-10-29 = * Improve on pickups points on Blue embed map. = 3.1.4 - 2025-12-10 = * Fix issues, new shipping zone module. = 3.1.5 - 2025-12-10 = * Improve on api integration. = 3.1.6 - 2026-02-16 = * Handling of fee field on shipping zone module = 3.1.7 - 2026-03-17 = * Fix declaration of class properties for PHP 8.2 compatibility = 3.2.0 - 2026-04-28 = * PUDO unified as a native WooCommerce shipping method (`bluex-pudo`) — single source of truth across legacy and Blocks checkouts. * Legacy checkout: pickup-point selection now opens in a modal dialog. After picking a point, a "Cambiar punto Blue Express" button under the rate label lets the customer reopen the modal with the previous selection pre-loaded. * Dynamic rate label: "Retiro en [agency_name]" once a point is selected (server-side, session-driven). * Automatic zone migration on install/upgrade: when PUDO is enabled in the integration config, the plugin schedules a background Action Scheduler job that idempotently adds `bluex-pudo` to every zone that already has another Blue Express method (ex/py/md). Batched, lock-protected, with exponential backoff and admin-side retry. * On toggle off → on: dismissible admin notice listing zones missing PUDO (auto-insertion is intentionally NOT performed on reactivation, to respect deliberate removals). * Integration panel "Zonas de Envío" exposes all four Blue Express methods (Express, Priority, SameDay, Retiro en Punto Blue Express) for bulk add. * Backend rewrite: `bluex-pudo` is rewritten to `bluex-ex` on order creation so fulfillment carries the correct method. * Scoped agencyId reads in the webservice to prevent label contamination across non-PUDO Blue Express rates. * HPOS compatibility declared; legacy `update_post_meta` fallback removed in favor of `WC_Data` API. = 3.2.1 - 2026-05-28 = * Fix: the pickup-point (PUDO) modal no longer auto-opens when the customer completes their address. "Envío a domicilio" (bluex-ex) is now WooCommerce's default-selected rate; the pickup modal only opens when the customer explicitly selects the "Retiro en Punto Blue Express" rate. * WordPress 7.0 compatibility verified. Minimum PHP bumped to 7.4. * Improvements and fixes for Retiro en Punto Blue Express rates and delivery information. = 3.2.2 - 2026-06-17 = * Fix: the pickup-point (PUDO) modal no longer auto-opens when the customer completes their address. «Envío a domicilio» (bluex-ex) is now WooCommerce’s default-selected rate; the pickup modal only opens when the customer explicitly selects the «Retiro en Punto Blue Express» rate. * WordPress 7.0 compatibility verified. Minimum PHP bumped to 7.4. * Improvements and fixes for Retiro en Punto Blue Express rates and delivery information. = 3.2.3 - 2026-07-29 = * Add: the "Retiro en Punto Blue Express" (PUDO) shipping method now applies a default 19% IVA fee, added automatically to newly created shipping-zone instances (existing instances are left unchanged). * Fix: the IVA/fee field is now integer-only with an automatic "%", so a value like "19" is always applied as a percentage instead of a fixed amount. = 3.3.0 - 2026-08-26 = * Retiro en Punto Blue Express (bluex-pudo) is now enabled by default on fresh installs: the shipping method is pre-selected in the integration settings and included in the zones created by the setup wizard. Existing installations are left untouched, and an explicit opt-out is respected when creating zones. * Nearby pickup points: the checkout resolves and displays the closest Punto Blue Express to the customer's address, with its price visible by default, instead of requiring the customer to open the map first. * A 19% IVA fee is applied to the Punto Blue Express rate, matching the other Blue Express methods. The backend quotes a net amount, so no double charge occurs. The fee field is an integer-only percentage, and the default is written only for newly created method instances, so existing ones keep their configured value. * Pricing and checkout selection stability: the selected pickup point survives address changes and reloads, agency identifiers are validated before being applied to an order, and rate labels no longer flip back after a selection in both the Legacy and Blocks checkouts. * Compatibility verified with WordPress 7.1 and WooCommerce 11.0.1. = 3.3.1 - 2026-08-31 = * Fix: restore the PUDO helper classes and scripts that were missing from the 3.3.0 package (WC_Bluex_Pudo_Nearby_Service, WC_Bluex_Pudo_Agency_Validator and the pudo-widget-security scripts). Their absence raised a fatal error on every shipping calculation, leaving the checkout unusable. * The plugin now degrades instead of failing when those helpers are unavailable: the Punto Blue Express rate is simply not offered, and a pickup point is never accepted without server-side validation.