Jump to content

[HELP] Remove current location from breadcrumb.tpl???


Recommended Posts

Sorry I think you have miss understood my question, I only want to remove the current location from the breadcrumb. For example if I am viewing a Ipod the bradcrumb would be as follows: home/ipods/ipod

I would like it to read home/ipods

Thanks

Link to comment
Share on other sites

the product page controller, there is a following line

                   'path' => Tools::getPath((int)$category->id, $this->product->name, true),



If you change this line to below, it will be at your request.

                   'path' => Tools::getPath((int)$category->id, '',  true),

Link to comment
Share on other sites

does the above modification I posted worked for you?

Here is the guide lines.
The path is generated in Tool::getPath method.
In each path, the page controller, call this method to decided the path.
and then set to smarty 'path" variable.

hope you can figure out how make changes for all requirements.
You can look into to modify the core method Tools::getPath() method

Link to comment
Share on other sites

×
×
  • Create New...