Jump to content

Modification breadcrumb


Recommended Posts

Bonjour

je cherche à modifier le file d'ariane pour ne plus voir apparaitre le nom du produit, juste les catégories et sous catégories.
j'aimerais savoir qu'elle fichier php il faut modifier. cela est-il dans le répertoire classes/.


en attente de vos réponses

Link to comment
Share on other sites

  • 2 months later...

Salut,

je suis également en train de chercher comment modifier le breadcrumb. Dans mon cas je cherche a masquer certaines catégories.

J'ai jeté un coup d'oeil dans le breadcrumb.tpl (prestashop/themes/monTheme/) qui affiche un {$navigationPipe|escape:htmlall:'UTF-8'}

Je n'ai pas encore trouvé comment modifier cette variable ni comment elle est construite.

Si tu as des infos je suis preneur, sinon dès que j'ai le temps de me pencher dessus je te fais part de mes découvertes ^^

Link to comment
Share on other sites

  • 2 months later...

pour enlever le nom du produit :
Dans le fichier /dossierPrestashop/product.php
vers la ligne 200 tu as :

$smarty->assign(array(
           'return_link' => (isset($category->id) AND $category->id) ? Tools::safeOutput($link->getCategoryLink($category)) : '[removed] history.back();',
           'path' => (isset($category->id) AND $category->id) ? Tools::getPath(intval($category->id), $product->name) : Tools::getPath(intval($product->id_category_default), $product->name)
));



il faut supprimer la variable $product->name pour path
ce qui donne :

$smarty->assign(array(
           'return_link' => (isset($category->id) AND $category->id) ? Tools::safeOutput($link->getCategoryLink($category)) : '[removed] history.back();',
           'path' => (isset($category->id) AND $category->id) ? Tools::getPath(intval($category->id)) : Tools::getPath(intval($product->id_category_default))
));



et normalement plus de nom de produit.

@tte

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