Enable the compatibility layer when Product Meta, Product Price and Breadcrumbs blocks are added (https://github.com/woocommerce/woocommerce-blocks/pull/8719)

This commit is contained in:
Luigi Teschio 2023-03-13 16:55:44 +01:00 committed by GitHub
parent bee8a74150
commit 23c38a1e23
1 changed files with 1 additions and 2 deletions

View File

@ -287,8 +287,7 @@ class SingleProductTemplateCompatibility extends AbstractTemplateCompatibility {
$parsed_blocks = parse_blocks( $template_content );
$grouped_blocks = self::group_blocks( $parsed_blocks );
// @todo Check this list before terminating the Blockfied Single Product Template project.
$single_product_template_blocks = array( 'woocommerce/product-image-gallery', 'woocommerce/product-details', 'woocommerce/add-to-cart-form' );
$single_product_template_blocks = array( 'woocommerce/product-image-gallery', 'woocommerce/product-details', 'woocommerce/add-to-cart-form', 'woocommerce/product-meta', 'woocommerce/product-price', 'woocommerce/breadcrumbs' );
$wrapped_blocks = array_map(
function( $blocks ) use ( $single_product_template_blocks ) {