From 97ba6b74979707ac1467f3d5ca80c7f200acbd13 Mon Sep 17 00:00:00 2001 From: maksim Date: Fri, 13 Jun 2025 17:08:50 +0300 Subject: [PATCH] =?UTF-8?q?Andrei=20|=20=D1=83=D0=B4=D0=B0=D0=BB=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=B4=D0=B5=D1=84=D0=BE=D0=BB=D1=82=D0=BD=D1=8B=D0=B5?= =?UTF-8?q?=20=D1=81=D1=82=D0=B8=D0=BB=D0=B8=20=D0=B2=D1=83=D0=BA=D0=BE?= =?UTF-8?q?=D0=BC=D0=B5=D1=80=D1=81=D0=B0=20=D1=81=D0=BE=20=D1=81=D1=82?= =?UTF-8?q?=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D1=8B=20=D1=87=D0=B5=D0=BA=D0=B0?= =?UTF-8?q?=D1=83=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../themes/cosmopet/temp-functions/woocommerce-logic.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wp-content/themes/cosmopet/temp-functions/woocommerce-logic.php b/wp-content/themes/cosmopet/temp-functions/woocommerce-logic.php index d605aed..594bb6d 100644 --- a/wp-content/themes/cosmopet/temp-functions/woocommerce-logic.php +++ b/wp-content/themes/cosmopet/temp-functions/woocommerce-logic.php @@ -287,3 +287,11 @@ function remove_view_cart_button_js() { } +function custom_remove_woocommerce_styles_on_checkout( $enqueue_styles ) { + if ( is_checkout() ) { + return []; // Удаляет все стандартные стили WooCommerce только на странице checkout + } + + return $enqueue_styles; +} +add_filter( 'woocommerce_enqueue_styles', 'custom_remove_woocommerce_styles_on_checkout' ); \ No newline at end of file