Jump to content

Edit History

AcidLava

AcidLava

Bonjour,

Sur PS 8.1.2 thème warehouse mes miniatures de catégories ne s'affichent pas. J'ai seulement les images de remplacement qui s'affichent fr-default-small_default.jpg. J'ai essayé de régénérer les miniatures, vider les caches sans succès.

Ci-joint le fichier category-subcategories.tpl du thème.

Quelqu'un a une piste ?

{block name='product_list_subcategories'}
    {if isset($subcategories) && $subcategories}
        <!-- Subcategories -->
        <div class="product-list-subcategories {if $iqitTheme.cat_hide_mobile} hidden-sm-down{/if}">
            <div class="row">
                {foreach from=$subcategories item=subcategory}
                    <div class="col-{$iqitTheme.cat_sub_thumbs_p} col-md-{$iqitTheme.cat_sub_thumbs_t} col-lg-{$iqitTheme.cat_sub_thumbs_d}">
                        <div class="subcategory-image">
                            <a href="{$subcategory.url}">
                                {if $subcategory.image}
                                    <picture>
                                    {if !empty($subcategory.image.bySize.small_default.sources.avif)}<source srcset="{$subcategory.image.bySize.small_default.sources.avif}" type="image/avif">{/if}
                                    {if !empty($subcategory.image.bySize.small_default.sources.webp)}<source srcset="{$subcategory.image.bySize.small_default.sources.webp}" type="image/webp">{/if}
                                    <img src="{$subcategory.image.bySize.small_default.url}" alt="{$subcategory.name}" width="{$subcategory.image.bySize.small_default.width}"
                                     height="{$subcategory.image.bySize.small_default.height}" class="img-fluid" loading="lazy" />
                                     </picture>
                                {else}
                                    <picture>
                                    {if !empty($urls.no_picture_image.bySize.small_default.sources.avif)}<source srcset="{$urls.no_picture_image.bySize.small_default.sources.avif}" type="image/avif">{/if}
                                    {if !empty($urls.no_picture_image.bySize.small_default.sources.webp)}<source srcset="{$urls.no_picture_image.bySize.small_default.sources.webp}" type="image/webp">{/if}
                                    <img src="{$urls.no_picture_image.bySize.small_default.url}" alt="{$subcategory.name}" width="{$urls.no_picture_image.bySize.small_default.width}"
                                         height="{$urls.no_picture_image.bySize.small_default.height}" class="img-fluid" loading="lazy" />
                                    </picture>
                                {/if}
                            </a>
                        </div>
                        <a class="subcategory-name" href="{$subcategory.url}">{$subcategory.name}</a>
                    </div>
                {/foreach}
            </div>
        </div>
    {/if}
{/block}

 

AcidLava

AcidLava

Bonjour,

Sur PS 8.1.2 thème warehouse mes miniatures de catégories ne s'affichent pas. J'ai seulement les images de remplacement qui s'affichent fr-default-small_default.jpg. J'ai essayé de régénérer les miniatures, vider les caches sans succès.

Ci-joint le fichier category-subcategories.tpl du thème.

Quelqu'un a une piste ?

{block name='product_list_subcategories'}
    {if isset($subcategories) && $subcategories}
        <!-- Subcategories -->
        <div class="product-list-subcategories {if $iqitTheme.cat_hide_mobile} hidden-sm-down{/if}">
            <div class="row">
                {foreach from=$subcategories item=subcategory}
                    <div class="col-{$iqitTheme.cat_sub_thumbs_p} col-md-{$iqitTheme.cat_sub_thumbs_t} col-lg-{$iqitTheme.cat_sub_thumbs_d}">
                        <div class="subcategory-image">
                            <a href="{$subcategory.url}">
                                {if $subcategory.image}
                                    <picture>
                                    {if !empty($subcategory.image.bySize.small_default.sources.avif)}<source srcset="{$subcategory.image.bySize.small_default.sources.avif}" type="image/avif">{/if}
                                    {if !empty($subcategory.image.bySize.small_default.sources.webp)}<source srcset="{$subcategory.image.bySize.small_default.sources.webp}" type="image/webp">{/if}
                                    <img src="{$subcategory.image.bySize.small_default.url}" alt="{$subcategory.name}" width="{$subcategory.image.bySize.small_default.width}"
                                     height="{$subcategory.image.bySize.small_default.height}" class="img-fluid" loading="lazy" />
                                     </picture>
                                {else}
                                    <picture>
                                    {if !empty($urls.no_picture_image.bySize.small_default.sources.avif)}<source srcset="{$urls.no_picture_image.bySize.small_default.sources.avif}" type="image/avif">{/if}
                                    {if !empty($urls.no_picture_image.bySize.small_default.sources.webp)}<source srcset="{$urls.no_picture_image.bySize.small_default.sources.webp}" type="image/webp">{/if}
                                    <img src="{$urls.no_picture_image.bySize.small_default.url}" alt="{$subcategory.name}" width="{$urls.no_picture_image.bySize.small_default.width}"
                                         height="{$urls.no_picture_image.bySize.small_default.height}" class="img-fluid" loading="lazy" />
                                    </picture>
                                {/if}
                            </a>
                        </div>
                        <a class="subcategory-name" href="{$subcategory.url}">{$subcategory.name}</a>
                    </div>
                {/foreach}
            </div>
        </div>
    {/if}
{/block}

 

×
×
  • Create New...