Jump to content

How to create multi level breadcrumbs ?


Gramzivi

Recommended Posts

Currently on my site 

I have in Prestashop CMS three categories

 

Alcohol

Non Alcohol

Other

 

I have about 10 items in "Alcohol"

 

 

On my homepage when I click on Alcohol I got breadcrumbs like this:

 

Home -> Alcohol

 

But when I click for example on "Local wines" in Alcohol category i get:

 

Home -> Local Wines

But that's not what I want.

 

How to make next thing:

Home -> Alcohol -> Local Wines

 

In breadcrumbs.tpl I have next code:

<div class="breadcrumb-content">
    <a href="{$base_dir}" class="home-bread" title="{l s='Home'}">{l s='Home'}</a>
    {if isset($path) AND $path}
        <span {if isset($category) && isset($category->id_category) && $category->id_category == 1}style="display:none;"{/if}> 
            <i class="fa fa-long-arrow-right"></i>
        </span>
        <span class="active">
        {if !$path|strpos:'span'}
            {$path}
        {else}
            {$path}
        {/if}
        </span>
    {/if}
</div>

And category variable is always empty.

 

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