HasteDesign / Registrations-for-WooCommerce

Add a registration product type to your WooCommerce installation.
GNU General Public License v2.0
38 stars 16 forks source link

If days before set to 0 can still register for past events #46

Open ZeroGravityWeb opened 3 years ago

ZeroGravityWeb commented 3 years ago

Describe the bug If “Prevent registrations to past events” is selected and the days before is set to “0” people can still register for past events. Setting days before to 1 or more you cannot register.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Edit Product'
  2. Check 'Prevent registrations to past events'
  3. Set 'Days before' to "0"
  4. Add a date and variation for a past date.
  5. Go to the product page.
  6. Select the past date from the date dropdown.
  7. Click "Add to cart"
  8. The product is added to the cart.

Expected behavior As long as 'Days before' is set to 0 or greater you shouldn't be able to add to the cart if the current date is after the selected date.

WordPress Environment `

WordPress Environment

WordPress address (URL): https://dunamasdev.wpengine.com Site address (URL): https://dunamasdev.wpengine.com WC Version: 4.4.1 REST API Version: ✔ 1.0.15 WC Blocks Version: ✔ 3.1.0 Action Scheduler Version: ✔ 3.1.6 WC Admin Version: ✔ 1.4.0 Log Directory Writable: ✔ WP Version: 5.5.1 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: ✔ WP Cron: ✔ Language: en_US External object cache: –

Server Environment

Server Info: Apache PHP Version: 7.4.6 PHP Post Max Size: 100 MB PHP Time Limit: 3600 PHP Max Input Vars: 10000 cURL Version: 7.58.0 OpenSSL/1.1.1

SUHOSIN Installed: – MySQL Version: 5.7.29-32-log Max Upload Size: 50 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔

Database

WC Database Version: 4.4.1 WC Database Prefix: wp_ Total Database Size: 14.89MB Database Data Size: 11.50MB Database Index Size: 3.39MB wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 0.13MB + Index: 0.14MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_actions: Data: 0.02MB + Index: 0.11MB + Engine InnoDB wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 0.08MB + Index: 0.09MB + Engine InnoDB wp_duplicator_packages: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_eo_events: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_eo_venuemeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_layerslider: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_masterslider_options: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_masterslider_sliders: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mts_wp_reviews: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_options: Data: 1.38MB + Index: 0.09MB + Engine InnoDB wp_postmeta: Data: 5.39MB + Index: 0.81MB + Engine InnoDB wp_posts: Data: 1.47MB + Index: 0.13MB + Engine InnoDB wp_revslider_css: Data: 0.13MB + Index: 0.00MB + Engine InnoDB wp_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_sliders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_slides: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_static_slides: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_usermeta: Data: 0.13MB + Index: 0.09MB + Engine InnoDB wp_useronline: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_download_log: Data: 0.41MB + Index: 0.34MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Data: 0.05MB + Index: 0.06MB + Engine InnoDB wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wdr_order_discounts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wdr_order_item_discounts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wdr_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfBadLeechers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfBlockedIPLog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfBlocks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfBlocksAdv: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfConfig: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfCrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfFileMods: Data: 0.47MB + Index: 0.00MB + Engine InnoDB wp_wfHits: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wfHoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfIssues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfLeechers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfLockedOut: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfLocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfLogins: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfNet404s: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfReverseCache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfScanners: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfStatus: Data: 0.13MB + Index: 0.09MB + Engine InnoDB wp_wfThrottleLog: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfVulnScanners: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yoast_indexable: Data: 0.25MB + Index: 0.11MB + Engine InnoDB wp_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yoast_seo_links: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB

Post Type Counts

amn_mi-lite: 1 attachment: 232 ctct_forms: 3 ctct_lists: 25 customize_changeset: 1 event: 4 kwlogos: 9 ml-slider: 3 nav_menu_item: 32 page: 65 post: 16 product: 23 product_variation: 13 revision: 22 shop_coupon: 3 shop_order: 121 sp_wp_carousel: 1 vegas: 1

Security

Secure connection (HTTPS): ✔ Hide errors from visitors: ✔

Active Plugins (29)

ManageWP - Worker: by GoDaddy – 4.9.7 ARVE Advanced Responsive Video Embedder: by Nicolas Jonas – 8.10.27 Akismet Anti-Spam: by Automattic – 4.1.6 Black Studio TinyMCE Widget: by Black Studio – 2.6.9 Classic Editor Addon: by Pieter Bos Greg Schoppe – 2.6.3

Classic Editor: by WordPress Contributors – 1.6 Constant Contact Forms for WordPress: by Constant Contact – 1.8.7 Core Functionality: by Zero Gravity Web Design – 1.3.0 Potent Donations for WooCommerce: by Potent Plugins – 1.1.3 – Installed version not tested with active version of WooCommerce 4.4.1 Duplicate Page: by mndpsingh287 – 4.3 Find Posts Using Attachment: by Sergey Biryukov – 1.0 Genesis Columns Advanced: by Nick Diego – 2.0.3 Genesis Connect for WooCommerce: by StudioPress – 1.1.1 Genesis Featured Page Advanced: by Nick Diego – 1.9.7 Genesis Widget Column Classes: by Jory Hogeveen – 1.3 Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.1.3 Registrations for WooCommerce: by Haste - design and technology Allyson Souza Anyssa Ferreira – 2.0.5 – Installed version not tested with active version of WooCommerce 4.4.1

Shortcake (Shortcode UI): by Fusion Engineering and community – 0.7.4 Page Builder by SiteOrigin: by SiteOrigin – 2.11.2 SiteOrigin Widgets Bundle: by SiteOrigin – 1.17.6 Social Media Feather: by socialmediafeather – 2.0.1 Sucuri Security - Auditing, Malware Scanner and Hardening: by Sucuri Inc. – 1.8.24 Very Simple Google Maps: by Michael Aronoff – 2.8.4 Woo Discount Rules: by Flycart Technologies LLP – 2.2.0 WooCommerce Menu Cart: by Jeremiah Prummer Ewout Fernhout – 2.9.5

WooCommerce: by Automattic – 4.4.1 Yoast SEO: by Team Yoast – 14.9 WordPress Carousel: by ShapedPlugin – 2.1.11 – Installed version not tested with active version of WooCommerce 4.4.1 WP-UserOnline: by Lester 'GaMerZ' Chan – 2.87.5

Inactive Plugins (13)

BackupBuddy: by iThemes – 8.6.0.0 Dreamstime Stock Photos: by Dreamstime – 3.5 Email Encoder - Protect Email Addresses: by Ironikus – 2.0.8 Envato WordPress Toolkit: by Envato – 1.7.3 Event Organiser: by Stephen Harris – 3.10.1 Google Analytics for WordPress by MonsterInsights: by MonsterInsights – 7.12.2 HubSpot All-In-One Marketing - Forms, Popups, Live Chat: by HubSpot – 7.41.0 HubSpot Tracking Code for WordPress: by HubSpot – 1.2.2 Image Widget: by Modern Tribe Inc. – 4.4.7

Mouseflow for Wordpress: by Mouseflow – 5.0.2 Responsive WordPress Slider - Soliloquy Lite: by Soliloquy Team – 2.6.1 WP Review: by MyThemeShop – 5.3.3 WP Shortcode by MyThemeShop: by MyThemeShop – 1.4.16

Dropin Plugins (1)

advanced-cache.php: advanced-cache.php

Must Use Plugins (5)

Force Strong Passwords - WPE Edition: by Jason Cosper – 1.6.4 ManageWP - Worker Loader: by GoDaddy – WP Engine Seamless Login Plugin: by WP Engine – 1.5.5 WP Engine Security Auditor: by wpengine – 1.0.9 WP Engine System: by WP Engine – 4.0.0

Settings

API Enabled: ✔ Force SSL: ✔ Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: donation (donation) external (external) grouped (grouped) registrations (registrations) simple (simple) variable (variable) woosb (woosb)

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: –

WC Pages

Shop base: #43 - /store Cart: #161 - /cart Checkout: #162 - /checkout My account: #163 - /my-account Terms and conditions: ❌ Page not set

Theme

Name: Dunamas Center Ministries Version: 1.1.0 Author URL: https://www.seothemes.com/ Child Theme: ✔ Parent Theme Name: Genesis Parent Theme Version: 3.3.3 Parent Theme Author URL: https://www.studiopress.com/ WooCommerce Support: ✔

Templates

Overrides: –

Action Scheduler

Complete: 6 Oldest: 2020-09-02 12:09:43 -0600 Newest: 2020-09-02 13:53:41 -0600

`