Skip to content

Commit 47bad28

Browse files
authored
fix: Update category template in autocomplete to better display categories with img (#1169)
1 parent 659771b commit 47bad28

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

view/frontend/templates/autocomplete/category.phtml

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,24 @@
99

1010
{{#image_url}}
1111
<div class="info">
12-
{{/image_url}}
13-
{{^image_url}}
14-
<div class="info-without-thumb">
15-
{{#_highlightResult.path}}
16-
{{{_highlightResult.path.value}}}
17-
{{/_highlightResult.path}}
18-
{{^_highlightResult.path}}
19-
{{{path}}}
20-
{{/_highlightResult.path}}
12+
{{/image_url}}
13+
14+
{{^image_url}}
15+
<div class="info-without-thumb">
16+
{{/image_url}}
17+
18+
{{#_highlightResult.path}}
19+
{{{_highlightResult.path.value}}}
20+
{{/_highlightResult.path}}
21+
{{^_highlightResult.path}}
22+
{{{path}}}
23+
{{/_highlightResult.path}}
2124

22-
{{#product_count}}
23-
<small>({{product_count}})</small>
24-
{{/product_count}}
25+
{{#product_count}}
26+
<small>({{product_count}})</small>
27+
{{/product_count}}
2528

26-
</div>
27-
<div class="algolia-clearfix"></div>
28-
{{/image_url}}
2929
</div>
30+
<div class="algolia-clearfix"></div>
3031
</a>
31-
</script>
32+
</script>

0 commit comments

Comments
 (0)