WooCommerce 9.8.2: Dot Release

WooCommerce 9.8.2 has been released

This release fixes issues with Checkout field validation and Coming Soon pages as well as clearing up PHP notices and addressing PHP 8.4 compatibility.

Current Stable Tag

👉 WooCommerce 9.8.2

  • Released April 22, 2025

Fix coming soon breaks other page

🛠️ Fix coming soon breaks other page (#57216)

This fix addresses an edge case error occurring when the checkout page is set to a non-default page. We were using page_slug to match the coming soon page, but when the checkout page is set to a non-default page, the page_slug to match the coming soon page is not correct. We’ve removed the slug check and only use the page ID to match the coming soon page which is more reliable.

Fix deprecated function WCAdminHelper::is_store_page()

🛠️ Fix deprecated function WCAdminHelper::is_store_page() used (#57169)

WCAdminHelper::is_store_page() has been deprecated in favor of WCAdminHelper::is_current_page_store_page() since WC 9.8. This PR updates the the is_store_page() calls in the LaunchYourStore class to the new method to avoid deprecation warnings. The warning only appeared when admin users is on the store pages when store is in coming soon store only mode.

Fix implicitly nullable parameters deprecation warnings

🛠️ Fix implicitly nullable parameters deprecation warnings in PluginsHelper and CheckoutSchema (#57212)

Beginning with PHP 8.4, implicitly nullable parameters in function signatures (such as function f( int $x = null )will trigger a deprecation notice. Those parameters now have to be explicitly made nullable (i.e. function f( ?int $x = null )). This fix makes the relevant code changes related to the PluginsHelper and CheckoutSchema functionality to reduce the amount of noise when running under this PHP version.

Fix issue in which client side validation in checkout didn’t work

🛠️ Cherrypick validate fields on checkout client for 9.8 (#57278)

We’ve fixed an issue in which Checkout validation for postal code and email would not work. This was only visible if you didn’t have additional fields installed.

Fix undefined variable warning when saving billing address

🛠️ Fix PHP warning when saving billing address (#57189)

We’ve cleared a PHP notice related to additional fields/edit account.

Fix WooCommerce admin scripts loading on unrelated WP admin pages

🛠️ Fix loading wc admin scripts on unrelated WP admin pages (#57186)

We’ve fixed a bug where the settings-deprecation script is loaded on all admin pages without any condition, so all its dependencies are also loaded. This update adds a condition to check if the current page is an admin or embed page before loading deprecation scripts to ensure we only load the script on relevant pages.

Fix – Store API – Move cart init and validation back within checkout route to avoid loading early

⏪ Revert #55299 to handle sessions and cart tokens when the request is available (#57255)

We reverted some changes in 9.8 so that session is loaded when a WP_Rest_Request object is available, rather than early during rest_api_init.

Because of this change, validate_callback under the checkout route needed some modifications so that it runs later still, has access to cart, and handles sanitized data since it no longer has access to the unsanitized values. This is to fix an inconsistent bug in WooPay where sometimes the session would not be loaded and cause an email validation error blocking checkout.

Update – Ensure shipping calculations happen only when a full address has been provided

🔄 Prevent shipping rates being hidden when fields are disabled in shipping calculator/checkout fields (#57176)

This PR consolidates shipping address handling between blocks and the legacy cart shortcode. needs_shipping() and show_shipping() are refactored to use the WC_Customer->has_full_shipping_address() class method to see if a full shipping address has been provided.

WC_Cart_Totals no longer checks show_shipping, instead opting to just grab whatever has been calculated in the cart. Finally, the WC_Cart class tracks if calculations have ran or not, so we no longer need to derive this from the Store API.

⏪ Fix: Remove Product Collection’s Store Notices wrapper #57275

After the markup of the Product Collection block was updated due to some changes in the Interactivity API, the default spacing between the product grid and the navigation links disappeared in some themes. We shipped a fix that addresses that and makes the Product Collection block to render as it used to.


11 responses to “WooCommerce 9.8.2: Dot Release”

  1. I am using woodmart theme and i was doing some changes for speed optimization , after sometime i noticed shop page filter were not working , for 9-10 hours i kept looking what went wrong , and just now an update came and it was fixed. WOW

  2. Is this issue resolved? If so, please close it
    https://github.com/woocommerce/woocommerce/issues/50686

  3. Hi , have y’all resolved the issue of the checkout page endless loading and spinning ? I have a client experiencing this problem at this current time.

    1. Brent MacKinnon Avatar
      Brent MacKinnon

      Hey Richard, can you tell me more about what you’re experiencing? Would you mind sharing the site your’e experiencing issues with? You could also contact me in the Woo Slack Community or email be brent.mackinnon@a8c.com if you can share more information.

  4. Had to downgrade again to 9.7.1. First there was no shipping method error. Now the shipping flat rate based on location doesn’t show anything and it becomes zero by default. Had to downgrade again for fix. Kindly test thoroughly before releasing update. Shipping method flat rate based on location doesn’t work and show at all in latest version

  5. After updating to WooCommerce 9.8.2, the product attribute filters are no longer showing.
    How do I fix this please

    1. Tung Du Avatar

      Hi Cala,

      Can you share more information about your issue? I tested a fresh installation with WooCommerce 9.8.2 and the filter is still working as expected on my test store: https://cloudup.com/c6GOHqi2-Qf. If you can share how you’re setting up the filter (or steps to reproduce the issue), it’ll be easier for us to find the reason it’s not working on your store.

      For technical questions like this, GitHub is the best place to ask and get help. If you can, please open an issue on our GitHub repository at https://github.com/woocommerce/woocommerce/issues/new/choose with steps to reproduce. Thanks!

  6. Hello, after updating to 9.8.2, Shipping Costs are not calculated and added in the cart. I have checked shipping zone and methods configuration, those are perfectly configured. Kindly help to fix this.

    1. Thomas Roberts Avatar
      Thomas Roberts

      Hi! Thanks for getting in touch with us about this, we are aware of this issue and believe that it is caused by third party code incorrectly modifying checkout fields. Are you using a plugin that changes the checkout fields?

      We are working on a fix on our end to try to prevent this error too, we will update the blog to let folks know when we have found a fix and begin preparing a patch.

  7. Hello Thomas, Thank you for your prompt reply. No, I don’t use any plugin to modify checkout fields. So, eagerly waiting for you guys to fix this issue. All my customers are getting free shipping right now 🙁

    1. Thomas Roberts Avatar
      Thomas Roberts

      Rezaul, thanks for the additional information. Please could you join this discussion:

      https://github.com/woocommerce/woocommerce/issues/57463

      and share your system status report (https://woocommerce.com/document/understanding-the-woocommerce-system-status-report/#system-status)

      Please also provide screenshots of your shipping pages, as described in the comment here: https://github.com/woocommerce/woocommerce/issues/57463#issuecomment-2843217538

      It would be great if you could also share a screen recording! Thank you.

Leave a Reply

Your email address will not be published. Required fields are marked *