EtapDesign Posted May 8, 2013 Share Posted May 8, 2013 Bonjour, j'ai un gros soucis sur mon site, j'ai basculé vers la version 1.5.3, et les title de mes sous-catégorie ne s'affichent pas en FO mais en BO. Du coup j'ai perdu pas mal de places...seriez-vous comment corriger ce problème? Merci d'avance pour vos réponses. Link to comment Share on other sites More sharing options...
kararfr Posted May 8, 2013 Share Posted May 8, 2013 Tu as pensé à désactiver le cache et forcer la compilation ? Link to comment Share on other sites More sharing options...
EtapDesign Posted May 8, 2013 Author Share Posted May 8, 2013 Oui bien sûr, je dégringole complètement...ça fait vraiment XXX 1 Link to comment Share on other sites More sharing options...
kararfr Posted May 8, 2013 Share Posted May 8, 2013 Ca le fait sur quelles pages ? Toutes ? Ton thème est-il compatible avec la version 1.5 ? Peux-t'on avoir un lien pour voir ? Link to comment Share on other sites More sharing options...
EtapDesign Posted May 8, 2013 Author Share Posted May 8, 2013 Seulement dans les sous-catégorie d'une catégorie...je t'ai envoyé le lien en mp, merci de vouloir m'aider. 1 Link to comment Share on other sites More sharing options...
kararfr Posted May 8, 2013 Share Posted May 8, 2013 Apparemment un problème avec la variable qui affiche le nom de la sous-catégorie. Peux-tu nous mettre le code TPL de la page ? Link to comment Share on other sites More sharing options...
EtapDesign Posted May 8, 2013 Author Share Posted May 8, 2013 la page category.tpl du thème? Link to comment Share on other sites More sharing options...
kararfr Posted May 8, 2013 Share Posted May 8, 2013 la page category.tpl du thème? Yep! Link to comment Share on other sites More sharing options...
EtapDesign Posted May 8, 2013 Author Share Posted May 8, 2013 {include file="$tpl_dir./breadcrumb.tpl"} {include file="$tpl_dir./errors.tpl"} {if isset($category)} {if $category->id AND $category->active} <!--<h1> {strip} {$category->name|escape:'htmlall':'UTF-8'} {if isset($categoryNameComplement)} {$categoryNameComplement|escape:'htmlall':'UTF-8'} {/if} {/strip} </h1>--> <!-- <div class="resumecat category-product-count"> {include file="$tpl_dir./category-count.tpl"} </div>--> {if $scenes || $category->description || $category->id_image} <div class="content_scene_cat"> {if $scenes} <!-- Scenes --> {include file="$tpl_dir./scenes.tpl" scenes=$scenes} {else} <!-- Category image --> <!--{if $category->id_image} <div class="align_center"> <img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage" width="{$categorySize.width}" height="{$categorySize.height}" /> </div> {/if}--> {/if} {if $category->description} <div class="cat_desc">{$category->description}</div> {/if} </div> {/if} {if isset($subcategories)} <!-- Subcategories --> <div id="subcategories"> <!--<h3>{l s='Subcategories'}</h3>--> <ul class="inline_list"> {foreach from=$subcategories item=subcategory} <li class="clearfix"> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" class="cat_name">{$subcategory.name|escape:'htmlall':'UTF-8'}</a> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}" class="img"> {if $subcategory.id_image} <img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'categorie')}" alt="" width="160px" height="160px" /> {else} <img src="{$img_cat_dir}default-categorie.jpg" alt="" width="160px" height="160px" /> {/if} </a> </li> {/foreach} </ul> <br class="clear"/> </div> {/if} {if $products} <div class="content_sortPagiBar"> {include file="$tpl_dir./pagination.tpl"} <div class="sortPagiBar clearfix"> {include file="./product-sort.tpl"} {include file="./product-compare.tpl"} {include file="./nbr-product-page.tpl"} </div> </div> {include file="./product-list.tpl" products=$products} <div class="content_sortPagiBar"> <div class="sortPagiBar clearfix"> {include file="./product-compare.tpl"} {include file="./nbr-product-page.tpl"} </div> {include file="./pagination.tpl"} </div> {/if} {elseif $category->id} <p class="warning">{l s='This category is currently unavailable.'}</p> {/if} {/if} Link to comment Share on other sites More sharing options...
kararfr Posted May 8, 2013 Share Posted May 8, 2013 Après : {if $category->description} <div class="cat_desc">{$category->description}</div> {/if} Ajoute ça pour voir : {if isset($subcategories)} <div class="cat_desc">{$subcategory.description}</div> {/if} Link to comment Share on other sites More sharing options...
EtapDesign Posted May 8, 2013 Author Share Posted May 8, 2013 Merci pour ta réponse mais cela ne fonctionne pas. Link to comment Share on other sites More sharing options...
kararfr Posted May 8, 2013 Share Posted May 8, 2013 Alors supprime le code que je viens de te donner et remplace ça : {if isset($subcategories)} <!-- Subcategories --> <div id="subcategories"> <!--<h3>{l s='Subcategories'}</h3>--> Par ça : {if isset($subcategories)} <!-- Subcategories --> <div class="cat_desc">{$subcategory.description}</div> <div id="subcategories"> <!--<h3>{l s='Subcategories'}</h3>--> Link to comment Share on other sites More sharing options...
EtapDesign Posted May 8, 2013 Author Share Posted May 8, 2013 (edited) Merci pour ta seconde proposition, mais cela ne marche toujours pas après la compilation etc si jamais tu doutais que je ne l'avais pas faites. Tu crois vraiment que tout se passe dans ce fichier? Edited May 8, 2013 by EtapDesign (see edit history) Link to comment Share on other sites More sharing options...
kararfr Posted May 8, 2013 Share Posted May 8, 2013 (edited) J'essaie de comprendre. Ce que je constate c'est que lorsque l'on est dans une catégorie on la code suivant pour afficher le titre : <div class="content_scene_cat"> <!-- Category image --> <!-- <div class="align_center"> <img src="http://www.shilton.fr/boutique-en-ligne-shilton/c/14-category_default/t-shirt-enfant.jpg" alt="T-shirt" title="T-shirt" id="categoryImage" width="500" height="150" /> </div> --> <div class="cat_desc"><h1>T-shirt Enfant manches courtes - manches longues</h1></div> </div> Et quand on est dans uns sous-catégorie, on a : <div class="content_scene_cat"> <!-- Category image --> <!-- <div class="align_center"> <img src="http://www.shilton.fr/boutique-en-ligne-shilton/c/53-category_default/homme-mhr.jpg" alt="Homme" title="Homme" id="categoryImage" width="500" height="150" /> </div> --> </div> Edited May 8, 2013 by kararfr (see edit history) Link to comment Share on other sites More sharing options...
kararfr Posted May 8, 2013 Share Posted May 8, 2013 (edited) On a donc rien dans <div class="content_scene_cat"> et ce code se trouve dans category.tpl Edited May 8, 2013 by kararfr (see edit history) Link to comment Share on other sites More sharing options...
EtapDesign Posted May 8, 2013 Author Share Posted May 8, 2013 Ah d'accord, effectivement, vu de ce côté, cela vient de là...mais c'est étrange qu'il ne marche pas que pour ces deux sous catégories là...une autre sous-catégorie s'affiche parfaitement. Link to comment Share on other sites More sharing options...
kararfr Posted May 8, 2013 Share Posted May 8, 2013 J'ai l'impression chez toi que c'est {$category->description} qui affiche le titre de la catégorie au lieu de : <h1> {strip} {$category->name|escape:'htmlall':'UTF-8'} {if isset($categoryNameComplement)} {$categoryNameComplement|escape:'htmlall':'UTF-8'} {/if} {/strip} </h1> Ce code est est en commentaire chez toi et donc ne s'affiche pas. Link to comment Share on other sites More sharing options...
EtapDesign Posted May 8, 2013 Author Share Posted May 8, 2013 J'ai enlevé tous les commentaires...et rien n'y fait, les titres de ses catégories ne fonctionnent pas... Link to comment Share on other sites More sharing options...
EtapDesign Posted May 8, 2013 Author Share Posted May 8, 2013 J'ai même essayé de mettre le fichier par défaut catefory.tpl de prestashop, même si je ne l'avais pas pris d'un thème à la base, je l'ai modifié directement avec le css...cela ne fonctionne pas..c'est vraiment bizarre Link to comment Share on other sites More sharing options...
EtapDesign Posted May 8, 2013 Author Share Posted May 8, 2013 C'est vraiment très bizarre de toute façon ce qui se passe avec ces sous-caégories, les positions de celles-ci ne fonctionnent pas également, seules celles des produits fonctionnent, tout déconne avec les sous catégories en fait...j'aurais peut-être jamais dû passer sur cette version.. Link to comment Share on other sites More sharing options...
kararfr Posted May 8, 2013 Share Posted May 8, 2013 Cela fonctionnait bien avant la bascule ? Et tu as basculé depuis quelle version ? Link to comment Share on other sites More sharing options...
EtapDesign Posted May 8, 2013 Author Share Posted May 8, 2013 Oui tout fonctionnait parfaitement, de la 1.4.8 vers la 1.5.3 Link to comment Share on other sites More sharing options...
EtapDesign Posted May 8, 2013 Author Share Posted May 8, 2013 Je fais un petit up pour savoir si certains pouvaient m'aider? Link to comment Share on other sites More sharing options...
monkimedia Posted February 11, 2014 Share Posted February 11, 2014 Bonjour à tous, j'ai aussi un soucis de meta title sur mes pages produits par contre moi ...qui ne s'affichent pas... il n'y a que le nom de la boutique : http://fr.tc-for-sho...uleur-rose.html J'ai pourtant bien rempli le champs SEO du produit "balise title"... mais rien ne s'affiche... Une idée? Merci d'avance 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