vidub2001 Posted May 3, 2012 Share Posted May 3, 2012 Bonjour, J'aimerais afficher une image quand elle existe dans la page des fabriquants mais je n'y arrive pas ! Ci-dessous mon code : {include file=$tpl_dir./breadcrumb.tpl} <h2>{l s='List of products by manufacturer:'} {$manufacturer->name|escape:'htmlall':'UTF-8'}</h2> {assign var="filename" val="/themes/prestashop/img/marques/{$manufacturer->name|replace:' ':'_'}.jpg"} {if $filename|file_exists} <br /> <img src="/themes/prestashop/img/marques/{$manufacturer->name|replace:' ':'_'}.jpg" alt="{$manufacturer->name}" /> {/if} {include file=$tpl_dir./errors.tpl} {if $products} {include file=$tpl_dir./product-sort.tpl} {include file=$tpl_dir./product-list.tpl products=$products} {include file=$tpl_dir./pagination.tpl} {else} <p class="warning">{l s='No products for this manufacturer.'}</p> {/if} Merci beaucoup par avance pour votre aide Cordialement Fabrice Link to comment Share on other sites More sharing options...
vidub2001 Posted May 7, 2012 Author Share Posted May 7, 2012 Un petit up !! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now