enmoderugby Posted 6 hours ago Share Posted 6 hours ago Bonjour, Je suis sous P.S 1.7. Dès que le champs description dépasse un certain nombre de caractères, il duplique ces premières lignes ! Exemple : https://www.enmoderugby.com/fr/22-casques Quelqu'un sait-il comment corriger ce bug ? Merci Nicolas Link to comment Share on other sites More sharing options...
Eolia Posted 5 hours ago Share Posted 5 hours ago Bug de votre thème (category.tpl) Normalement si le champ est inférieur à x caractères c'est le bloc 1 qui s'affiche (avec parfois un bouton "voir plus") sinon c'est le bloc 2 qui s'affiche. Link to comment Share on other sites More sharing options...
enmoderugby Posted 5 hours ago Author Share Posted 5 hours ago Voici le contenu du fichier themes/classic/templates/catalog/listing/category.tpl. Que faut-il corriger ? {extends file='catalog/listing/product-list.tpl'} {block name='product_list_header'} {include file='catalog/_partials/category-header.tpl' listing=$listing category=$category} {/block} Link to comment Share on other sites More sharing options...
Eolia Posted 5 hours ago Share Posted 5 hours ago en 1.7 il faut faire le petit Poucet et suivre les chemins, donc regarder le contenu du fichier catalog/_partials/category-header.tpl Link to comment Share on other sites More sharing options...
enmoderugby Posted 5 hours ago Author Share Posted 5 hours ago Voici le script. Ce serait quoi le bug ? <div id="js-product-list-header"> {if $listing.pagination.items_shown_from == 1} <div class="block-category card card-block"> <h1 class="h1">{$category.name}</h1> <div class="block-category-inner"> {if $category.description} <div id="category-description" class="text-muted">{$category.description nofilter} </div> {/if} {if !empty($category.image.large.url)} <div class="category-cover"> <img src="{$category.image.large.url}" alt="{if !empty($category.image.legend)}{$category.image.legend}{else}{$category.name}{/if}" loading="lazy" width="141" height="180"> </div> {/if} </div> </div> {/if} </div> Link to comment Share on other sites More sharing options...
enmoderugby Posted 2 hours ago Author Share Posted 2 hours ago Après avoir pas mal creuser, il semble que la page affiche une version courte du champ description et une version longue mais que les 2 restent affichées. Quand la page se charge, elle affiche la version totale, puis, une fois chargée, la version courte haut dessus au lieu de masquer la version longue. De mémoire dans des versions plus anciennes de PS, il y avait un bouton qui permettait de déplier le texte. Link to comment Share on other sites More sharing options...
Eolia Posted 1 hour ago Share Posted 1 hour ago Je vous ai répondu il y a 3 heures mais mon contenu doit être approuvé... Link to comment Share on other sites More sharing options...
enmoderugby Posted 1 hour ago Author Share Posted 1 hour ago Oui donc le soucis est bien là a priori 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