Manu-41 Posted January 10, 2017 Share Posted January 10, 2017 Bonjour, j'utilise la version 1.6 de presta et le thème par défaut. Quand ont reçois des commentaires clients, il faut passer la souri sur le produits pour voir les étoiles. Or je cherche à voir ces étoiles sans forcement passer la souris dessus. Y a t il une solution? ou un paramétrage que je n'ai pas vu? Merci pour vos informations et aide. Link to comment Share on other sites More sharing options...
Oron Posted January 10, 2017 Share Posted January 10, 2017 Bonjour C'est un thème que vous avez ajouter ? Link to comment Share on other sites More sharing options...
Manu-41 Posted January 10, 2017 Author Share Posted January 10, 2017 Bonjour C'est un thème que vous avez ajouter ? Non, le thème par défaut. Quand le site s'affiche avec tous les produits, ont ne vois pas les étoiles de commentaires, il faut passer la souris dessus pour voir les étoiles. Je voudrais juste rendre possible de voir les étoiles sans passer la souris dessus. Vous comprenez? Link to comment Share on other sites More sharing options...
PixGeek Posted January 11, 2017 Share Posted January 11, 2017 essaye ceci, à ajouter dans product-list.tpl la ou tu souhaites afficher les étoiles... {if $criterions|@count > 0} <ul id="criterions_list"> {foreach from=$criterions item='criterion'} <li> <label>{$criterion.name|escape:'html':'UTF-8'}:</label> <div class="star_content"> <input class="star" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="1" /> <input class="star" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="2" /> <input class="star" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="3" checked="checked" /> <input class="star" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="4" /> <input class="star" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="5" /> </div> <div class="clearfix"></div> </li> {/foreach} </ul> {/if} cela devrait fonctionner Link to comment Share on other sites More sharing options...
Manu-41 Posted January 11, 2017 Author Share Posted January 11, 2017 essaye ceci, à ajouter dans product-list.tpl la ou tu souhaites afficher les étoiles... {if $criterions|@count > 0} <ul id="criterions_list"> {foreach from=$criterions item='criterion'} <li> <label>{$criterion.name|escape:'html':'UTF-8'}:</label> <div class="star_content"> <input class="star" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="1" /> <input class="star" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="2" /> <input class="star" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="3" checked="checked" /> <input class="star" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="4" /> <input class="star" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="5" /> </div> <div class="clearfix"></div> </li> {/foreach} </ul> {/if} cela devrait fonctionner Merci pour ton aide! Les étoiles à ajouter, c'est dans la même fiche articles, sauf que je voudrais que mes clients les vois sans passer la souris dessus Link to comment Share on other sites More sharing options...
PixGeek Posted January 11, 2017 Share Posted January 11, 2017 Rappelé moi l url de ton site? Link to comment Share on other sites More sharing options...
PixGeek Posted January 11, 2017 Share Posted January 11, 2017 faut mettre le code avant le prix... Link to comment Share on other sites More sharing options...
PixGeek Posted January 11, 2017 Share Posted January 11, 2017 je crois que j'ai trouvé cherche ce code dans product-list.tpl ( Vers 145 ) {/if} {/if} {hook h="displayProductPriceBlock" product=$product type="price"} {hook h="displayProductPriceBlock" product=$product type="unit_price"} {hook h="displayProductPriceBlock" product=$product type='after_price'} {/if} </div> Ajoute juste au dessous de {/if} {if isset($nbComments) && $nbComments > 0} <div class="comments_note" itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating"> <div class="star_content clearfix"> {section name="i" start=0 loop=5 step=1} {if $averageTotal le $smarty.section.i.index} <div class="star"></div> {else} <div class="star star_on"></div> {/if} {/section} <meta itemprop="worstRating" content = "0" /> <meta itemprop="ratingValue" content = "{if isset($ratings.avg)}{$ratings.avg|round:1|escape:'html':'UTF-8'}{else}{$averageTotal|round:1|escape:'html':'UTF-8'}{/if}" /> <meta itemprop="bestRating" content = "5" /> </div> <span class="nb-comments"><span itemprop="reviewCount">{$nbComments}</span> {l s='Review(s)' mod='productcomments'}</span> </div> {/if} cela devrait fonctionner Link to comment Share on other sites More sharing options...
Manu-41 Posted January 12, 2017 Author Share Posted January 12, 2017 je crois que j'ai trouvé cherche ce code dans product-list.tpl ( Vers 145 ) {/if} {/if} {hook h="displayProductPriceBlock" product=$product type="price"} {hook h="displayProductPriceBlock" product=$product type="unit_price"} {hook h="displayProductPriceBlock" product=$product type='after_price'} {/if} </div> Ajoute juste au dessous de {/if} {if isset($nbComments) && $nbComments > 0} <div class="comments_note" itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating"> <div class="star_content clearfix"> {section name="i" start=0 loop=5 step=1} {if $averageTotal le $smarty.section.i.index} <div class="star"></div> {else} <div class="star star_on"></div> {/if} {/section} <meta itemprop="worstRating" content = "0" /> <meta itemprop="ratingValue" content = "{if isset($ratings.avg)}{$ratings.avg|round:1|escape:'html':'UTF-8'}{else}{$averageTotal|round:1|escape:'html':'UTF-8'}{/if}" /> <meta itemprop="bestRating" content = "5" /> </div> <span class="nb-comments"><span itemprop="reviewCount">{$nbComments}</span> {l s='Review(s)' mod='productcomments'}</span> </div> {/if} cela devrait fonctionner Bonjour, dans quel dossier? Thème? Link to comment Share on other sites More sharing options...
Manu-41 Posted January 12, 2017 Author Share Posted January 12, 2017 Bonjour, dans quel dossier? Thème? je crois que j'ai trouvé cherche ce code dans product-list.tpl ( Vers 145 ) {/if} {/if} {hook h="displayProductPriceBlock" product=$product type="price"} {hook h="displayProductPriceBlock" product=$product type="unit_price"} {hook h="displayProductPriceBlock" product=$product type='after_price'} {/if} </div> Ajoute juste au dessous de {/if} {if isset($nbComments) && $nbComments > 0} <div class="comments_note" itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating"> <div class="star_content clearfix"> {section name="i" start=0 loop=5 step=1} {if $averageTotal le $smarty.section.i.index} <div class="star"></div> {else} <div class="star star_on"></div> {/if} {/section} <meta itemprop="worstRating" content = "0" /> <meta itemprop="ratingValue" content = "{if isset($ratings.avg)}{$ratings.avg|round:1|escape:'html':'UTF-8'}{else}{$averageTotal|round:1|escape:'html':'UTF-8'}{/if}" /> <meta itemprop="bestRating" content = "5" /> </div> <span class="nb-comments"><span itemprop="reviewCount">{$nbComments}</span> {l s='Review(s)' mod='productcomments'}</span> </div> {/if} cela devrait fonctionner Je viens de trouver, mais cela ne fonctionne pas. J'ai mis le code entre les 2 {/if} (ligne 146) Vidé le cache, et le navigateur aussi Link to comment Share on other sites More sharing options...
PixGeek Posted January 12, 2017 Share Posted January 12, 2017 Je regarde.... Link to comment Share on other sites More sharing options...
PixGeek Posted January 12, 2017 Share Posted January 12, 2017 Pour le moment je bloque. je regarderai quand j'aurai plus de temps 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