Changelog

  • A new version of WooCommerce Blocks has been released! Version 5.4.0 is now available for download from GitHub and WordPress.org.

    This release includes updates to the express payment section in Cart and Checkout blocks, an update to the hand-picked block, and several bug fixes.

    Changelog

    Enhancements

    • Made script and style handles consistent. (4324)
    • Show loading state in the express payments area whilst payment is processing or the page is redirecting. (4228)
    • Allow products to be added by SKU in the Hand-Picked Products block. (4366)

    Bug Fixes

    • Fix a warning shown when fees are included in the order. (4360)
    • Prevent PHP notice for variable products without enabled variations. (4317)

    Various

    • Add Slot in the Discounts section of the Checkout sidebar to allow third party extensions to render their own components there. (4310)

  • The first beta package for WooCommerce 5.5.0 is now available as part of the July release cycle. You can download directly from WordPress.org or through our WooCommerce Beta Tester Plugin.

    Highlights

    1. IE 11 support will not be available from this version.
    2. WooCommerce Blocks 5.2.0, 5.3.0, and 5.3.1. These updates contain a number of enhancements, bug fixes, and some behind-the-scenes work to allow third-party extensions to integrate with the Cart and Checkout blocks. Additionally, there’s been a change-around in the sidebar of the Cart and Checkout blocks.
    3. Action Scheduler 3.2.0 and 3.2.1. We have updated AS library from 3.1.6 to 3.2.1 in this release. This release comes with lots of fixes, especially around reducing deadlocks and increasing performance for sites with heavy traffic.
    4. WooCommerce Admin 2.4.0. This new package contains lots of bug fixes and stability improvements. 
    5. We have refactored the settings page infrastructure to allow for features like import/export of settings in future releases. Please check the related developer advisory.
    6. We have changed the names of the “Products” and “Products by Rating” widgets to “Products list” and “Product by Rating list”. The IDs of the widget are unchanged. If you have custom code or a plugin that relies on these widget names, make sure to change your code to use ID instead. #29941
    7. To better support the Payment Request Button on a cart page, we will pre-assign the default value to every checkout field if it’s defined. #29820

    You can see more notable improvements in this list of PRs. For all the changes in all the included packages, see the changelog file.

    Filters and actions

    This release adds one filter:

    FilterDescription
    woocommerce_should_load_paypal_standardAllow third-parties to filter whether PayPal Standard should be loaded or not

    Database changes

    There are no database changes in this release.

    Template changes

    In template templates/emails/customer-invoice.php condition is updated to use designated function instead of checking status. #29833

    Release schedule

    VersionRelease
    BetaJune 22, 2021
    Release CandidateJune 29, 2021
    5.5 Final ReleaseJuly 13, 2021
    Release schedule for 5.5

    Testing

    If you’d like to dive in and help test this new release, our handy WooCommerce Beta Tester plugin allows you to switch between beta versions and release candidates. You can also download the release from wordpress.org.

    A set of testing instructions has been published on our Wiki page in GitHub. We’ve also posted a helpful writeup on beta testing to help get you started.

    If you discover any bugs during the testing process, please let us know by logging a report in GitHub.


  • Today we released a patch version of WooCommerce Blocks which includes several fixes and improvements in preparation for WordPress 5.8. It’s version 5.3.1 and is available on WordPress.org and GitHub.

    The fixes are mostly related to the way WC Blocks are presented in the Site Editor, which internally works a bit differently from the block editor to create posts or pages, so some of our styles had to be updated.

    Changelog

    • Fix Product Categories List block display in Site Editor (#4335).
    • Make links in the Product Categories List block unclickable in the editor (#4339).
    • Fix rating stars not being shown in the Site Editor (#4345).

  • Following today’s developer advisory, this release focuses on resolving issues caused as a result of the migration to jQuery 3.

    Changelog

    • Fix – Update jQuery compatibility changes to trim functions to work with types other than string. (#30074)
    • Fix – Restores the option to load and copy addresses to orders edited in the dashboard. (#30076)

    You can download the latest release of WooCommerce here or visit Dashboard → Updates to update the plugin from your WordPress admin screen.

    As usual, if you spot issues in WooCommerce core, please log them in detail on GitHub. Found a security issue? Please submit a report via HackerOne.


  • tl;dr

    The recent release of WooCommerce 5.4 has been pulled from availability to limit the impact of a jQuery-related bug until a fix is available in version 5.4.1.

    The details

    WooCommerce 5.4, which was released yesterday, contains a jQuery-related bug that may break payment gateways by providing the wrong data type to a function. You can read more about this bug in the related issue on GitHub. A fix is currently in the works and will be released with WooCommerce 5.4.1. Because of the potential impact this issue could have on merchants, we have reverted to WooCommerce 5.3 as the most stable release. This will help minimize disruption to merchants who have not yet upgraded to version 5.4 while the core team conducts thorough testing of the forthcoming fix release against payment gateways.

    How can I tell if this affects me?

    If you have updated to WooCommerce 5.4, this bug could potentially impact you. A telltale sign is one or more TypeError exceptions in your browser’s JavaScript console stemming from the trim() function when validating credit cards.

    Stores that are still running WooCommerce 5.3 should not be impacted.

    What action should I take?

    If you have already upgraded to WooCommerce 5.4 and are affected by this bug, you can safely downgrade to WooCommerce 5.3. Even if you are not affected by the issue, we recommend upgrading to WooCommerce 5.4.1 as soon as it is available.


  • The fifth minor release of 2021, WooCommerce 5.4, has been officially released! We’ve been hard at work and this release has

    This is another minor release and so you should expect everything included to be backwards compatible with the previous version.

    As always, we recommend creating a backup of your site and making sure that the themes and plugins are compatible before updating. You can check out this update guide for more information.

    What’s new in 5.4?

    • jQuery 3 Compatibility: In preparation for WordPress Core’s plan to update jQuery, we have addressed our usage of it accordingly. (#29044)
    • WooCommerce Blocks 5.1.0: The package update includes 5.0.0 and 5.1.0. Please note that most content included in Blocks updates is not present in WooCommerce unless the WooCommerce Blocks feature plugin is active.
    • WooCommerce Admin 2.3.1: This package update includes a number of fixes and quality of life tweaks.

    These are just some of the changes that are included in WooCommerce 5.4. You can find the complete changelog for this release in the changelog.txt file.

    Compatibility Changes

    Our aim is to maintain backwards compatibility through every release unless otherwise noted. This section contains any alternations that may be noteworthy for developers in pursuit of that.

    REST API

    We’ve added the dates_are_gmt parameter to coupon, product, and order collection endpoints. When true, this parameter causes the after and before date fields to check post_date_gmt instead of the local time variant.

    Actions & Filters

    There are no changes to actions or filters in this release.

    Database

    There are no database changes in this release.

    Templates

    There are no changes to templates in this release.

    Much 💜 to all the contributors

    Finally a big thanks to everyone in the community who has contributed via issue reports, fixes, translation, testing, supporting other users, or simply spreading the word.

    WooCommerce Core

    claudiosanches roykho ObliviousHarmony rodelgc Konamiman rrennick
    claudiosanches roykho ObliviousHarmony rodelgc Konamiman rrennick
    asumaran vedanshujain jonathansadowski barryhughes haszari menakas
    asumaran vedanshujain jonathansadowski barryhughes haszari menakas
    frontdevde zhongruige psealock andfinally lsinger geektzu
    frontdevde zhongruige psealock andfinally lsinger geektzu
    timmyc deltaWhiskey Aljullu mahdiyazdani nerrad
    timmyc deltaWhiskey Aljullu mahdiyazdani nerrad

    WooCommerce Admin

    joshuatf samueljseay louwie17 jeffstieler joelclimbsthings psealock
    joshuatf samueljseay louwie17 jeffstieler joelclimbsthings psealock
    moon0326 ilyasfoo tomalec becdetat timmyc grassfedfarmboi
    moon0326 ilyasfoo tomalec becdetat timmyc grassfedfarmboi
    rrennick lowwebtech adrianduffell mikkamp NeosinneR dgwatkins
    rrennick lowwebtech adrianduffell mikkamp NeosinneR dgwatkins
    hsingyuc
    hsingyuc

    WooCommerce Blocks

    opr mikejolley senadir ralucaStan Aljullu frontdevde
    opr mikejolley senadir ralucaStan Aljullu frontdevde
    sebcode nerrad
    sebcode nerrad

    Action Scheduler

    vedanshujain barryhughes Konamiman jonathansadowski glagonikas
    vedanshujain barryhughes Konamiman jonathansadowski glagonikas

  • A new version of WooCommerce Blocks has been released! Version 5.3.0 is now available for download from GitHub and WordPress.org.

    This release includes a number of enhancements, bug fixes, and some behind-the-scenes work to allow third party extensions to integrate with the Cart Block.

    Summary

    Getting ready for the future

    Two changes have been made when it comes to adding WooCommerce blocks to the new block widget and the Customizer block widget editor:

    Block transforms are now available for legacy widgets that have a block equivalent: Product Search, Product Categories and Recent Product Reviews.

    BEFOREAFTER
    Screenshot 2021-05-31 at 12 11 27Screenshot 2021-05-31 at 12 10 37

    Additionally, the Cart and Checkout blocks will no longer be available in these two areas.

    Bug fixes

    We are happy to announce that the missing translations bug from the Cart and Checkout blocks has now been fixed. Along with other Cart and Checkout block bugs, we managed to fix bugs related to adding products to the cart, namely adding out of stock products from blocks with products, and updating the Mini Cart widget when purchasing from the All products block.

    Working with Blocks

    We added a new experimental integration point that will allow extensions to register a PHP callback that will be executed when the cart/extensions endpoint is hit. Blocks will use this endpoint to update the cart from the server, giving extensions a chance to modify the cart, or do any other server-side processing.

    An experimental slot has been added to the Discounts section in the Cart Block’s sidebar, where extensions can render their own components.

    Changelog

    Enhancements

    • Hide the Cart and Checkout blocks from the new block-based widget editor. (4303)
    • Provide block transforms for legacy widgets with a feature-complete block equivalent. (4292)

    Bug Fixes

    • Fix some missing translations from the Cart and Checkout blocks. (4295)
    • Fix the flickering of the Proceed to Checkout button on quantity update in the Cart Block. (4293)
    • Fix a bug in which Cart Widget didn’t update when adding items from the All Products block. (4291)
    • Fix a display issue when itemized taxes are enabled, but no products in the cart are taxable. (4284)
    • Fix an issue where an attempt to add an out-of-stock product to the cart was made when clicking the “Read more” button. (4265)

    Compatibility

    • Add the ability for extensions to register callbacks to be executed by Blocks when the cart/extensions endpoint is hit. Extensions can now tell Blocks they need to do some server-side processing which will update the cart. (4298)

    Various

    • Add Slot in the Discounts section of the cart sidebar to allow third party extensions to render their own components there. (4248)

  • A new version of ActionScheduler is now rolled out and available for download. This version will also be included with WooCommerce 5.5 (July release) and onwards.

    Notable changes in this release includes:

    1. Add a new index to the action table, reducing the potential for deadlocks. #695
    2. Additional safeguards put in place against processing future actions too early. #668, #671
    3. Add support for specifying no ordering when querying actions. #651
    4. When used alongside WooCommerce, additional diagnostic information (the active database store) is added to the System Status Report. #569
    5. Performance enhancements partly focused on the clean-up of expired actions. #678
    6. PHP8 compatibility fixes.

    You can see the complete list of all the new commits in GitHub.

    Thanks everyone for contributing for this release.


  • A new version of WooCommerce Blocks has been released! Version 5.2.0 is now available for download from GitHub and WordPress.org.

    This release includes a number of enhancements, bug fixes, and some behind-the-scenes work to allow third party extensions to integrate with the Cart and Checkout blocks. Additionally, there’s been a change-around in the sidebar of the Cart and Checkout blocks!

    To kick things off, let’s talk about the design changes…

    Design Changes

    Summary

    These changes include incremental design improvements to the order breakdown area of the Cart and Checkout blocks.

    The Shipping, Subtotals and Tax breakdowns now live in their own sections. The rationale behind these changes was to create more distinction between cost areas to give the customer a better picture of their cost and order summary.

    BeforeAfter

    View original size

    View original size
    Before and after images of the sidebar in the Cart block

    Shipping Section

    There is now an isolated shipping section that includes only information related to the shipping options and the shipping location.

    Taxes Section

    As part of the shipping section improvement on the order summary of the Checkout block, the taxes totals have been isolated as a section with a breakdown appearing below indicating the sales tax value and any other tax-related charges incurred.

    Coupons & Discounts

    The coupon section UI and functionality remains the same but it will now appear below the Subtotals section to provide a better visual connection to the output of applying a discount.


    We also made some changes to allow some of our blocks to be used in the new widget editor coming in WordPress 5.8, and deprecating the legacy widgets for which a feature-complete block-based equivalent exists.

    The controls used to select: tags, categories, and attributes in our blocks have also been improved, with new styles and better accessibility support.

    BeforeAfter
    View original size
    View original size

    Further details about the exact things we’ve changed can be found by reading the Pull Request descriptions linked in the changelog below.

    Changelog

    Enhancements

    • Added a key prop to each CartTotalItem within usePaymentMethodInterface. (4240)
    • Hide legacy widgets with a feature-complete block equivalent from the widget area block inserter. (4237)
    • Hide the All Products Block from the Customizer Widget Areas until full support is achieved. (4225)
    • Sync customer data during checkout with draft orders. (4197)
    • Update the display of the sidebar/order summary in the Cart and Checkout blocks. (4180)
    • Improved accessibility and styling of the controls of several of ours blocks. (4100)

    Bug Fixes

    • Hide tax breakdown if the total amount of tax to be paid is 0. (4262)
    • Prevent Coupon code panel from appearing in stores were coupons are disabled. (4202)
    • For payment methods, only use canMakePayment in the frontend (not the editor) context. (4188)
    • Fix duplicate react keys in ProductDetails component. (4187)
    • Fix sending of confirmation emails for orders when no payment is needed. (4186)
    • Stopped a warning being shown when using WooCommerce Force Sells and adding a product with a Synced Force Sell to the cart. (4182)

    Various

    • Move Button and Label components to @woocommerce/blocks-checkout package. (4222)
    • Add couponName filter to allow extensions to modify how coupons are displayed in the Cart and Checkout summary. (4166)

  • We’re excited to announce that the release candidate is now available. We are on track for our planned June 8th release date.

    Note that this is a minor release focusing on bug fixes and performance improvements.

    Changes

    • Fixed a few bugs that came as a consequence of the jQuery 3 migration. (#29956, #29980)
    • Removed the support for customizing image and thumbnail sizes in default themes that was added in the beta package. (#29959)
    • Updated WooCommerce Admin to 2.3.1. (#29979)

    Testing

    If you’d like to dive in and help test this new release, our handy WooCommerce Beta Tester plugin allows you to switch between beta versions and release candidates. You can also download the release from wordpress.org.

    A set of testing instructions has been published on our Wiki page in GitHub. We’ve also posted a helpful writeup on beta testing to help get you started.

    If you discover any bugs during the testing process, please let us know by logging a report in GitHub.