medkyl Posted October 28, 2015 Share Posted October 28, 2015 Bonjour, j'essaye de récupérer le lien de l'image du produit en rapport avec la couleur mais en vain . version prestashop 1.6 <ul class="color_to_pick_list clearfix"> {foreach from=$colors_list item='color'} {if !empty($color.color)} <li> <a href="#" onclick="document.getElementById('img_{$color.id_product}').src='{$link->getImageLink($product.link_rewrite, $color.id_product, 'home_default')|escape:'html'}'" id="color_{$color.id_product_attribute|intval}" class="color_pick" style="background:{$color.color};"> </a> </li> {/if} {/foreach} </ul> merci de votre aide. 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