Jump to content

Problèmes d'affichage catégorie


Guest ikalangita

Recommended Posts

Bonjour tout le monde,
mon site est www.madegasikart.com, tout marche très bien, bravo à prestashop, sauf que les listes des produits dans une catégorie ne s'affiche pas, c'est bizarre et je ne comprend pas.
par exemple sur cette catégorie, le produit dans cette catégorie ne s'affiche même pas alors qu'il est bel et bien entré dans le BO, preuve il s'affiche sur la page d'accueil.

C'est vraiment dommage ce bug car cela nuirait totalement à la structure de ma boutique.

Merci pour vos aides et bravo pour l'équipe de prestashop pour ce big script.

Je vous joins deux captures pour bien expliquer

9907_YXoWQJF3Jd7lyRGuTOac_t

9909_aXRi8TlEkYZSYm9mASoy_t

Link to comment
Share on other sites

  • 2 weeks later...

Personne ne peut m'aider?
par contre quand je desactive la ligne

$css_files[_THEME_CSS_DIR_.'global.css'] = 'all';

dans header.tpl du template, le produit s'affiche dans la liste des produits de la categorie.

quelqu'un peut il avoir une idée ce que c'est, je vous joins ici le fichier css du theme ainsi que le categories.tpl,


* {
   padding:0;
   margin:0;
}

body {
   background:#fff ;
   font-size:12px;
   font-family: Geneva,Arial,Helvetica,sans-serif;
   color: #5d717e;
   text-align:center;
}

/* Useful */
.align_center { text-align:center; }
.align_right { text-align:right; }
.middle { vertical-align: middle; }
.align_justify{ text-align: justify; }
.uppercase { text-transform:uppercase; }
.hidden, .collapsed, .block_hidden_only_for_screen { display:none; }
.wrap { white-space: normal; }
.bold { font-weight: bold; }
.strike { text-decoration:line-through; }
.italic { font-style: italic; }
.top { vertical-align: top; }
.span_link { cursor:pointer; }
.span_link:hover { text-decoration:underline; }
.clear { clear:both; }
br.clear {
   clear:both;
   line-height:0;
   font-size:0;
   height:0;
}
.lien_header{width:471px;height:88px;position:absolute;left:10%;top:0;}
/* Footer links */
ul.footer_links{
   list-style-type:none;
   clear:both;
   height:2em;
   margin-top:2em;
}
ul.footer_links li{
   float:left;
   margin-right:2em;
   height:2em;
}
ul.footer_links li a{ text-decoration:none; }
ul.footer_links li a:hover{ color:black; }
ul.footer_links li img.icon{ vertical-align:-2px; }

/* transfert effect*/
.transferProduct { border: 2px solid #888; }

/* simple list inline */
ul.inline_list{ list-style-type:none; margin-top: 1em; }
ul.inline_list li { float:left; text-align:center; }
ul.inline_list li img{ display:block; }
ul.half {
   width: 45%;
   margin-right: 1em;
   float: left;
}

/* Category tree (i.e. in sitemap) */
div.tree_top {
   background:url('../img/sitemap-top.gif') no-repeat -1px -3px;
   padding-left:24px;
   padding-bottom:5px;
   padding-top:3px;
}
ul.tree, ul.tree ul{ list-style-type:none; }
ul.tree li{
   padding-left:1.2em;
   /*border-left:1px gray dotted;*/
   background:url(../img/sitemap-horizontal.gif) no-repeat left 10px;
   margin-left:1em;
}
ul.tree a{ padding-left:0.2em; }
ul.tree a.selected{ font-weight:bold; }
ul.tree li.last{
   background:url(../img/sitemap-last.gif) no-repeat -12px -2px;
   border:none;
}
span.grower{ cursor:pointer; }

/* Tabs */
ul.idTabs {
   list-style-type:none;
   border-bottom:solid 1px grey;
   height:21px;
   margin-top:1em;
}
ul.idTabs li {
   float:left;
   margin-right:1px ;
   border-top:1px solid grey;
   border-left:1px solid grey;
   border-right:1px solid grey;
}
ul.idTabs li a {
   display:block;
   width:173px;
   height:18px;
   text-align:center;
   text-decoration:none;
   text-transform:uppercase;
   font-weight:bold;
   padding-top:3px;
   color:grey;
}
ul.idTabs li a.selected{
   color:black;
}

/* IdTabs Short*/
ul.idTabsShort li a {
   width:138px;
}
ul.idTabsShort li a.selected{
   color:black;
}

div.sheets{
   clear:both;
   padding:1em;
}
div#more_info_sheets ul li{    margin-bottom:0.4em; }

/* global style */
a {
   color:#595a5e;
   text-decoration: underline;
   outline: none;
}
a:hover {
   text-decoration: none;
}
input:focus {
   outline: 0;
   outline-offset: 0;
}
a img {
   outline: none;
   border: 0 none;
   text-decoration: none;
}
h2 {
   font-size: 2em;
   line-height:1.6em;
   padding-left:0em;
   margin: 1.5em 0;
   font-weight: bold;
   height: 21px;
}
h2 span {
   font-size: 0.9em;
   text-transform: lowercase;
   font-weight: normal;
   font-style: italic;
   color: #374853;
   margin-left: 1em;
}
h3 { font-size: 1.1em; margin: 1em 0; }
h4 { font-size: 1em; }

/* global layout */
#page {
background:#fff url(../img/page_bt.jpg) repeat-x ;
margin:0px auto 2px;
text-align:left;
width:100%;
padding-top:0px;
}
#centerpage{width:1000px;margin:auto;}
#horiz_bar{height:1px;background:#FFE1A1;border-top:4px solid #E7D9B2;}
#menu_haut{

