This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Modify BlockTemplateController to server Block Templates #4971
Labels
focus: FSE
Work related to prepare WooCommerce for FSE.
focus: template
Related to API powering block template functionality in the Site Editor
type: enhancement
The issue is a request for an enhancement.
Depends on #4969 and #4970
Description
Similar to whats shown here we need to add some methods to the
BlockTemplateController
which first checks if the user has Block Templates for Woo (such assingle-product.html
) in their theme and if not server them the default block template files fromwoo-blocks-plugin/templates/block-templates
by making use of the filter added in #4970Acceptance Criteria
single-product.html
), we will not render them the default one from Woo Blockswoo-blocks-plugin/templates/block-templates
if its available.woo-blocks-plugin/templates/block-templates
then we will fall back to the legacy PHP templateThe text was updated successfully, but these errors were encountered: