From 1aaeea3cfbaf3327481172a680139e81e02bf2e3 Mon Sep 17 00:00:00 2001 From: maksim Date: Thu, 19 Jun 2025 12:12:17 +0300 Subject: [PATCH] =?UTF-8?q?task=206809=20|=20=D1=84=D0=B8=D0=BA=D1=81=20?= =?UTF-8?q?=D0=B1=D0=B0=D0=B3=D0=B0=20=D1=81=20=D0=B2=D1=8B=D0=B2=D0=BE?= =?UTF-8?q?=D0=B4=D0=BE=D0=BC=20=D0=B0=D1=82=D1=82=D1=80=D0=B8=D0=B1=D1=83?= =?UTF-8?q?=D1=82=D0=BE=D0=B2=20=D0=B2=20=D1=80=D0=B5=D0=BA=D0=BE=D0=BC?= =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D0=B4=D1=83=D0=B5=D0=BC=D1=8B=D1=85=20=D1=82?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D1=80=D0=B0=D1=85=20(=D0=BD=D0=B0=20=D0=B2?= =?UTF-8?q?=D1=85=D0=BE=D0=B4=20=D1=84=D1=83=D0=BD=D0=BA=D1=86=D0=B8=D0=B8?= =?UTF-8?q?=20=D0=BD=D0=B5=D0=BE=D0=B1=D1=85=D0=BE=D0=B4=D0=B8=D0=BC=D0=BE?= =?UTF-8?q?=20=D0=B4=D0=B0=D1=82=D1=8C=20Timber=20=D0=B0=20=D0=BD=D0=B5=20?= =?UTF-8?q?WC=20=D0=BE=D0=B1=D1=8A=D0=B5=D0=BA=D1=82)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../themes/cosmopet/templates/_pages/shop/product-single.twig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 2281940..8480ec1 100644 --- a/wp-content/themes/cosmopet/templates/_pages/shop/product-single.twig +++ b/wp-content/themes/cosmopet/templates/_pages/shop/product-single.twig @@ -368,8 +368,9 @@
{% for related_product in related_products %}
+ {% set post_id = related_product.ID is defined ? related_product.ID : related_product %} - {% set wc_product = fn('wc_get_product', post_id) %} + {% set wc_product = TimberPost(post_id) %} {% if wc_product %} {% include '_blocks/shop/archive-product-tease.twig' with {post: wc_product} %} {% endif %}