Categories
blocks

WooCommerce Blocks 5.3.0 Release Notes

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)

3 replies on “WooCommerce Blocks 5.3.0 Release Notes”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.