From ad3f1ae0e484ed962ed2de6fe32bfea8608cde16 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Hlav=C3=A1=C4=8Dek?= <daniel.hlavacek@hotmail.cz>
Date: Mon, 16 Sep 2024 22:41:04 +0200
Subject: [PATCH 1/2] Use category cover

---
 templates/catalog/_partials/category-header.tpl | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/templates/catalog/_partials/category-header.tpl b/templates/catalog/_partials/category-header.tpl
index b45d2082c..457d2ad8b 100644
--- a/templates/catalog/_partials/category-header.tpl
+++ b/templates/catalog/_partials/category-header.tpl
@@ -9,14 +9,14 @@
             {if $category.description}
               <div id="category-description" class="rich-text mb-4">{$category.description nofilter}</div>
             {/if}
-            {if !empty($category.image.large.url)}
+            {if !empty($category.cover.large.url)}
               <div class="category-cover mb-4">
-                <img src="{$category.image.large.url}" 
-                  alt="{if !empty($category.image.legend)}{$category.image.legend}{else}{$category.name}{/if}" 
+                <img src="{$category.cover.large.url}" 
+                  alt="{if !empty($category.cover.legend)}{$category.cover.legend}{else}{$category.name}{/if}" 
                   fetchpriority="high" 
                   class="img-fluid"
-                  width="{$category.image.large.width}" 
-                  height="{$category.image.large.height}">
+                  width="{$category.cover.large.width}" 
+                  height="{$category.cover.large.height}">
               </div>
             {/if}
         </div>

From 60fcfeeeb80ef378c2fc465b7daa07f6a0b42fe2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Hlav=C3=A1=C4=8Dek?= <daniel.hlavacek@hotmail.cz>
Date: Mon, 16 Sep 2024 22:49:37 +0200
Subject: [PATCH 2/2] Use category thumbnail

---
 templates/catalog/_partials/subcategories.tpl | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/templates/catalog/_partials/subcategories.tpl b/templates/catalog/_partials/subcategories.tpl
index cc7cfbf97..04f2639f7 100644
--- a/templates/catalog/_partials/subcategories.tpl
+++ b/templates/catalog/_partials/subcategories.tpl
@@ -11,12 +11,21 @@
         <div class="subcategory__wrapper col-6 col-lg-4 col-xl-3">
           <a class="subcategory" href="{$subcategory.url}" title="{$subcategory.name|escape:'html':'UTF-8'}">
             <div class="subcategory__image">
-              {if !empty($subcategory.image.small.url)}
+              {if !empty($subcategory.thumbnail.small.url)}
                 <img
                   class="img-fluid"
-                  src="{$subcategory.image.small.url}"
-                  width="{$subcategory.image.small.width}"
-                  height="{$subcategory.image.small.height}"
+                  src="{$subcategory.thumbnail.small.url}"
+                  width="{$subcategory.thumbnail.small.width}"
+                  height="{$subcategory.thumbnail.small.height}"
+                  alt="{$subcategory.name|escape:'html':'UTF-8'}"
+                  loading="lazy"
+                >
+              {else}
+                <img
+                  class="img-fluid"
+                  src="{$urls.no_picture_image.small.url}"
+                  width="{$urls.no_picture_image.small.width}"
+                  height="{$urls.no_picture_image.small.height}"
                   alt="{$subcategory.name|escape:'html':'UTF-8'}"
                   loading="lazy"
                 >