Change BreadCrumbs from Product Name to Product SKU

Problem

If you are using long product names with multiple categories, the BreadCrumb will be very clumsy.

Solution

Replacing the Product Name as Product SKU will make the BreadCrumbs look much better.

In /includes/classes/class.product.php

Find

$GLOBALS['CatTrailName'] = isc_html_escape($this->GetProductName());

Replace

//$GLOBALS['CatTrailName'] = isc_html_escape($this->GetProductName());
$GLOBALS['CatTrailName'] = isc_html_escape($this->_prodsku);

Leave a Reply

Your email address will not be published. Required fields are marked *