From dddac1236f0e13800e15c51c9912eaa26f24091d Mon Sep 17 00:00:00 2001 From: maksim Date: Thu, 19 Jun 2025 10:58:24 +0300 Subject: [PATCH] =?UTF-8?q?task=206809=20|=20=D0=B2=D1=8B=D0=BD=D0=B5?= =?UTF-8?q?=D1=81=20=D0=B2=D1=8B=D0=B1=D0=BE=D1=80=20=D0=BE=D0=BF=D1=86?= =?UTF-8?q?=D0=B8=D0=B8=20=D0=BF=D0=BE=D0=B4=D0=BF=D0=B8=D1=81=D0=BA=D0=B8?= =?UTF-8?q?=20=D0=B2=20=D0=BE=D1=82=D0=B4=D0=B5=D0=BB=D1=8C=D0=BD=D1=8B?= =?UTF-8?q?=D0=B9=20twig=20=D1=88=D0=B0=D0=B1=D0=BB=D0=BE=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assets/css/gp-style-core.css | 5 ++ ...bscription-options-prompt-radio-block.twig | 33 +++++++++++ ...duct-subscription-options-prompt-radio.php | 58 ++----------------- 3 files changed, 44 insertions(+), 52 deletions(-) create mode 100644 wp-content/themes/cosmopet/templates/shop/product-subscription-options-prompt-radio-block.twig diff --git a/wp-content/themes/cosmopet/modules/shop/components/single-product/assets/css/gp-style-core.css b/wp-content/themes/cosmopet/modules/shop/components/single-product/assets/css/gp-style-core.css index b67ddfe..be94bfe 100644 --- a/wp-content/themes/cosmopet/modules/shop/components/single-product/assets/css/gp-style-core.css +++ b/wp-content/themes/cosmopet/modules/shop/components/single-product/assets/css/gp-style-core.css @@ -1565,4 +1565,9 @@ input:checked + .subscription-option-details::before, input:checked + .wcsatt-op .detail-block-form__item--radio{ display: flex; gap: 10px; +} + +.amount { + color: #1A1A1A; + font-weight: 600; } \ No newline at end of file diff --git a/wp-content/themes/cosmopet/templates/shop/product-subscription-options-prompt-radio-block.twig b/wp-content/themes/cosmopet/templates/shop/product-subscription-options-prompt-radio-block.twig new file mode 100644 index 0000000..023945a --- /dev/null +++ b/wp-content/themes/cosmopet/templates/shop/product-subscription-options-prompt-radio-block.twig @@ -0,0 +1,33 @@ + diff --git a/wp-content/themes/cosmopet/woocommerce/single-product/product-subscription-options-prompt-radio.php b/wp-content/themes/cosmopet/woocommerce/single-product/product-subscription-options-prompt-radio.php index a3da641..ba29fe7 100644 --- a/wp-content/themes/cosmopet/woocommerce/single-product/product-subscription-options-prompt-radio.php +++ b/wp-content/themes/cosmopet/woocommerce/single-product/product-subscription-options-prompt-radio.php @@ -1,55 +1,9 @@ +$product = wc_get_product(); - - - +Timber::render( 'shop/product-subscription-options-prompt-radio-block.twig', [ + 'product' => $product, + 'subscription_cta' => $subscription_cta ?? '', // передайте сюда HTML, как делает оригинальный шаблон +] ); \ No newline at end of file