/*    background: url(../img/menu.jpg);
*/    margin:auto;
   width:85%;
}
#categories_block_left.block h4{margin-top:10px; background:url(../img/title-bloc-orange.jpg) no-repeat top center;}
#header_user{position:absolute;top:50px;right:40px;width:300px;text-align:center;}
#header_user a{color: #993300;}
h1#logo {
   width: 29%;
   margin-left:0.5em;

}
#header {
   text-align: right;
   background: url(../img/bg_top.jpg) top;
   height:210px;
   position:relative;
   }
div
#logo #searchbox, #header #search_block_top  {display:none;}
#logo #searchbox #search_query {background:#FFFFFF none repeat scroll 0 0;
border:1px solid #203346;
color:#B0B0B0;
float:right;
font-weight:normal;
height:20px;
margin:-30px 70px 0 0;
padding-top:4px;
width:260px;
}

#logo #searchbox #search_button, #searchbox, #header_links, #languages_block_top, #currencies_block_top{
display:none;
}
#left_column, #center_column, #right_column {
   float:left;
}

#left_column {
   clear:left;
   width:170px!important;
   width:160px;
   padding-right: 15px;
   margin-left:10px!important;
   margin-left:5px;
}
#center_column {
   margin:30px 0 0 30px!important;
   margin:30px 0 0 0px;
   width:540px;
}
#center_column #primary_block {

}
#center_column #primary_block h2{
   color:#00A9AD;
   margin-bottom:0px;
   padding:5px;
   background:url(../img/primary.png) no-repeat bottom;
   height:36px;
   margin-bottom:10px;
}
#right_column {
margin-left:35px!important;
margin-left:0px;
margin-top:30px;
width:190px;
}

/* global RTE fields */

div.rte html, div.rte div, div.rte span, div.rte applet, div.rte object, div.rte iframe,
div.rte h1, div.rte h2, div.rte h3, div.rte h4, div.rte h5, div.rte h6, div.rte p, div.rte blockquote, div.rte pre,
div.rte a, div.rte abbr, div.rte acronym, div.rte address, div.rte big, 

Link to comment
Share on other sites

==== catégorie.tpl

{include file=$tpl_dir./breadcrumb.tpl} 

{include file=$tpl_dir./errors.tpl}

{if $category->active}


   {$category->name|escape:'htmlall':'UTF-8'}
{$nb_products|intval} {if $nb_products>1}{l s='products'}{else}{l s='product'}{/if}


{if $scenes}
   <!-- Scenes -->
   {include file=$tpl_dir./scenes.tpl scenes=$scenes}
{else}
   <!-- Category image -->
   {if $category->id_image}
id_image}-category.jpg" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage" />
   {/if}
{/if}    

 {if $category->description}
{$category->description}
 {/if}

   {if isset($subcategories)}
   <!-- Subcategories -->

{l s='Subcategories'}

       {foreach from=$subcategories item=subcategory}

getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}">




getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}">{$subcategory.name|escape:'htmlall':'UTF-8'}

       {/foreach}




   {/if}

 {if $products}
       {include file=$tpl_dir./product-sort.tpl}
       {include file=$tpl_dir./product-list.tpl products=$products}
       {include file=$tpl_dir./pagination.tpl}
   {elseif !isset($subcategories)}

{l s='There is no product in this category.'}
   {/if}
{else}

{l s='This category is currently unavailable.'}
{/if}

Link to comment
Share on other sites

Oui j'ai remarqué cela, car j'ai pas encore mis le lien sur le menu en vert, à vrai dire jene sais pas encore comment mettre le lien directement car là c'est seulement un lien vers une catégorie de produts qui n'existe pas,
Est ce que tu peux me dire comment mettre un lien direct ?

Link to comment
Share on other sites

re,
tu as utilisez un module "pret a l'emploi" normalement c'est automatique....! ou tu as fait une mise a jour....? (j'ai comme l'impression que ca ressemble a ton probleme)
j'ai remarque que le bon lien c "new-products.php" et le pas bon "11-nouveaux-produits.php"
as-tu essayer de desinstaller le module nouveaux produits et de le re-installer....?
sinon rechercher dans themes/... le texte du pas bon et remplacer par le bon ...
a+

Link to comment
Share on other sites

oui, c'est new-product.php qui est le bon lien mais je ne sais pas comment faire pour coller ce lien "new-products.php" sur le menu en haut en vert. pour le module à gauche c'est pas un problème car je peux le desinstaller après ou le laisser à sa place pour des liens supplementaires pour les robots.
Le lien en vert "nouveaux produits" est encore un lien vers une catégorie alors que je souhaite le faire pointer vers "new-products.php", je pense que c'est un petit manque à prestashop est la possibilité de coller un url externe par exemple lors de creation de lien dans le BO.
Est ce que tu comprend ce que je veux dire?
merci,

Link to comment
Share on other sites

qu'a tu installe comme module pour la gestion du menu horizontal..? peut-etre en desinstallant le module nouveaux produits et les modules menu vertical et menu horizontal, re-installant le module nouveaux-produits et les menu H et V ca se corrigera tout seul....????

Link to comment
Share on other sites

Je ne pense pas que c'est à cause du module menu horizontale ou verticale, c'est dans le BO même qu'il n'est pas possible de créer un lien et de lui spécifier une destination specifique.
Dans joomla tu peux créer un lien dans la BO et soit lui faire pointer vers une catégorie que tu veux, soit tu specifie un lien externe vers une autre destination par exemple.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...