WooCommerce Blocks 4.6.0 Release Notes

There’s a new version of WooCommerce Blocks available! Version 4.6.0 is now available on WordPress.org and GitHub.

This release contains mostly bugfixes, some technical debt pay down, and a few changes to better support extensibility.

Fixes include respecting out of stock visibility setting in the All Products block, hiding the “browse shop” link in the cart block empty state when there is no shop page set, and some updating of styles for various contexts. There’s also an important fix related to the application of a coupon appearing to change the total value for items listed with the cart block.

Dev Note

An important note that internally, this release has modified how Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock (the base class for all of our blocks) functions, and how it loads assets. AbstractBlock is internal to this project and does not seem like something that would ever need to be extended by 3rd parties, but if you are doing so for whatever reason, your implementation would need to be updated to match. (3829)

Changelog

Bug Fixes

  • Handle out-of-stock product visibility setting in All Products block. (3859)
  • Show cart item subtotal instead of total in Cart and Checkout blocks (#3905)
  • Fix button styles in Twenty Nineteen theme. (3862)
  • Return correct sale/regular prices for variable products in the Store API. (3854)
  • Remove shadows from text buttons and gradient background from selects in some themes. (3846)
  • Hide Browse Shop link in cart block empty state when there is no shop page. (3845)

Various

  • StoreAPI: Inject Order and Cart Controllers into Routes. (3871)
  • Update Panel component class names to follow guidelines. More info can be found in our theming docs. (3860)
  • Refactor block type registration to support 3rd party integrations.

Keep yourself in the loop!

This field is hidden when viewing the form
This field is hidden when viewing the form
This field is hidden when viewing the form


4 responses to “WooCommerce Blocks 4.6.0 Release Notes”

  1. […] 4.7: Blocks package have been updated to 4.7. Please take a look at the release posts for 4.7, 4.6, 4.5.2 and 4.5.1 to see what’s new and […]

  2. […] 4.7: Blocks package have been updated to 4.7. Please take a look at the release posts for 4.7, 4.6, 4.5.2 and 4.5.1 to see what’s new and […]

  3. […] WooCommerce Blocks 4.6 was released on March 2, 2021. It includes bug fixes and addresses some prior technical debt, but it also includes some changes to better support extensibility, such as a refactoring of block type registration to help with third-party integration. […]

  4. […] 4.7: Blocks package has been updated to 4.7. Please take a look at the release posts for 4.7, 4.6, 4.5.2 and 4.5.1 to see what’s new and […]

Leave a Reply

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