diff --git a/html/js/product-search.js b/html/js/product-search.js
index 48bc25c47015e..d29d04f443d56 100644
--- a/html/js/product-search.js
+++ b/html/js/product-search.js
@@ -246,10 +246,12 @@ function display_products(target, product_groups, user_prefs) {
product_html += '
';
product_html += '
';
- const img_src =
- product.image_front_small_url ||
- "/images/icons/product-silhouette-transparent.svg";
- product_html += `
`;
+ if (product.image_front_small_url) {
+ product_html += `
`;
+ }
+ else {
+ product_html += `
`;
+ }
product_html += "
";
diff --git a/templates/web/pages/product/product_page.tt.html b/templates/web/pages/product/product_page.tt.html
index a5aaf72dad854..c7aecfd2b342e 100755
--- a/templates/web/pages/product/product_page.tt.html
+++ b/templates/web/pages/product/product_page.tt.html
@@ -104,7 +104,7 @@
[% title %]
[% IF front_image %]
- [% INCLUDE web/panels/image.tt.html image = front_image %]
+ [% INCLUDE web/panels/image.tt.html code = code image = front_image %]
[% END %]
diff --git a/templates/web/pages/product_edit/product_edit_form_display.tt.html b/templates/web/pages/product_edit/product_edit_form_display.tt.html
index cb76dfd52df5e..2bbf282eba527 100644
--- a/templates/web/pages/product_edit/product_edit_form_display.tt.html
+++ b/templates/web/pages/product_edit/product_edit_form_display.tt.html
@@ -290,7 +290,7 @@
[% title %]
[% IF type == 'edit' %]
-
+
@@ -299,7 +299,7 @@
[% title %]
-
diff --git a/templates/web/panels/panel.tt.html b/templates/web/panels/panel.tt.html
index 80bb9304adf4d..c22be4e898ac5 100644
--- a/templates/web/panels/panel.tt.html
+++ b/templates/web/panels/panel.tt.html
@@ -114,7 +114,7 @@
- [% INCLUDE web/panels/image.tt.html image = panel_group_element.image %]
+ [% INCLUDE web/panels/image.tt.html code = product.code image = panel_group_element.image %]
[% END %]