From 10da9fd985c29aeecbc1b75fa010b216e270ed1c Mon Sep 17 00:00:00 2001 From: Luigi Date: Mon, 17 Apr 2023 13:00:35 +0200 Subject: [PATCH] Blockfied Single Product Template: Add support for template for specific product --- src/BlockTemplatesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BlockTemplatesController.php b/src/BlockTemplatesController.php index 68c9f73d738..632cc85a58b 100644 --- a/src/BlockTemplatesController.php +++ b/src/BlockTemplatesController.php @@ -325,7 +325,7 @@ function( $template ) { $template->description = BlockTemplateUtils::get_block_template_description( $template->slug ); } - if ( 'single-product' === $template->slug ) { + if ( str_contains( $template->slug, 'single-product' ) ) { if ( ! is_admin() && ! BlockTemplateUtils::template_has_legacy_template_block( $template ) ) { $new_content = SingleProductTemplateCompatibility::add_compatibility_layer( $template->content );