Jump to content

How can I edit the {$path} variable in the header template?


Recommended Posts

Hi guys,

 

On my product page I just want it to display the product name in the header breadcrumb and not the category names before. In the header .tpl file I can only see a value of {$path}, how can I edit that to only show the product name on the product pages?

 

Many thanks

Link to comment
Share on other sites

Ok thanks for that, I've taken a look at the getPath function and I'm not sure how I can remove the category name from the products page whilst keeping the category name in the category pages, as they seem to be under one function. For example of I change the line 

return $full_path.$path; 

to 

return $path;

if makes it how I want on the product page, but then on the category pages it doesn't show the name.

 

Any help?

 

Many thanks

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