pasc06 Posted October 2, 2009 Share Posted October 2, 2009 Bonjour,Sur les fiches produits j'aimerais remplacer la short description par l'image de couverture en format "home" (129x129 px)comme sur le montage photo ci-dessous.Comment faire ?Merci de votre aide Link to comment Share on other sites More sharing options...
Atch Posted October 2, 2009 Share Posted October 2, 2009 Salut,J'ai pas testé mais ça devrait l'faire..Ouvrir product.tpl de votre theme et chercher cette portion de code {if $product->description_short} {$product->description_short} {/if} {if $product->description} {l s='More details'} {/if} Là remplacer par {if $have_image} getImageLink($product->link_rewrite, $cover.id_image, 'home')}" alt="{$product->name|escape:'htmlall':'UTF-8'}"/> {l s='More details'} {/if} Edit : Désolé le forum mange une portion du code. (voir fichier texte pour code complet)V++Atch Link to comment Share on other sites More sharing options...
pasc06 Posted October 2, 2009 Author Share Posted October 2, 2009 Bonjour et merci pour ton aideApparemment ça ne fonctionne pas.Je suis en 1.1 ça a peut-être une importance...Le code à remplacer n'est pas identique...Au départ j'ai : {if $product->description_short} {$product->description_short} {if $product->description} {l s='More details'} {/if} 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