nticstudio Posted March 22, 2015 Share Posted March 22, 2015 J'ia cherché pendant quelques jours une solution pour ajouter la possibilité d'agrandir l'image d'une déclinaison. Voici la solution si cela peut interesser quelqu'un : Modifier le fichier product.tpl qui se trouve dans votre thème Remplacer la ligne <a href="{$img_col_dir}{$id_attribute|intval}.jpg" 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'}"> par la ligne <a href="{$img_col_dir}{$id_attribute|intval}.jpg" 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} fancybox show{/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'}"> 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