Bonjour,
1.
Le CSS d'HikaShop que vous utilisez provient de la version 2.5.0:[
take.ms/vS5DR
Du coup, il vous manque tout le CSS pour le système de vote, car il a été refait depuis la 2.5.0
Il va falloir rajouter ce CSS:
.ui-rating{
margin:auto;
display: inline;
}
.ui-rating-star {
width: 16px;
height: 16px;
font-size: 2px;
display:inline-block;
text-decoration: none;
vertical-align: bottom;
background-image: url('../images/star.gif') !important;
background-repeat: no-repeat;
}
.ui-rating a {cursor: pointer; background-color: transparent !important;}
.ui-rating-full {background-position:left top;}
.ui-rating-mid {background-position:left -16px;}
.ui-rating-empty {background-position:left -32px;}
.ui-rating-hover {background-position:left -48px !important;}
/*
* Rating
*/
.hk-rating {
margin:auto;
display:inline;
}
.hk-rating a { cursor: pointer; background-color: transparent !important; }
.hk-rate-star {
width:16px;
height:16px;
font-size:2px;
display:inline-block;
text-decoration:none;
vertical-align:bottom;
background-image:url('../images/star.gif') !important;
background-repeat:no-repeat;
}
.hk-rate-star.state-full { background-position:left top; }
.hk-rate-star.state-mid { background-position:left -16px; }
.hk-rate-star.state-empty { background-position:left -32px; }
.hk-rate-star.state-hover { background-position:left -48px !important; }
.hikashop_vote_notification{
display:inline;
color:grey;
}
.hikashop_vote_form .hikashop_comment_textarea{
border: 1px solid #EEEEEE;
border-radius: 4px 4px 4px 4px;
color: #666666;
height: 60px;
margin: 5px 0;
padding: 5px;
width: 98%;
}
.hikashop_vote_form .button{margin-left:0px}
.hikashop_comment_textarea:hover, .hikashop_comment_textarea:focus{
border:1px solid #ddd;
}
.hikashop_vote_stars{
width: 100%;
padding:5px 0px;
}
.hikashop_vote_notification_mini{color:#666; font-size:11px; font-style:italic}
.hikashop_total_vote{color:#666; font-size:11px;}
.hikashop_total_vote{
display: inline;
}
.hikashop_vote_form{margin-top:10px}
.hikashop_vote_listing_useful_bought{font-style:italic}
.hikashop_vote_listing_useful_note{
margin-right:10px;
}
.hikashop_vote_listing_notification:hover{
margin-left:3px;
}
#hikashop_product_vote_listing{
margin-top:30px;
}
#hikashop_product_vote_form table, .hikashop_product_vote_form table{
margin:auto;
color:#666;}
.hikashop_vote_no_comment{
margin-left: 80px;
font-weight:bold;
}
.hikashop_listing_comment{
color:#555555;
font-weight: bold;
}
.hikashop_form_comment{
color:#555;
font-weight: bold;
}
.hikashop_vote_notification_mini{
display: inline;
}
.hikashop_comment_form{
width:100%;
}
.hikashop_comment_form input{
border: 1px solid #DDDDDD;
border-radius: 3px 3px 3px 3px;
padding: 3px;
}
.hikashop_product_vote_listing .pagination{text-align:center;}
.hikashop_product_vote_listing .pagination .list-footer{
margin: 10px 0px 5px 0px;
}
.hikashop_product_vote_listing .pagination .list-footer .counter{
display: none;
}
.hikashop_product_vote_listing .pagination .list-footer .limit{
display: none;
}
.hika_comment_listing{
margin:10px auto;
border: 1px solid #eee;
color: #999;
width: 100%;}
.hika_comment_listing_notification{
width: 120px;
font-style:italic;
}
.hika_comment_listing td{padding:5px;}
.hika_comment_listing:hover{border: 1px solid #ddd;}
.hika_comment_listing:hover .hika_comment_listing_useful_p{
color: #90b1c3;
}
.hika_comment_listing_name{
font-weight: bold;
color:#2C8296
}
.hika_comment_listing_stars{
width:85px;
}
.hika_comment_listing_content{
background-color: white;
padding: 2px;
color: #333;
}
.hika_comment_listing_useful_p{
width: 18px;
background-color: #ffffff;
border: 1px solid #90b1c3;
font-weight:bold;
padding: 1px;
text-align:center;
}
.hika_comment_listing_useful{
background-color: transparent !important;
width: 16px !important;
height: 14px !important;
background-image:url(../images/icons/vote_plus.png) !important;
background-size:16px 14px !important;
background-repeat:no-repeat !important;
background-position: right !important;
cursor: pointer !important;
}
.hika_comment_listing_useful.hide{
width: 16px;
height: 14px;
background-size:0px 0px;
}
.hika_comment_listing_useful_p.hide{
display:none;
}
.hika_comment_listing_useful.locked{
opacity: 0.2;
cursor: default !important;
}
.hika_comment_listing_useful.locked:hover, .hika_comment_listing_useless.locked:hover{
opacity: 1;
}
.hika_comment_listing_useless{
background-color: transparent !important;
width: 16px !important;
height: 14px !important;
background-image:url(../images/icons/vote_minus.png) !important;
background-size:16px 14px !important;
background-repeat:no-repeat !important;
background-position: right !important;
cursor: pointer !important;
}
.hika_comment_listing_useless.locked{
opacity: 0.5;
cursor: default;
}
.hika_comment_listing_full_stars {
width: 16px;
height: 16px;
display:inline-block;
text-decoration: none;
background-image: url('../images/star.gif') !important;
background-repeat: no-repeat;
background-position:left top;
cursor: default;
}
.hika_comment_listing_empty_stars {
width: 16px;
height: 16px;
display:inline-block;
text-decoration: none;
background-image: url('../images/star.gif') !important;
background-repeat: no-repeat;
background-position:left -32px;
cursor: default;
}
.hika_comment_listing_empty{
color: #666;
padding:5px;
}
.hika_comment_listing_bottom{
}
@media only screen and (max-width: 420px) {
.hikashop_sort_listing_comment{display: none;}
}
2. Je n'arrive pas à faire 2 commentaires sur le même produit avec le même compte utilisateur sur votre site.
J'obtiens bien le message d'erreur lors de la seconde tentative:
take.ms/Loaic
3. C'est le username qui est affiché, et non l'email. Le problème apparemment, c'est que l'email est utilisé en tant que username sur votre site.
Pour changer l'affichage, il va falloir éditer le fichier "listing" de la vue "vote" via le menu Affichage>Vues. Vous pouvez essayer de changer:
echo $elt->username;
par:
echo $elt->name;