Jump to content

[RESOLU] Problème d'affichage des images sous catégories


Recommended Posts

Bonjour,

 

J'espère que je post dans la bonne section, sinon merci de déplacé.

 

Je rencontre un problème sur l'affichage des images de mes sous catégories (Voir screen)

 

Le titre de la catégorie est décalé par rapport à l'image

 

J'ai essayer de modifier des paramètres avec firebug mais rien n'y fait

 

HELP !!!

 

Merci d'avance

 

Version Prestashop : 1.4.6.2

URL du site ou le problème survient : http://cosmetique-1e...m/46-maquillage

post-85266-0-29305700-1349711572_thumb.jpg

Edited by mike38saw (see edit history)
Link to comment
Share on other sites

A mon avis il y a un problème dans le fichier tpl (category.tpl).

 

La boucle foreach doit afficher les <li> à la suite. Or manifestement ta boucle foreach n'inclut pas les <li> mais uniquement les <a>

 

Envoies-moi ton fichier category.tpl de ton thème en PJ que je regarde.

 

Franck

Edited by franckm1000 (see edit history)
Link to comment
Share on other sites

Changes:

<li>
 <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}">
  {if $subcategory.id_image}
   <img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium')}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />
  {else}
   <img src="{$img_cat_dir}default-medium.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />
  {/if}
 </a>
 <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}">{$subcategory.name|escape:'htmlall':'UTF-8'}</a>

   </li>

 

En ça:

<li style="width:100px;">
 <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}">
  {if $subcategory.id_image}
   <img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium')}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />
  {else}
   <img src="{$img_cat_dir}default-medium.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />
  {/if}
 </a><br />
 <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}">{$subcategory.name|escape:'htmlall':'UTF-8'}</a>

   </li>

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...