abondon Posted April 11, 2015 Share Posted April 11, 2015 Bonjour, Je cherche à afficher les textures (image des valeurs d'attributs de type couleur/texture) dans ma page produit. Cela fonctionne bien, notamment avec le code suivant : <a href="{$link->getProductLink($product)|escape:'html':'UTF-8'}" id="color_{$id_attribute|intval}" name="{$colors.$id_attribute.name|escape:'html':'UTF-8'}" class="color_pick{if ($group.default == $id_attribute)} selected{/if}"{if !$img_color_exists && isset($colors.$id_attribute.value) && $colors.$id_attribute.value} style="background:{$colors.$id_attribute.value|escape:'html':'UTF-8'};"{/if} title="{$colors.$id_attribute.name|escape:'html':'UTF-8'}"> {if $img_color_exists} <img src="{$img_col_dir}{$id_attribute|intval}.jpg" alt="{$colors.$id_attribute.name|escape:'html':'UTF-8'}" title="{$colors.$id_attribute.name|escape:'html':'UTF-8'}" width="20" height="20" /> {/if} </a> où {$img_col_dir}{$id_attribute|intval}.jpg est l'image de ma texture d'attribut telle que téléchargée à partir de l'administration; Cependant ces images sont lourdes et non retaillées, donc si j'ai plusieurs valeurs d'attribut ca me les télécharge toute en grand format. Pour les produits catégories, etc il y a bien le menu préférence > image qui permet de retailler automatiquement dans un format choisi et ensuite récupérer l'image de la bonne taille, mais n'y a t il pas quelque chose d'équivalent pour les valeurs d'attributs? Merci de votre aide, AB 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