TycheSoftwares / order-delivery-date-for-woocommerce

WooCommerce Delivery Date Lite
8 stars 5 forks source link

The delivery date is not blocked even after the time slot lockout value is reached #573

Open apeksha10 opened 1 month ago

apeksha10 commented 1 month ago

Prerequisites

Describe the bug

The delivery date is not blocked even after the time slot lockout value is reached

Steps to reproduce

  1. Delivery Time slot setup.

    2024-10-22_11-48-39
  2. Placed an order for the delivery date 28th Oct, 14:00-15:00 time slot.

    2024-10-22_11-50-02
  3. Again try to add product to the cart page, I noticed that 28th Oct is available with No time slot.

    2024-10-22_11-51-18

Note: Above issue is replicated with PHP 8.2 only. I recheck same test case with PHP 7.4 then it worked well.

Expected behavior

The delivery date should get blocked if the time slot lockout value is reached.

WordPress Environment

System Status Report ``` ### WordPress Environment ### WordPress address (URL): [Redacted] Site address (URL): [Redacted] WC Version: 9.3.3 Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site. Action Scheduler Version: ✔ 3.8.1 Log Directory Writable: ✔ WP Version: 6.6.2 WP Multisite: – WP Memory Limit: 128 MB WP Debug Mode: ✔ WP Cron: ✔ Language: en_US External object cache: – ### Server Environment ### Server Info: Apache/2.4.57 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1f PHP Version: 8.2.7 PHP Post Max Size: 256 MB PHP Time Limit: 300 PHP Max Input Vars: 1000 cURL Version: 7.68.0 OpenSSL/1.1.1f SUHOSIN Installed: – MySQL Version: 10.11.4-MariaDB-1:10.11.4+maria~ubu2004 Max Upload Size: 256 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### [REDACTED] ### Post Type Counts ### attachment: 5652 page: 8 post: 1 product: 5119 product_variation: 1924 revision: 1 shop_order_placehold: 224254 wp_navigation: 1 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (6) ### Query Monitor: by John Blackbourn – 3.16.4 Order Delivery Date for WooCommerce (Lite version): by Tyche Softwares – 3.23.0 WooCommerce: by Automattic – 9.3.3 WP Crontrol: by John Blackbourn – 1.17.0 WP Mail SMTP: by WP Mail SMTP – 4.1.1 WPForms Lite: by WPForms – 1.9.1.4 ### Inactive Plugins (5) ### Abandoned Cart Pro for WooCommerce: by Tyche Softwares – 9.10.0 Auto Archive Orders for WooCommerce: by Tyche Softwares – 1.0 Generate Random Orders For WooCommerce: by WP Zone – 1.0.0 Product Import Export for WooCommerce: by WebToffee – 2.4.5 WooCommerce Product Generator: by itthinx – 1.0.1 ### Settings ### Legacy API Enabled: – Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – Enforce Approved Product Download Directories: ✔ HPOS feature enabled: ✔ Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore HPOS data sync enabled: – ### Logging ### Enabled: ✔ Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2 Retention period: 30 days Level threshold: – Log directory size: 15 KB ### WC Pages ### Shop base: #7 - /shop/ Cart: #8 - /cart/ - Contains the woocommerce/cart block Checkout: #275903 - /checkout-2/ - Contains the [woocommerce_checkout] shortcode My account: #10 - /my-account/ Terms and conditions: ❌ Page not set ### Theme ### Name: Storefront Version: 4.6.0 Author URL: https://woocommerce.com/ Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ✔ ### Templates ### Overrides: – ### Admin ### Enabled Features: activity-panels analytics product-block-editor coupons core-profiler customize-store customer-effort-score-tracks import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks pattern-toolkit-full-composability product-custom-fields remote-inbox-notifications remote-free-extensions payment-gateway-suggestions printful shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page launch-your-store Disabled Features: experimental-blocks minified-js product-pre-publish-modal settings async-product-editor-category-field product-editor-template-system blueprint reactify-classic-payments-settings Daily Cron: ✔ Next scheduled: 2024-10-22 15:50:30 +05:30 Options: ✔ Notes: 68 Onboarding: - ### Action Scheduler ### Complete: 345,146 Oldest: 2024-08-30 06:31:50 +0000 Newest: 2024-10-22 06:13:28 +0000 Failed: 6 Oldest: 2024-08-30 04:22:29 +0000 Newest: 2024-10-22 05:55:57 +0000 Pending: 7 Oldest: 2024-10-23 05:55:57 +0000 Newest: 2024-10-28 08:30:00 +0000 ### Status report information ### Generated at: 2024-10-22 11:53:35 +05:30 ```

Isolating the problem

Additional field

No response