From b629e5e373705879227a22a6df1c60d0ec025d88 Mon Sep 17 00:00:00 2001 From: maksim Date: Mon, 9 Jun 2025 15:00:50 +0300 Subject: [PATCH] =?UTF-8?q?=20Fix=20|=206675=20=D0=B8=D1=81=D0=BF=D1=80?= =?UTF-8?q?=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4?= =?UTF-8?q?=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BA=D0=BB=D1=8E=D1=87=D0=B0=D1=82?= =?UTF-8?q?=D0=B5=D0=BB=D0=B5=D0=B9=20=D0=B2=20=D0=BA=D0=B0=D1=80=D1=82?= =?UTF-8?q?=D0=BE=D1=87=D0=BA=D0=B5=20=D1=82=D0=BE=D0=B2=D0=B0=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../single-product/assets/css/gp-style-core.css | 5 +++++ .../components/single-product/component-template.twig | 10 ++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) 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 dfd284e..c3fd1d3 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 @@ -1560,4 +1560,9 @@ input:checked + .subscription-option-details::before, input:checked + .wcsatt-op .detail #wc-stripe-express-checkout-element{ display: none !important; +} + +.detail-block-form__item--radio{ + display: flex; + gap: 10px; } \ No newline at end of file diff --git a/wp-content/themes/cosmopet/modules/shop/components/single-product/component-template.twig b/wp-content/themes/cosmopet/modules/shop/components/single-product/component-template.twig index 5dfbb56..974cdfe 100644 --- a/wp-content/themes/cosmopet/modules/shop/components/single-product/component-template.twig +++ b/wp-content/themes/cosmopet/modules/shop/components/single-product/component-template.twig @@ -96,10 +96,16 @@ {% if siblings %}
{% for sibling in siblings %} - {% set weight = sibling.post_title|split(', ')|last %} + {% set weight = function('get_product_info', sibling.ID, 'weight') %} {% set current_weight = function('get_product_info', product.id, 'weight') %} {% set class = weight == current_weight ? 'active' : '' %} - + + {{ weight|upper }} {% endfor %}