Skip to content

Commit

Permalink
[FrontendBundle] add check if category type is grid or list
Browse files Browse the repository at this point in the history
  • Loading branch information
dpfaffenbauer committed Feb 8, 2025
1 parent b6b23d2 commit 9d41877
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@
</div>

<div class="row">
{% set type = type == 'grid' or type == 'list' ? type : 'list' %}

{% for product in paginator.items %}
{% include '@CoreShopFrontend/Category/_'~type~'.html.twig' with {
product: product,
Expand Down

0 comments on commit 9d41877

Please sign in to comment.