brandlee Posted March 4, 2014 Share Posted March 4, 2014 Bonjour, je voulais vous signaler un petit bug d'affichage des petits carrés attribut dans l'affichage du produit. Pour rappel, création d'une valeur d'attribut dans catalogue> Attributs et Valeurs Lors de la création de la valeur, on utilise l'upload d'un fichier image de texture. Cependant, lors de l'affichage de cette valeur d'attribut dans la fiche produit, le carré de texture (20x20) est plus petit que le carré d'encadrement (25x25). J'ai résolu ce prb en modifiant dans product.tpl : <a id="color_{$id_attribute|intval}" class="color_pick{if ($group.default == $id_attribute)} selected{/if}" style="background: {$colors.$id_attribute.value};" title="{$colors.$id_attribute.name}" onclick="colorPickerClick(this);getProductAttribute();{if $colors|@count > 0}$('#wrapResetImages').show('slow');{/if}"> {if file_exists($col_img_dir|cat:$id_attribute|cat:'.jpg')} <img src="{$img_col_dir}{$id_attribute}.jpg" alt="{$colors.$id_attribute.name}" width="25" height="25" /><br> {/if} </a> ces paramêtres width="25" height="25" (à la place de width="20" height="20") 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