diff --git a/src/BlockTypes/Cart.php b/src/BlockTypes/Cart.php
index 79068f52071..4c25f14e46f 100644
--- a/src/BlockTypes/Cart.php
+++ b/src/BlockTypes/Cart.php
@@ -40,6 +40,14 @@ protected function initialize() {
public function register_patterns() {
$shop_permalink = wc_get_page_id( 'shop' ) ? get_permalink( wc_get_page_id( 'shop' ) ) : '';
+ register_block_pattern(
+ 'woocommerce/cart-heading',
+ array(
+ 'title' => '',
+ 'inserter' => false,
+ 'content' => '
' . esc_html__( 'Cart', 'woo-gutenberg-products-block' ) . '
',
+ )
+ );
register_block_pattern(
'woocommerce/cart-cross-sells-message',
array(
diff --git a/src/BlockTypes/Checkout.php b/src/BlockTypes/Checkout.php
index c2019574b69..3db15254fcb 100644
--- a/src/BlockTypes/Checkout.php
+++ b/src/BlockTypes/Checkout.php
@@ -24,6 +24,31 @@ class Checkout extends AbstractBlock {
*/
protected $chunks_folder = 'checkout-blocks';
+ /**
+ * Initialize this block type.
+ *
+ * - Hook into WP lifecycle.
+ * - Register the block with WordPress.
+ */
+ protected function initialize() {
+ parent::initialize();
+ add_action( 'wp_loaded', array( $this, 'register_patterns' ) );
+ }
+
+ /**
+ * Register block pattern for Empty Cart Message to make it translatable.
+ */
+ public function register_patterns() {
+ register_block_pattern(
+ 'woocommerce/checkout-heading',
+ array(
+ 'title' => '',
+ 'inserter' => false,
+ 'content' => '' . esc_html__( 'Checkout', 'woo-gutenberg-products-block' ) . '
',
+ )
+ );
+ }
+
/**
* Get the editor script handle for this block type.
*
diff --git a/templates/templates/blockified/cart.html b/templates/templates/blockified/cart.html
index 2d8014513a0..d7c38281d86 100644
--- a/templates/templates/blockified/cart.html
+++ b/templates/templates/blockified/cart.html
@@ -1,6 +1,10 @@
+
-
+
+
+
+
@@ -161,4 +165,5 @@
-
\ No newline at end of file
+
+
diff --git a/templates/templates/blockified/checkout.html b/templates/templates/blockified/checkout.html
index 69b87260048..476e9e7f1ef 100644
--- a/templates/templates/blockified/checkout.html
+++ b/templates/templates/blockified/checkout.html
@@ -1,7 +1,12 @@
+
-
+
+
+
+
diff --git a/templates/templates/cart.html b/templates/templates/cart.html
index 2d8014513a0..d7c38281d86 100644
--- a/templates/templates/cart.html
+++ b/templates/templates/cart.html
@@ -1,6 +1,10 @@
+
-
+
+
+
+
@@ -161,4 +165,5 @@
-
\ No newline at end of file
+
+
diff --git a/templates/templates/checkout.html b/templates/templates/checkout.html
index 69b87260048..476e9e7f1ef 100644
--- a/templates/templates/checkout.html
+++ b/templates/templates/checkout.html
@@ -1,7 +1,12 @@
+
-
+
+
+
+