Jump to content

[RESOLU] Affecter une image automatiquement à tous les produits


rachel01

Recommended Posts

6 minutes ago, ndiaga said:

Il faut  editer  ce fichier :   themes/classic/templates/catalog/_partials/product-cover-thumbnails.tpl

Merci mais c'est bien celui que j'ai édité (enfin pas le thème classic car ce n'est pas celui que j'utilise)

Voici mon code

{block name='product_images'}
    <div class="js-qv-mask mask">
      <ul class="product-images js-qv-product-images">
        {foreach from=$product.images item=image}
          <li class="thumb-container">
            <img
              class="thumb js-thumb {if $image.id_image == $product.cover.id_image} selected {/if}"
              data-image-medium-src="{$image.bySize.medium_default.url}"
              data-image-large-src="{$image.bySize.large_default.url}"
              src="{$image.bySize.slider_small_default.url}"
              alt="{$image.legend}"
              title="{$image.legend}"
              width="90"
              itemprop="image"
            >
          </li>
        {/foreach}
		<li class="thumb-container">
            <img
              class="thumb js-thumb {if $image.id_image == $product.cover.id_image} selected {/if}"
              data-image-medium-src="{$image.bySize.medium_default.url}"
              data-image-large-src="{$image.bySize.large_default.url}"
              src="http://s793675064.onlinehome.fr/72473-large_default/les-anneaux-perlees-sur-lien.jpg"
              alt="garantie"
              title=""
              width="90"
              itemprop="image"
            >
          </li>
      </ul>
    </div>
  {/block}

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...