diff --git a/CHANGELOG_de-DE.md b/CHANGELOG_de-DE.md index 63b525f..d1b9781 100644 --- a/CHANGELOG_de-DE.md +++ b/CHANGELOG_de-DE.md @@ -1,3 +1,7 @@ +# 1.0.9 + +* BUGFIX Behebe Problem mit thumbnail-variable, wenn kein Thumbnail existiert + # 1.0.8 * FEATURE Option zum Verbessern der Standard Gallery auf der Produktseite hinzugefĆ¼gt diff --git a/CHANGELOG_en-GB.md b/CHANGELOG_en-GB.md index a8f25fc..325877b 100644 --- a/CHANGELOG_en-GB.md +++ b/CHANGELOG_en-GB.md @@ -1,3 +1,7 @@ +# 1.0.9 + +* BUGFIX Fix thumbnail-variable, which occurs, when no thumbnail exists + # 1.0.8 * FEATURE Added Option to fix ThumbnailSizes for the gallery on product page diff --git a/composer.json b/composer.json index 2487943..efb1dfa 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ "thumbnail" ], "description": "This plugins allows you to use variable thumbnails, without having them on storage.", - "version": "1.0.8", + "version": "1.0.9", "type": "shopware-platform-plugin", "license": "mit", "authors": [ diff --git a/src/Resources/views/storefront/utilities/thumbnail.html.twig b/src/Resources/views/storefront/utilities/thumbnail.html.twig index a1948c6..b6a102a 100644 --- a/src/Resources/views/storefront/utilities/thumbnail.html.twig +++ b/src/Resources/views/storefront/utilities/thumbnail.html.twig @@ -3,12 +3,13 @@ {% else %} {# FROSH: we are just removing max-width here, nothing more #} +{# activate load per default. If it is not activated only a data-src is set instead of the src tag. #} +{% if load is not defined %} + {% set load = true %} +{% endif %} + {# uses cms block column count and all available thumbnails to determine the correct image size for the current viewport #} {% if media.thumbnails|length > 0 %} - {# activate load per default. If it is not activated only a data-src is set instead of the src tag. #} - {% if load is not defined %} - {% set load = true %} - {% endif %} {% if columns and sizes is not defined %} {# set image size for every viewport #}