Jump to content

Agrandir l'image de la déclinaison


Recommended Posts

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 :

  1. Modifier le fichier product.tpl qui se trouve dans votre thème
  2. 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...