diff --git a/category.html.twig b/category.html.twig index 830be57..806efc3 100644 --- a/category.html.twig +++ b/category.html.twig @@ -7,7 +7,7 @@ {% set products = resources('/api/front/products', {'productCategories.category.id': attr('category', 'id'), itemsPerPage:9, page: page}) %} {% set totalProducts = resources('/api/front/products', {'productCategories.category.id': attr('category', 'id'), itemsPerPage:9, page: page}) %} - {% include '@components/Layout/Subheader/Category/SimilarContent.html.twig' with {title: attr('category', 'title'), description: attr('category', 'description'), nbProducts: products|length} %} + {% include '@components/Layout/SimilarContent/SimilarContent.html.twig' with {title: attr('category', 'title'), description: attr('category', 'description'), nbProducts: products|length} %} {% include '@components/Layout/CategoryProduct/CategoryProduct.html.twig' with {products: products, totalProducts:totalProducts} %} {% include '@components/Layout/Reinsurance/Reinsurance.html.twig' with { data: [ diff --git a/product.html.twig b/product.html.twig index 202605a..e3aca79 100644 --- a/product.html.twig +++ b/product.html.twig @@ -113,6 +113,6 @@
- {% include '@components/Layout/CrossSelling/CrossSelling.html.twig' with {title: 'Last seen products'|trans, categoryId: 1} %} + {{ component('Flexy:CrossSelling', {categoryId: 1, title: 'Last seen products' | trans}) }}
{% endblock %}