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 %}