{insert_products type="related_product" image=4 product=$body.product id="related-products" assign='related_products' template=null listType='detail_related' listId=$body.product.id}

{if $related_products.products|count}
<div class="related-products-wrapper">
      {insert_page code="related-products-title"}
      <div class="container">
         {include "components/block.products.carousel.tpl" catalog_class="related-item" products=$related_products.products id="related-products" listType=$related_products.listType listId=$related_products.listId}
      </div>
   </div>
{/if}

