diff --git a/assets/js/blocks/product-query/constants.ts b/assets/js/blocks/product-query/constants.ts index 61e0b9771cc..f4ef7d34a82 100644 --- a/assets/js/blocks/product-query/constants.ts +++ b/assets/js/blocks/product-query/constants.ts @@ -74,6 +74,10 @@ export const INNER_BLOCKS_TEMPLATE: InnerBlockTemplate[] = [ 'core/post-template', { __woocommerceNamespace: PRODUCT_TEMPLATE_ID, + layout: { + type: 'grid', + columnsCount: 3, + }, /** * This class is used to add default styles for inner blocks. */ diff --git a/assets/js/blocks/product-query/variations/related-products.tsx b/assets/js/blocks/product-query/variations/related-products.tsx index e13a243f48b..6ff35170b37 100644 --- a/assets/js/blocks/product-query/variations/related-products.tsx +++ b/assets/js/blocks/product-query/variations/related-products.tsx @@ -53,7 +53,13 @@ export const INNER_BLOCKS_TEMPLATE: InnerBlockTemplate[] = [ ], [ 'core/post-template', - { __woocommerceNamespace: PRODUCT_TEMPLATE_ID }, + { + __woocommerceNamespace: PRODUCT_TEMPLATE_ID, + layout: { + type: 'grid', + columnsCount: 3, + }, + }, [ [ 'woocommerce/product-image', diff --git a/docs/internal-developers/testing/smoke-testing.md b/docs/internal-developers/testing/smoke-testing.md index 251f4d00216..7905ffd7277 100644 --- a/docs/internal-developers/testing/smoke-testing.md +++ b/docs/internal-developers/testing/smoke-testing.md @@ -174,7 +174,7 @@ Note: some blocks might fail to render because they are based on products having
-
+
diff --git a/patterns/featured-products-5-cols.php b/patterns/featured-products-5-cols.php index db992b2450b..dae4ff3743e 100644 --- a/patterns/featured-products-5-cols.php +++ b/patterns/featured-products-5-cols.php @@ -14,7 +14,7 @@
- +
diff --git a/patterns/product-collections-featured-collection.php b/patterns/product-collections-featured-collection.php index 04291c3456d..fbb70e5b508 100644 --- a/patterns/product-collections-featured-collection.php +++ b/patterns/product-collections-featured-collection.php @@ -23,7 +23,7 @@
- + diff --git a/patterns/product-collections-newest-arrivals.php b/patterns/product-collections-newest-arrivals.php index c372bdcc66e..117e78d8d8f 100644 --- a/patterns/product-collections-newest-arrivals.php +++ b/patterns/product-collections-newest-arrivals.php @@ -31,7 +31,7 @@
- +
diff --git a/patterns/product-featured-2-columns.php b/patterns/product-featured-2-columns.php index 327a432eb21..6ce0f3f557e 100644 --- a/patterns/product-featured-2-columns.php +++ b/patterns/product-featured-2-columns.php @@ -12,7 +12,7 @@
- + diff --git a/templates/templates/blockified/archive-product.html b/templates/templates/blockified/archive-product.html index 81687d48b5d..69f533bffd2 100644 --- a/templates/templates/blockified/archive-product.html +++ b/templates/templates/blockified/archive-product.html @@ -18,7 +18,7 @@
- + diff --git a/templates/templates/blockified/product-search-results.html b/templates/templates/blockified/product-search-results.html index 109fb56f4d5..17b39c4bb44 100644 --- a/templates/templates/blockified/product-search-results.html +++ b/templates/templates/blockified/product-search-results.html @@ -16,7 +16,7 @@
- + diff --git a/templates/templates/blockified/single-product.html b/templates/templates/blockified/single-product.html index 0fecbef4636..501777643c1 100644 --- a/templates/templates/blockified/single-product.html +++ b/templates/templates/blockified/single-product.html @@ -53,7 +53,7 @@

Related products

- + diff --git a/templates/templates/blockified/taxonomy-product_attribute.html b/templates/templates/blockified/taxonomy-product_attribute.html index 62d797de82c..3bf25ca4931 100644 --- a/templates/templates/blockified/taxonomy-product_attribute.html +++ b/templates/templates/blockified/taxonomy-product_attribute.html @@ -18,7 +18,7 @@
- + @@ -46,4 +46,4 @@
- \ No newline at end of file + diff --git a/templates/templates/blockified/taxonomy-product_cat.html b/templates/templates/blockified/taxonomy-product_cat.html index 62d797de82c..3bf25ca4931 100644 --- a/templates/templates/blockified/taxonomy-product_cat.html +++ b/templates/templates/blockified/taxonomy-product_cat.html @@ -18,7 +18,7 @@
- + @@ -46,4 +46,4 @@
- \ No newline at end of file + diff --git a/templates/templates/blockified/taxonomy-product_tag.html b/templates/templates/blockified/taxonomy-product_tag.html index 1de3af7a0ed..9c6699850d0 100644 --- a/templates/templates/blockified/taxonomy-product_tag.html +++ b/templates/templates/blockified/taxonomy-product_tag.html @@ -18,7 +18,7 @@
- + @@ -43,4 +43,4 @@
-
\ No newline at end of file +