Change tempalte ID when loading the mini cart template part (https://github.com/woocommerce/woocommerce-blocks/pull/5916)
This commit is contained in:
parent
858fffd697
commit
94b2d95693
|
@ -377,7 +377,7 @@ class MiniCart extends AbstractBlock {
|
||||||
}
|
}
|
||||||
|
|
||||||
$template_part_contents = '';
|
$template_part_contents = '';
|
||||||
$template_part = BlockTemplateUtils::get_block_template( get_stylesheet() . '//mini-cart', 'wp_template_part' );
|
$template_part = BlockTemplateUtils::get_block_template( BlockTemplateUtils::PLUGIN_SLUG . '//mini-cart', 'wp_template_part' );
|
||||||
|
|
||||||
if ( $template_part && ! empty( $template_part->content ) ) {
|
if ( $template_part && ! empty( $template_part->content ) ) {
|
||||||
$template_part_contents = do_blocks( $template_part->content );
|
$template_part_contents = do_blocks( $template_part->content );
|
||||||
|
|
Loading…
Reference in New Issue