diff --git a/templates/catalog/_partials/product-cover-thumbnails.tpl b/templates/catalog/_partials/product-cover-thumbnails.tpl index f2e13291..5aca0832 100644 --- a/templates/catalog/_partials/product-cover-thumbnails.tpl +++ b/templates/catalog/_partials/product-cover-thumbnails.tpl @@ -88,8 +88,9 @@ {generateImagesSources image=$image size='large_default' } width="{$image.bySize.large_default.width}" height="{$image.bySize.large_default.height}" - {if !empty($product.default_image.legend)} - alt="{$image.legend}" title="{$image.legend}" + {if !empty($image.legend)} + alt="{$image.legend}" + title="{$image.legend}" {else} alt="{$product.name}" {/if} @@ -167,8 +168,9 @@ {generateImagesSources image=$image size='home_default'} width="{$image.bySize.home_default.width}" height="{$image.bySize.home_default.height}" - {if !empty($product.default_image.legend)} - alt="{$image.legend}" title="{$image.legend}" + {if !empty($image.legend)} + alt="{$image.legend}" + title="{$image.legend}" {else} alt="{$product.name}" {/if} diff --git a/templates/catalog/_partials/product-images-modal.tpl b/templates/catalog/_partials/product-images-modal.tpl index 705b0dd2..00fddf03 100644 --- a/templates/catalog/_partials/product-images-modal.tpl +++ b/templates/catalog/_partials/product-images-modal.tpl @@ -59,8 +59,9 @@ width="{$image.bySize.large_default.width}" height="{$image.bySize.large_default.height}" loading="lazy" - {if !empty($product.default_image.legend)} - alt="{$image.legend}" title="{$image.legend}" + {if !empty($image.legend)} + alt="{$image.legend}" + title="{$image.legend}" {else} alt="{$product.name}" {/if}