WooCommerce 9.8.2: Dot Release

WooCommerce 9.8.2 has been released

Current Stable Tag

๐Ÿ‘‰ WooCommerce 9.8.2

  • Released April 22, 2025

Whatโ€™s in this release

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.

Reposted from WooCommerce

If you have a care plan with 7th Circle Designs this update will be taken care of based on your plan’s schedule. If you do not have a care plan, sign up now.