WooCommerce Blocks 6.8.0 Release Notes

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

Full-Site Editing templates

This release rolls out some fixes for the Block based Full-Site Editing templates, specifically one regarding custom templates. It also adds Global Styles support for the Price Filter block, Stock Indicator block, Summary Product block, and Product Title block.

All Product block with custom global style added to the Product Title block

WooCommerce Blocks

We fixed a styling issue in the Checkout block when an order has multiple shipping packages.
We’ve also aligned the display of images in product grid blocks with the default way to display product images in WooCommerce: images will be cropped into a square. This change won’t affect any existing blocks, only the ones added from now on. Switching to Full Size images can be done by editing the block.

Dev Notes

The built-in Stripe Payment Method Extension integration has been removed. This has been part of the extension itself since Stripe version 5.2.0 (2021-05-19) and is no longer necessary. If you’re using an older version of Stripe (lower than 5.2.0) you’ll need to update to have the payment method still shown during the Checkout block.

The Cart block now supports some Store API hooks for tweaking some behaviors:

Hook for disable quantity inputs for cart items:
add_filter( 'woocommerce_store_api_product_quantity_editable', function( $quantity, $product, $cart_item )  {
    return false;
}, 10, 3 );
Hook for change the multiple/step property for all cart items:
add_filter( 'woocommerce_store_api_product_quantity_multiple_of', function( $quantity, $product, $cart_item )  {
    return 4;
}, 10, 3 );
Hook for changing the minimum and maximum for all cart item:
add_filter( 'woocommerce_store_api_product_quantity_minimum', function( $quantity, $product, $cart_item )  {
    return 5;
}, 10, 3 );

add_filter( 'woocommerce_store_api_product_quantity_maximum', function( $quantity, $product, $cart_item )  {
    return 30;
}, 10, 3 );
Hook for changing the quantity for products (this affects add to cart events):
add_filter( 'woocommerce_store_api_product_quantity_minimum', function( $quantity, $product, $cart_item )  {
    return 5;
}, 10, 3 );

For more details please see the Changelog below:

Changelog

Enhancements

  • Add support for the global style for the Price Filter block. (5559)
  • Hold stock for 60mins if the order is pending payment. (5546)
  • Allow users to reinsert the WooCommerce Legacy Template block. (5545)
  • Add support for the global style for the Stock Indicator block. (5525)
  • Add support for the global style for the Summary Product block. (5524)
  • Add support for the global style for the Product Title block. (5515)
  • Fix duplicated checkout error notices. (5476)
  • Store API: Throw errors when attempting to pay with a non-available payment method. (5440)
  • Add support for the wide and full alignment for the legacy template block. (5433)
  • Store API and Cart block now support defining a quantity stepper and a minimum quantity. (5406)
  • Added controls to product grid blocks for filtering by stock levels. (4943)

Bug Fixes

  • Use consistent HTML code for all rating sections, so that screen readers pronounce the rating correctly. (5552)
  • All Products block displays thumbnails. (5551)
  • Fixed a styling issue in the Checkout block when an order has multiple shipping packages. (5529)
  • Fixed a visual bug (#5152) with the points and rewards plugin. (5430)
  • Filter Products By Price block: Don’t allow to insert negative values on inputs. (5123)

Technical debt

  • Remove invalid $wpdb->prepare() statement in Featured Category block. (5471)
  • Remove Stripe Payment Method Integration (which is now part of the Stripe Payment Method extension itself). (5449)

Various

  • Update the block theme folders to latest Gutenberg convention (i.e. templates and parts). (5464)

We released WooCommerce Blocks 6.5.2 and WooCommerce Blocks 6.7.2 that include an update to Store Editing Templates in anticipation of WordPress 5.9.


Keep yourself in the loop!

Sign up for the WooCommerce developer newsletter:
This field is hidden when viewing the form
This field is hidden when viewing the form
This field is hidden when viewing the form


Leave a Reply

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