Jump to content

enlever le cadre "aucune image disponible"


Recommended Posts

Bonjour, je souhaite purement et simplement enlever la cadre "aucune image disponible" à côté de mes produits, car ceux-ci ne nécessitent pas de photos associées.
J'y arrive pour le cadre associé aux catégories, mais pas pour celui associé aux produits
Merci d'avance

Link to comment
Share on other sites

Ok,
donc il vous suffit de retirer ce code du fichier product.tpl, ligne 146 - > 177 :

<!-- product img-->

       {if $have_image}
getImageLink($product->link_rewrite, $cover.id_image, 'large')}"
               {if $jqZoomEnabled}class="jqzoom" alt="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'thickbox')}"{else} title="{$product->name|escape:'htmlall':'UTF-8'}" alt="{$product->name|escape:'htmlall':'UTF-8'}" {/if} id="bigpic" width="{$largeSize.width}" height="{$largeSize.height}" />
       {else}
name|escape:'htmlall':'UTF-8'}" width="{$largeSize.width}" height="{$largeSize.height}" />
       {/if}


       {if isset($images) && count($images) > 0}
       <!-- thumbnails -->

       {if isset($images) && count($images) > 3}{l s='Previous'}{/if}


               {if isset($images)}
                   {foreach from=$images item=image name=thumbnails}
                   {assign var=imageIds value="`$product->id`-`$image.id_image`"}

getImageLink($product->link_rewrite, $imageIds, 'thickbox')}" rel="other-views" class="thickbox {if $smarty.foreach.thumbnails.first}shown{/if}" title="{$image.legend|htmlspecialchars}">
getImageLink($product->link_rewrite, $imageIds, 'medium')}" alt="{$image.legend|htmlspecialchars}" height="{$mediumSize.height}" width="{$mediumSize.width}" />


                   {/foreach}
               {/if}


       {if isset($images) && count($images) > 3}{l s='Next'}{/if}

       {/if}
       {if isset($images) && count($images) > 1}
getProductLink($product)}" onclick="$('span#wrapResetImages').hide('slow');return (false);">{l s='Display all pictures'}{/if}

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...