Plugin Directory

Changeset 3816016


Ignore:
Timestamp:
11/22/2026 01:43:30 AM (67 minutes ago)
Author:
master14566
Message:

Release 1.0.1

Location:
daybound-delivery-date
Files:
10 added
24 edited
1 copied

Legend:

Unmodified
Added
Removed
  • daybound-delivery-date/tags/1.0.1/CHANGELOG.md

    r3815868 r3816016  
    33All notable changes to Daybound Delivery Date for WooCommerce are documented here.
    44The format is based on [Keep a Changelog](https://keepachangelog.com/).
     5
     6## [1.0.1] - 2026-11-21
     7
     8### Added
     9- Privacy: delivery date and time slot meta are part of WooCommerce's personal data export and are erased when WooCommerce anonymizes an order (`src/Privacy/PrivacyTools.php`, filter `daybound_privacy_meta_keys`).
     10- Privacy: suggested privacy policy text.
     11- `uninstall.php`: deleting the plugin removes every `daybound_` option and transient (single site and multisite). Order data is kept.
     12
     13### Security
     14- The delivery date is saved only on the real order placement (`POST /wc/store/v1/checkout`), not on `PUT` draft updates.
     15- Pro: only committed orders (processing, completed, on-hold) count toward the daily capacity, so drafts or unpaid orders can no longer fill a day (filter `daybound_capacity_counted_statuses`).
     16- Pro: CSV export written as strict RFC 4180, closing a formula-injection bypass with backslash-quote payloads.
    517
    618## [1.0.0] - 2026-06-05
  • daybound-delivery-date/tags/1.0.1/daybound-delivery-date.php

    r3815868 r3816016  
    44 * Plugin Name:       Daybound Delivery Date for WooCommerce
    55 * Description:       Smart delivery date picker that lives inside the WooCommerce block checkout via the official Block Checkout Integration API.
    6  * Version:           1.0.0
     6 * Version:           1.0.1
    77 * Author:            Edinson Moreno
    88 * License:           GPL-2.0+
    … …  
    4242 * Plugin version (kept in sync with the header).
    4343 */
    44 const DAYBOUND_VERSION = '1.0.0';
     44const DAYBOUND_VERSION = '1.0.1';
    4545
    4646/**
  • daybound-delivery-date/tags/1.0.1/languages/daybound-delivery-date-es_CO.po

    r3815868 r3816016  
    33"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/daybound-delivery-"
    44"date\n"
    5 "POT-Creation-Date: 2026-11-21T23:32:14+01:00\n"
     5"POT-Creation-Date: 2026-11-22T02:43:12+01:00\n"
    66"Language: es_CO\n"
    77"Content-Type: text/plain; charset=UTF-8\n"
    … …  
    155155msgstr "Ocurrió un error inesperado. Inténtalo de nuevo."
    156156
    157 #: src/Api/DeliveryDateExtend.php:282
     157#: src/Api/DeliveryDateExtend.php:305
    158158msgid ""
    159159"You are updating the delivery date too quickly. Please wait a moment and try "
    … …  
    166166msgid "Delivery date:"
    167167msgstr "Fecha de entrega:"
     168
     169#: src/Privacy/PrivacyTools.php:62
     170msgid "Delivery date"
     171msgstr "Fecha de entrega"
     172
     173#: src/Privacy/PrivacyTools.php:63
     174msgid "Delivery time slot"
     175msgstr "Franja horaria de entrega"
     176
     177#: src/Privacy/PrivacyTools.php:160
     178msgid ""
     179"When you place an order, we store the delivery date you choose (and, if "
     180"offered, the delivery time slot) with your order, so we can prepare and "
     181"deliver it on that day. It is kept for as long as we keep the order and is "
     182"included when you request an export or erasure of your personal data."
     183msgstr ""
     184"Cuando haces un pedido, guardamos con él la fecha de entrega que eliges (y, "
     185"si se ofrece, la franja horaria de entrega) para poder prepararlo y "
     186"entregarlo ese día. Se conserva mientras conservemos el pedido y se incluye "
     187"cuando solicitas la exportación o el borrado de tus datos personales."
     188
     189#: src/Privacy/PrivacyTools.php:161
     190msgid ""
     191"The Daybound Delivery Date plugin does not send this information to its "
     192"developer or to any third party."
     193msgstr ""
     194"El plugin Daybound Delivery Date no envía esta información a su "
     195"desarrollador ni a terceros."
    168196
    169197#: src/Util/DateValidator.php:61 src/Util/DateValidator.php:74
  • daybound-delivery-date/tags/1.0.1/languages/daybound-delivery-date-es_ES.po

    r3815868 r3816016  
    33"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/daybound-delivery-"
    44"date\n"
    5 "POT-Creation-Date: 2026-11-21T23:32:14+01:00\n"
     5"POT-Creation-Date: 2026-11-22T02:43:12+01:00\n"
    66"Language: es_ES\n"
    77"Content-Type: text/plain; charset=UTF-8\n"
    … …  
    155155msgstr "Ocurrió un error inesperado. Inténtalo de nuevo."
    156156
    157 #: src/Api/DeliveryDateExtend.php:282
     157#: src/Api/DeliveryDateExtend.php:305
    158158msgid ""
    159159"You are updating the delivery date too quickly. Please wait a moment and try "
    … …  
    166166msgid "Delivery date:"
    167167msgstr "Fecha de entrega:"
     168
     169#: src/Privacy/PrivacyTools.php:62
     170msgid "Delivery date"
     171msgstr "Fecha de entrega"
     172
     173#: src/Privacy/PrivacyTools.php:63
     174msgid "Delivery time slot"
     175msgstr "Franja horaria de entrega"
     176
     177#: src/Privacy/PrivacyTools.php:160
     178msgid ""
     179"When you place an order, we store the delivery date you choose (and, if "
     180"offered, the delivery time slot) with your order, so we can prepare and "
     181"deliver it on that day. It is kept for as long as we keep the order and is "
     182"included when you request an export or erasure of your personal data."
     183msgstr ""
     184"Cuando haces un pedido, guardamos con él la fecha de entrega que eliges (y, "
     185"si se ofrece, la franja horaria de entrega) para poder prepararlo y "
     186"entregarlo ese día. Se conserva mientras conservemos el pedido y se incluye "
     187"cuando solicitas la exportación o el borrado de tus datos personales."
     188
     189#: src/Privacy/PrivacyTools.php:161
     190msgid ""
     191"The Daybound Delivery Date plugin does not send this information to its "
     192"developer or to any third party."
     193msgstr ""
     194"El plugin Daybound Delivery Date no envía esta información a su "
     195"desarrollador ni a terceros."
    168196
    169197#: src/Util/DateValidator.php:61 src/Util/DateValidator.php:74
  • daybound-delivery-date/tags/1.0.1/languages/daybound-delivery-date-es_MX.po

    r3815868 r3816016  
    33"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/daybound-delivery-"
    44"date\n"
    5 "POT-Creation-Date: 2026-11-21T23:32:14+01:00\n"
     5"POT-Creation-Date: 2026-11-22T02:43:12+01:00\n"
    66"Language: es_MX\n"
    77"Content-Type: text/plain; charset=UTF-8\n"
    … …  
    155155msgstr "Ocurrió un error inesperado. Inténtalo de nuevo."
    156156
    157 #: src/Api/DeliveryDateExtend.php:282
     157#: src/Api/DeliveryDateExtend.php:305
    158158msgid ""
    159159"You are updating the delivery date too quickly. Please wait a moment and try "
    … …  
    166166msgid "Delivery date:"
    167167msgstr "Fecha de entrega:"
     168
     169#: src/Privacy/PrivacyTools.php:62
     170msgid "Delivery date"
     171msgstr "Fecha de entrega"
     172
     173#: src/Privacy/PrivacyTools.php:63
     174msgid "Delivery time slot"
     175msgstr "Franja horaria de entrega"
     176
     177#: src/Privacy/PrivacyTools.php:160
     178msgid ""
     179"When you place an order, we store the delivery date you choose (and, if "
     180"offered, the delivery time slot) with your order, so we can prepare and "
     181"deliver it on that day. It is kept for as long as we keep the order and is "
     182"included when you request an export or erasure of your personal data."
     183msgstr ""
     184"Cuando haces un pedido, guardamos con él la fecha de entrega que eliges (y, "
     185"si se ofrece, la franja horaria de entrega) para poder prepararlo y "
     186"entregarlo ese día. Se conserva mientras conservemos el pedido y se incluye "
     187"cuando solicitas la exportación o el borrado de tus datos personales."
     188
     189#: src/Privacy/PrivacyTools.php:161
     190msgid ""
     191"The Daybound Delivery Date plugin does not send this information to its "
     192"developer or to any third party."
     193msgstr ""
     194"El plugin Daybound Delivery Date no envía esta información a su "
     195"desarrollador ni a terceros."
    168196
    169197#: src/Util/DateValidator.php:61 src/Util/DateValidator.php:74
  • daybound-delivery-date/tags/1.0.1/languages/daybound-delivery-date.pot

    r3815868 r3816016  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Daybound Delivery Date for WooCommerce 1.0.0\n"
     5"Project-Id-Version: Daybound Delivery Date for WooCommerce 1.0.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/daybound-delivery-date\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    … …  
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2026-11-21T23:32:14+01:00\n"
     12"POT-Creation-Date: 2026-11-22T02:43:12+01:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
    … …  
    139139msgstr ""
    140140
    141 #: src/Api/DeliveryDateExtend.php:282
     141#: src/Api/DeliveryDateExtend.php:305
    142142msgid "You are updating the delivery date too quickly. Please wait a moment and try again."
    143143msgstr ""
    … …  
    146146#: assets/build/checkout-extension.js:1
    147147msgid "Delivery date:"
     148msgstr ""
     149
     150#: src/Privacy/PrivacyTools.php:62
     151msgid "Delivery date"
     152msgstr ""
     153
     154#: src/Privacy/PrivacyTools.php:63
     155msgid "Delivery time slot"
     156msgstr ""
     157
     158#: src/Privacy/PrivacyTools.php:160
     159msgid "When you place an order, we store the delivery date you choose (and, if offered, the delivery time slot) with your order, so we can prepare and deliver it on that day. It is kept for as long as we keep the order and is included when you request an export or erasure of your personal data."
     160msgstr ""
     161
     162#: src/Privacy/PrivacyTools.php:161
     163msgid "The Daybound Delivery Date plugin does not send this information to its developer or to any third party."
    148164msgstr ""
    149165
  • daybound-delivery-date/tags/1.0.1/readme.txt

    r3815868 r3816016  
    77WC requires at least: 8.3
    88WC tested up to: 11.3
    9 Stable tag: 1.0.0
     9Stable tag: 1.0.1
    1010License: GPLv2 or later
    1111License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    8080== Changelog ==
    8181
     82= 1.0.1 =
     83* Privacy: delivery dates and time slots are now included in WooCommerce's personal data export and removed when an order is anonymized (Tools → Erase Personal Data, or order retention).
     84* Privacy: suggested text for your privacy policy (Settings → Privacy → Policy Guide).
     85* Deleting the plugin now removes its settings (orders keep their delivery dates).
     86* Security hardening: the delivery date is only saved when the order is actually placed, not while the checkout draft is being updated.
     87
    8288= 1.0.0 =
    8389* Initial public release.
    … …  
    95101== Upgrade Notice ==
    96102
     103= 1.0.1 =
     104Privacy tools integration (export/erase personal data), clean uninstall and a security hardening of the checkout. Recommended for all stores.
     105
    97106= 1.0.0 =
    98107First public release. Requires WooCommerce 8.3+ with the block checkout, WordPress 6.6+, and PHP 8.0+.
  • daybound-delivery-date/tags/1.0.1/src/Api/DeliveryDateExtend.php

    r3815868 r3816016  
    164164
    165165        /**
     166         * Whether a checkout request is the actual order placement.
     167         *
     168         * WooCommerce fires the same "update order from request" hook for `PUT /checkout`,
     169         * which only refreshes the draft order and takes no payment. Writing the date there
     170         * would let anyone book delivery days without buying (filling the Pro daily capacity)
     171         * and would clear the shopper's session date before they actually order.
     172         *
     173         * @param mixed $request The checkout request (a WP_REST_Request).
     174         * @return bool False only for a request that is clearly not a POST.
     175         */
     176        public static function is_order_placement( $request ): bool {
     177                if ( ! is_object( $request ) || ! method_exists( $request, 'get_method' ) ) {
     178                        return true;
     179                }
     180
     181                return 'POST' === strtoupper( (string) $request->get_method() );
     182        }
     183
     184        /**
    166185         * Persist the session delivery date onto the order during checkout.
    167186         *
    … …  
    178197         */
    179198        public function save_delivery_date_to_order( $order, $request ): void {
    180                 unset( $request ); // Date is sourced from the session, not the request body.
     199                // The date itself comes from the session, never from the request body. The request
     200                // only tells us whether this is the real order placement (see is_order_placement()).
     201                if ( ! self::is_order_placement( $request ) ) {
     202                        return;
     203                }
    181204
    182205                try {
  • daybound-delivery-date/tags/1.0.1/src/Plugin.php

    r3815868 r3816016  
    1313use Daybound\Admin\OrderMeta;
    1414use Daybound\Frontend\OrderDisplay;
     15use Daybound\Privacy\PrivacyTools;
    1516
    1617/**
    … …  
    6970                // Shopper-facing display of the saved date (order confirmation, account, emails).
    7071                ( new OrderDisplay() )->register();
     72
     73                // Personal data export/erasure + privacy policy text. Not admin-only: erasure
     74                // can also run from WooCommerce's scheduled order-retention cleanup.
     75                ( new PrivacyTools() )->register();
    7176
    7277                // Admin surfaces (Settings page + order column/detail). Registered only in the
  • daybound-delivery-date/trunk/CHANGELOG.md

    r3815868 r3816016  
    33All notable changes to Daybound Delivery Date for WooCommerce are documented here.
    44The format is based on [Keep a Changelog](https://keepachangelog.com/).
     5
     6## [1.0.1] - 2026-11-21
     7
     8### Added
     9- Privacy: delivery date and time slot meta are part of WooCommerce's personal data export and are erased when WooCommerce anonymizes an order (`src/Privacy/PrivacyTools.php`, filter `daybound_privacy_meta_keys`).
     10- Privacy: suggested privacy policy text.
     11- `uninstall.php`: deleting the plugin removes every `daybound_` option and transient (single site and multisite). Order data is kept.
     12
     13### Security
     14- The delivery date is saved only on the real order placement (`POST /wc/store/v1/checkout`), not on `PUT` draft updates.
     15- Pro: only committed orders (processing, completed, on-hold) count toward the daily capacity, so drafts or unpaid orders can no longer fill a day (filter `daybound_capacity_counted_statuses`).
     16- Pro: CSV export written as strict RFC 4180, closing a formula-injection bypass with backslash-quote payloads.
    517
    618## [1.0.0] - 2026-06-05
  • daybound-delivery-date/trunk/daybound-delivery-date.php

    r3815868 r3816016  
    44 * Plugin Name:       Daybound Delivery Date for WooCommerce
    55 * Description:       Smart delivery date picker that lives inside the WooCommerce block checkout via the official Block Checkout Integration API.
    6  * Version:           1.0.0
     6 * Version:           1.0.1
    77 * Author:            Edinson Moreno
    88 * License:           GPL-2.0+
    … …  
    4242 * Plugin version (kept in sync with the header).
    4343 */
    44 const DAYBOUND_VERSION = '1.0.0';
     44const DAYBOUND_VERSION = '1.0.1';
    4545
    4646/**
  • daybound-delivery-date/trunk/languages/daybound-delivery-date-es_CO.po

    r3815868 r3816016  
    33"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/daybound-delivery-"
    44"date\n"
    5 "POT-Creation-Date: 2026-11-21T23:32:14+01:00\n"
     5"POT-Creation-Date: 2026-11-22T02:43:12+01:00\n"
    66"Language: es_CO\n"
    77"Content-Type: text/plain; charset=UTF-8\n"
    … …  
    155155msgstr "Ocurrió un error inesperado. Inténtalo de nuevo."
    156156
    157 #: src/Api/DeliveryDateExtend.php:282
     157#: src/Api/DeliveryDateExtend.php:305
    158158msgid ""
    159159"You are updating the delivery date too quickly. Please wait a moment and try "
    … …  
    166166msgid "Delivery date:"
    167167msgstr "Fecha de entrega:"
     168
     169#: src/Privacy/PrivacyTools.php:62
     170msgid "Delivery date"
     171msgstr "Fecha de entrega"
     172
     173#: src/Privacy/PrivacyTools.php:63
     174msgid "Delivery time slot"
     175msgstr "Franja horaria de entrega"
     176
     177#: src/Privacy/PrivacyTools.php:160
     178msgid ""
     179"When you place an order, we store the delivery date you choose (and, if "
     180"offered, the delivery time slot) with your order, so we can prepare and "
     181"deliver it on that day. It is kept for as long as we keep the order and is "
     182"included when you request an export or erasure of your personal data."
     183msgstr ""
     184"Cuando haces un pedido, guardamos con él la fecha de entrega que eliges (y, "
     185"si se ofrece, la franja horaria de entrega) para poder prepararlo y "
     186"entregarlo ese día. Se conserva mientras conservemos el pedido y se incluye "
     187"cuando solicitas la exportación o el borrado de tus datos personales."
     188
     189#: src/Privacy/PrivacyTools.php:161
     190msgid ""
     191"The Daybound Delivery Date plugin does not send this information to its "
     192"developer or to any third party."
     193msgstr ""
     194"El plugin Daybound Delivery Date no envía esta información a su "
     195"desarrollador ni a terceros."
    168196
    169197#: src/Util/DateValidator.php:61 src/Util/DateValidator.php:74
  • daybound-delivery-date/trunk/languages/daybound-delivery-date-es_ES.po

    r3815868 r3816016  
    33"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/daybound-delivery-"
    44"date\n"
    5 "POT-Creation-Date: 2026-11-21T23:32:14+01:00\n"
     5"POT-Creation-Date: 2026-11-22T02:43:12+01:00\n"
    66"Language: es_ES\n"
    77"Content-Type: text/plain; charset=UTF-8\n"
    … …  
    155155msgstr "Ocurrió un error inesperado. Inténtalo de nuevo."
    156156
    157 #: src/Api/DeliveryDateExtend.php:282
     157#: src/Api/DeliveryDateExtend.php:305
    158158msgid ""
    159159"You are updating the delivery date too quickly. Please wait a moment and try "
    … …  
    166166msgid "Delivery date:"
    167167msgstr "Fecha de entrega:"
     168
     169#: src/Privacy/PrivacyTools.php:62
     170msgid "Delivery date"
     171msgstr "Fecha de entrega"
     172
     173#: src/Privacy/PrivacyTools.php:63
     174msgid "Delivery time slot"
     175msgstr "Franja horaria de entrega"
     176
     177#: src/Privacy/PrivacyTools.php:160
     178msgid ""
     179"When you place an order, we store the delivery date you choose (and, if "
     180"offered, the delivery time slot) with your order, so we can prepare and "
     181"deliver it on that day. It is kept for as long as we keep the order and is "
     182"included when you request an export or erasure of your personal data."
     183msgstr ""
     184"Cuando haces un pedido, guardamos con él la fecha de entrega que eliges (y, "
     185"si se ofrece, la franja horaria de entrega) para poder prepararlo y "
     186"entregarlo ese día. Se conserva mientras conservemos el pedido y se incluye "
     187"cuando solicitas la exportación o el borrado de tus datos personales."
     188
     189#: src/Privacy/PrivacyTools.php:161
     190msgid ""
     191"The Daybound Delivery Date plugin does not send this information to its "
     192"developer or to any third party."
     193msgstr ""
     194"El plugin Daybound Delivery Date no envía esta información a su "
     195"desarrollador ni a terceros."
    168196
    169197#: src/Util/DateValidator.php:61 src/Util/DateValidator.php:74
  • daybound-delivery-date/trunk/languages/daybound-delivery-date-es_MX.po

    r3815868 r3816016  
    33"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/daybound-delivery-"
    44"date\n"
    5 "POT-Creation-Date: 2026-11-21T23:32:14+01:00\n"
     5"POT-Creation-Date: 2026-11-22T02:43:12+01:00\n"
    66"Language: es_MX\n"
    77"Content-Type: text/plain; charset=UTF-8\n"
    … …  
    155155msgstr "Ocurrió un error inesperado. Inténtalo de nuevo."
    156156
    157 #: src/Api/DeliveryDateExtend.php:282
     157#: src/Api/DeliveryDateExtend.php:305
    158158msgid ""
    159159"You are updating the delivery date too quickly. Please wait a moment and try "
    … …  
    166166msgid "Delivery date:"
    167167msgstr "Fecha de entrega:"
     168
     169#: src/Privacy/PrivacyTools.php:62
     170msgid "Delivery date"
     171msgstr "Fecha de entrega"
     172
     173#: src/Privacy/PrivacyTools.php:63
     174msgid "Delivery time slot"
     175msgstr "Franja horaria de entrega"
     176
     177#: src/Privacy/PrivacyTools.php:160
     178msgid ""
     179"When you place an order, we store the delivery date you choose (and, if "
     180"offered, the delivery time slot) with your order, so we can prepare and "
     181"deliver it on that day. It is kept for as long as we keep the order and is "
     182"included when you request an export or erasure of your personal data."
     183msgstr ""
     184"Cuando haces un pedido, guardamos con él la fecha de entrega que eliges (y, "
     185"si se ofrece, la franja horaria de entrega) para poder prepararlo y "
     186"entregarlo ese día. Se conserva mientras conservemos el pedido y se incluye "
     187"cuando solicitas la exportación o el borrado de tus datos personales."
     188
     189#: src/Privacy/PrivacyTools.php:161
     190msgid ""
     191"The Daybound Delivery Date plugin does not send this information to its "
     192"developer or to any third party."
     193msgstr ""
     194"El plugin Daybound Delivery Date no envía esta información a su "
     195"desarrollador ni a terceros."
    168196
    169197#: src/Util/DateValidator.php:61 src/Util/DateValidator.php:74
  • daybound-delivery-date/trunk/languages/daybound-delivery-date.pot

    r3815868 r3816016  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Daybound Delivery Date for WooCommerce 1.0.0\n"
     5"Project-Id-Version: Daybound Delivery Date for WooCommerce 1.0.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/daybound-delivery-date\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    … …  
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2026-11-21T23:32:14+01:00\n"
     12"POT-Creation-Date: 2026-11-22T02:43:12+01:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
    … …  
    139139msgstr ""
    140140
    141 #: src/Api/DeliveryDateExtend.php:282
     141#: src/Api/DeliveryDateExtend.php:305
    142142msgid "You are updating the delivery date too quickly. Please wait a moment and try again."
    143143msgstr ""
    … …  
    146146#: assets/build/checkout-extension.js:1
    147147msgid "Delivery date:"
     148msgstr ""
     149
     150#: src/Privacy/PrivacyTools.php:62
     151msgid "Delivery date"
     152msgstr ""
     153
     154#: src/Privacy/PrivacyTools.php:63
     155msgid "Delivery time slot"
     156msgstr ""
     157
     158#: src/Privacy/PrivacyTools.php:160
     159msgid "When you place an order, we store the delivery date you choose (and, if offered, the delivery time slot) with your order, so we can prepare and deliver it on that day. It is kept for as long as we keep the order and is included when you request an export or erasure of your personal data."
     160msgstr ""
     161
     162#: src/Privacy/PrivacyTools.php:161
     163msgid "The Daybound Delivery Date plugin does not send this information to its developer or to any third party."
    148164msgstr ""
    149165
  • daybound-delivery-date/trunk/readme.txt

    r3815868 r3816016  
    77WC requires at least: 8.3
    88WC tested up to: 11.3
    9 Stable tag: 1.0.0
     9Stable tag: 1.0.1
    1010License: GPLv2 or later
    1111License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    8080== Changelog ==
    8181
     82= 1.0.1 =
     83* Privacy: delivery dates and time slots are now included in WooCommerce's personal data export and removed when an order is anonymized (Tools → Erase Personal Data, or order retention).
     84* Privacy: suggested text for your privacy policy (Settings → Privacy → Policy Guide).
     85* Deleting the plugin now removes its settings (orders keep their delivery dates).
     86* Security hardening: the delivery date is only saved when the order is actually placed, not while the checkout draft is being updated.
     87
    8288= 1.0.0 =
    8389* Initial public release.
    … …  
    95101== Upgrade Notice ==
    96102
     103= 1.0.1 =
     104Privacy tools integration (export/erase personal data), clean uninstall and a security hardening of the checkout. Recommended for all stores.
     105
    97106= 1.0.0 =
    98107First public release. Requires WooCommerce 8.3+ with the block checkout, WordPress 6.6+, and PHP 8.0+.
  • daybound-delivery-date/trunk/src/Api/DeliveryDateExtend.php

    r3815868 r3816016  
    164164
    165165        /**
     166         * Whether a checkout request is the actual order placement.
     167         *
     168         * WooCommerce fires the same "update order from request" hook for `PUT /checkout`,
     169         * which only refreshes the draft order and takes no payment. Writing the date there
     170         * would let anyone book delivery days without buying (filling the Pro daily capacity)
     171         * and would clear the shopper's session date before they actually order.
     172         *
     173         * @param mixed $request The checkout request (a WP_REST_Request).
     174         * @return bool False only for a request that is clearly not a POST.
     175         */
     176        public static function is_order_placement( $request ): bool {
     177                if ( ! is_object( $request ) || ! method_exists( $request, 'get_method' ) ) {
     178                        return true;
     179                }
     180
     181                return 'POST' === strtoupper( (string) $request->get_method() );
     182        }
     183
     184        /**
    166185         * Persist the session delivery date onto the order during checkout.
    167186         *
    … …  
    178197         */
    179198        public function save_delivery_date_to_order( $order, $request ): void {
    180                 unset( $request ); // Date is sourced from the session, not the request body.
     199                // The date itself comes from the session, never from the request body. The request
     200                // only tells us whether this is the real order placement (see is_order_placement()).
     201                if ( ! self::is_order_placement( $request ) ) {
     202                        return;
     203                }
    181204
    182205                try {
  • daybound-delivery-date/trunk/src/Plugin.php

    r3815868 r3816016  
    1313use Daybound\Admin\OrderMeta;
    1414use Daybound\Frontend\OrderDisplay;
     15use Daybound\Privacy\PrivacyTools;
    1516
    1617/**
    … …  
    6970                // Shopper-facing display of the saved date (order confirmation, account, emails).
    7071                ( new OrderDisplay() )->register();
     72
     73                // Personal data export/erasure + privacy policy text. Not admin-only: erasure
     74                // can also run from WooCommerce's scheduled order-retention cleanup.
     75                ( new PrivacyTools() )->register();
    7176
    7277                // Admin surfaces (Settings page + order column/detail). Registered only in the
Note: See TracChangeset for help on using the changeset viewer.