Jump to content

How to show the full path ?


Recommended Posts

Hello !

In my shop, when I go under specific category, the tittle above shows only current category. But I want to show it the full path... For example if I go in category:
STAMPS>EUROPE>SLOVENIA>USED>2006 it shows only 2006

what should I do to be displayed the full path and should be clickable ?

look at the attached picture to know what I mean..and sorry for my english.

45646_6bRGgTLoePEUR0O6OEDI_t

Link to comment
Share on other sites

The default theme of PrestaShp does what you wanted.
it seems that your theme are customized one or 3rd party theme. I think it is by design to use only last category name.

if following line is not in your YourSiteRoot/themes/YourSiteTheme/category.tpl file, try to insert it see it it changes

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

Link to comment
Share on other sites

then check the following file is different from original version from PrestaShop.
YourSiteRoot/themes/YourSiteThem/breadcrumb.tpl

for your reference, attached is the file from PrestaShop 1.4.1

<!-- Breadcrumb -->
{if isset($smarty.capture.path)}{assign var='path' value=$smarty.capture.path}{/if}

You are here : {l s='Home'}{if isset($path) AND $path}{$navigationPipe|escape:html:'UTF-8'}{if !$path|strpos:'span'}{$path}{else}{$path}{/if}{/if}


<!-- /Breadcrumb -->

Link to comment
Share on other sites

Here is my breadcrumb.tpl :


<!-- Breadcrumb -->
{if isset($smarty.capture.path)}{assign var='path' value=$smarty.capture.path}{/if}

{l s='Home'}{if $path}{$navigationPipe|escape:html:'UTF-8'}{if !$path|strpos:'span'}{$path}{else}{$path}{/if}{/if}

<!-- /Breadcrumb -->




I tried to replace it with your code but everithing stays the same in front office
I'm using Prestashop Version 1.3.1.1

Link to comment
Share on other sites

  • 4 months later...
  • 11 months later...

Good Morning,

 

My Breadcrumbs are working perfectly ps 1.4.7.0

 

In breadcrumb.tpl my code is as follows:

 

<!-- Breadcrumb -->

{if isset($smarty.capture.path)}{assign var='path' value=$smarty.capture.path}{/if}

<div class="breadcrumb">

<a href="{$base_dir}" title="{l s='return to'} {l s='Home'}">{l s='Home'}</a>{if isset($path) AND $path}<span class="navigation-pipe">{$navigationPipe|escape:html:'UTF-8'}</span>{if !$path|strpos:'span'}<span class="navigation_page">{$path}</span>{else}{$path}{/if}{/if}

</div>

<!-- /Breadcrumb -->

 

Hope this is of some help

 

Paul

Link to comment
Share on other sites

  • 2 years later...
×
×
  • Create New...