Jump to content

Is there a way to change Navigation Pipe


Recommended Posts

Hi everyone

 

I am using the latest version of Prestashop 1.6.1 and it seems there is no way to change the breadcrumb navigation piple which is currently " > " .

I will like to use " / " instead of the above. Here is the code for breadcrumb.tpl.

{if isset($smarty.capture.path)}{assign var='path' value=$smarty.capture.path}{/if}
<div class="breadcrumb clearfix">
	<a class="home" href="{$base_dir}" title="{l s='Return to Home'}"><i class="icon-home"></i></a>
	{if isset($path) AND $path}
		<span class="navigation-pipe"{if isset($category) && isset($category->id_category) && $category->id_category == 1} style="display:none;"{/if}>{$navigationPipe|escape:'html':'UTF-8'}</span>
		{if $path|strpos:'span' !== false}
			<span class="navigation_page">{$path|@replace:'<a ': '<span itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a itemprop="url" '|@replace:'data-gg="">': '><span itemprop="title">'|@replace:'</a>': '</span></a></span>'}</span>
		{else}
			{$path}
		{/if}
	{/if}
</div>

I replaced {$navigationPipe|escape:'html':'UTF-8'} with " / " but only this only work for the first navigation pipe. The rest remain the same. E.g. Main / Genre > Action > blouse.

 

Anyone knows how to do this please should help.

 

Thank you

 

 

 

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 year later...

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