Skip to content

Commit

Permalink
fix missing component render
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucanis committed Sep 13, 2024
1 parent 58a9bf6 commit 0fd240c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion category.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
2 changes: 1 addition & 1 deletion product.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,6 @@
</div>

<div class="bg-theme-lighter">
{% 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}) }}
</div>
{% endblock %}

0 comments on commit 0fd240c

Please sign in to comment.