From 559fc35e076a0931b2ef62193cf282f96af54281 Mon Sep 17 00:00:00 2001 From: "Anton.AE" Date: Tue, 8 Jul 2025 14:47:52 +0300 Subject: [PATCH] Andrei | fix free delivery tab --- .../single-product/assets/css/gp-style-core.css | 8 ++++++++ .../templates/_pages/shop/product-single.twig | 14 ++++++++++++++ 2 files changed, 22 insertions(+) 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 1dc8174..cc4aa00 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 @@ -504,4 +504,12 @@ input:checked + .subscription-option-details::before, input:checked + .wcsatt-op .detail__catalot .product__item{ flex-grow: 1; +} + +.toggle__title{ + text-transform: uppercase; +} + +.toggle__text p:not(:last-child) { + margin-bottom: 1em; } \ No newline at end of file diff --git a/wp-content/themes/cosmopet/templates/_pages/shop/product-single.twig b/wp-content/themes/cosmopet/templates/_pages/shop/product-single.twig index adcbcc8..f369540 100644 --- a/wp-content/themes/cosmopet/templates/_pages/shop/product-single.twig +++ b/wp-content/themes/cosmopet/templates/_pages/shop/product-single.twig @@ -325,6 +325,20 @@ {% endif %} + + {% if fn('get_field', 'free_delivery_active', 'options') %} +
+

+ {{ function('pll_e', 'Бесплатная доставка') }} +

+
+
+
{{ function('get_field', 'free_delivery_field', 'options') }}
+ +
+
+
+ {% endif %} {# End | Табы с информацией #}