Plugin Cart Processing Causing Failures for Other Shipping Methods
Closed this issue · 0 comments
timnolte commented
Describe the bug
When Pickup Time is setup for a Local Pickup shipping method orders can't be submitted using a non-Local Pickup shipping method. The error "Expired or invalid submission!." is returned to the screen and prevents checkout. The following section of code processes the cart and is believed to be returning the error:
woocommerce-local-pickup-time/public/class-local-pickup-time.php
Lines 877 to 895 in d8c8c77
Issue References:
- https://wordpress.org/support/topic/expired-or-invalid-submission-error-message/
- https://wordpress.org/support/topic/keeps-getting-expired-or-invalid-submission-error-message/
Additional code to check:
To Reproduce
Steps to reproduce the behavior:
- Go to a shop.
- Add an item to the cart.
- Proceed to checkout.
- Choose a non-Local Pickup shipping method.
- Click to Checkout.
Screenshots
Expected behavior
When checking out with a non-Local Pickup shipping method with Pickup Time enabled a customer should be able to successfully checkout.
Isolating the problem (mark completed items with an [x]):
- I have deactivated other plugins and confirmed this bug occurs when only WooCommerce and this plugin are active.
- This bug happens with a default WordPress theme active, or Storefront.
- I can reproduce this bug consistently using the steps above.
WordPress Environment
- Website URL: https://test.wclocalpickup.com/checkout/
- PHP Version: 7.4
- WordPress Version: 6.0.1
- WooCommerce Version: 6.7.0
- Plugin Version: 1.4.1