Jump to content

Remove "Manufacturer" from Breadcrumbs - PS 1.6


bitwiz

Recommended Posts

I'm trying to modify the breadcrumbs that show up after filtering products by manufacturer (with the checkboxes).

 

The default theme uses breadcrumbs like:

 

Category > Manufacturer ManufacturerName

 

In other words it says "Manufacturer" then outputs the actual Manufacturer's Name.

 

I'm trying to remove the word "Manufacturer" from the breadcrumb. Is this possible?

 

I've tried str_replace on a number of variables in various template files, I've tried to override the Tools.php controller, and even in the categories.js file without any success.

 

When I checkmark the Manufacturer (as a product filter) while inspecting in Chrome, PS runs an Ajax call to "modules/blocklayered/blocklayered-ajax.php" but I'm lost where to go after that point to modify the output.

 

I've also tried modifying breadcrumbs.tpl with: $path|replace:'Manufacturer ':''|replace:'MANUFACTURER ':''

Nothing.

 

Where is this getting generated? Or how can I modify the breadcrumbs?

 

Thank you for any assistance.

Edited by bitwiz (see edit history)
Link to comment
Share on other sites

Found it:

 

themes/mytheme/js/modules/blocklayered/blocklayered.js

 

Changed this:

if (result.heading != '')
     $('h1.page-heading .cat-name').html(result.heading);

To this:

if (result.heading != ''){
	var str = result.heading;
	var res = str.replace('Manufacturer ', '');
	$('h1.page-heading .cat-name').html(res);
}
Edited by bitwiz (see edit history)
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...