From 299f5e1bfa446cdc64e4cb92f41fff7b9f307d1b Mon Sep 17 00:00:00 2001 From: Luigi Teschio Date: Mon, 7 Mar 2022 17:29:06 +0100 Subject: [PATCH] Hide Mini Cart Block on Cart and Checkout page (https://github.com/woocommerce/woocommerce-blocks/pull/5996) * Hide Mini Cart Block on cart and checkout page woocommerce/woocommerce-blocks#5931 hide Mini Cart Block on cart and checkout page * instead to not render nothing, use visibility hidden --- plugins/woocommerce-blocks/src/BlockTypes/MiniCart.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/woocommerce-blocks/src/BlockTypes/MiniCart.php b/plugins/woocommerce-blocks/src/BlockTypes/MiniCart.php index 9110bdc2898..2a83dae8f51 100644 --- a/plugins/woocommerce-blocks/src/BlockTypes/MiniCart.php +++ b/plugins/woocommerce-blocks/src/BlockTypes/MiniCart.php @@ -371,7 +371,8 @@ class MiniCart extends AbstractBlock { '; if ( is_cart() || is_checkout() ) { - return '
+ // It is not necessary to load the Mini Cart Block on Cart and Checkout page. + return ''; }