Rémy - @webdesignrr Posted April 17, 2014 Share Posted April 17, 2014 Bonjour Sur la 1.6 avec les theme par defaut J'utilise les attributs de couleurs en utilisant une image (icone) en texture au lieu des couleurs ... sur la fiche produit : ok sur la recherche a facette : ok MAIS sur les liste de produits (product-list.tpl) ce sont les couleurs qui s'affichent au lieu de la texture ?? Avez vous une idée pour corriger ce dysfonctionnement ? d'avance ... merci Link to comment Share on other sites More sharing options...
walidon Posted April 17, 2014 Share Posted April 17, 2014 un lien vers votre site svp? Link to comment Share on other sites More sharing options...
Rémy - @webdesignrr Posted April 17, 2014 Author Share Posted April 17, 2014 Le site n'est pas encore en production ... en cours de réalisation ... Link to comment Share on other sites More sharing options...
loulou66 Posted April 20, 2014 Share Posted April 20, 2014 coucou alors dans le controller category.php la palette de couleur est appellée par la fonction addColorsToProductList du controller Frontcontroller.php qui appelle le template product-list-colors.tpl donc ça doit être ce fichier que tu doit modifié je pense ou cette fonction @++ Loulou66 Link to comment Share on other sites More sharing options...
lerendezvousdelafete Posted April 5, 2015 Share Posted April 5, 2015 Bonjour, Aviez vous pu aller plus loin sur le sujet ? Je serais intéressé également. Merci, Yohan Link to comment Share on other sites More sharing options...
loulou66 Posted April 9, 2015 Share Posted April 9, 2015 Coucou il doit vous manquez l'affichage de l'image surement dans mon product-list-color.tpl d'un autre theme que default_bootstrap j'ai ceci ul class="color_to_pick_list clearfix"> {foreach from=$colors_list item='color'} {assign var='img_color_exists' value=file_exists($col_img_dir|cat:$color.id_attribute|cat:'.jpg')} <li> <a href="{$link->getProductLink($color.id_product, null, null, null, null, null, $color.id_product_attribute)|escape:'html':'UTF-8'}" id="color_{$color.id_product_attribute|intval}" class="color_pick"{if !$img_color_exists && isset($color.color) && $color.color} style="background:{$color.color};"{/if}> {if $img_color_exists} <img src="{$img_col_dir}{$color.id_attribute|intval}.jpg" alt="{$color.name|escape:'html':'UTF-8'}" title="{$color.name|escape:'html':'UTF-8'}" width="25" height="23" /> {/if} </a> </li> {/foreach} </ul> les images s'affichent bien il faut juste ajuster le CSS après si il a y beaucoup d'image on peut les cachées avec .ul.color_to_pick_list.clearfix { height: 27px; overflow: hidden; } Voilou @++ Loulou66 Link to comment Share on other sites More sharing options...
informatikadomicile Posted May 17, 2016 Share Posted May 17, 2016 Bonjour Il manque le < ul class="color_to_pick_list clearfix"> {foreach from=$colors_list item='color'} {assign var='img_color_exists' value=file_exists($col_img_dir|cat:$color.id_attribute|cat:'.jpg')} <li> <a href="{$link->getProductLink($color.id_product, null, null, null, null, null, $color.id_product_attribute)|escape:'html':'UTF-8'}" id="color_{$color.id_product_attribute|intval}" class="color_pick"{if !$img_color_exists && isset($color.color) && $color.color} style="background:{$color.color};"{/if}> {if $img_color_exists} <img src="{$img_col_dir}{$color.id_attribute|intval}.jpg" alt="{$color.name|escape:'html':'UTF-8'}" title="{$color.name|escape:'html':'UTF-8'}" width="25" height="23" /> {/if} </a> </li> {/foreach}</ul> Le test effectué sur la ps1.6.0.5 ne fonctionne pas.Aucun affichage malgre l'integration dans le fichier product_list.tpl? Une idée 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