open catalog\controller\category.php you i'l have something like this
Code: Select all
foreach ($results as $result) {
$query = array(
'path' => $request->get('path'),
'product_id' => $result['product_id']
);
$product_data[] = array(
'name' => $result['name'],
'href' => $url->href('product', FALSE, $query),
Code: Select all
function reduce_str($text, $size)
{
$length = strlen($text);
if($length>$size)
{
$length_fin = substr($text, 0, $size);
$text = $length_fin."...";
}
return($text);
}
foreach ($results as $result) {
$query = array(
'path' => $request->get('path'),
'product_id' => $result['product_id']
);
$product_data[] = array(
'name' => reduce_str($result['name'],9),
'href' => $url->href('product', FALSE, $query),
and put instead of "9 ", number of character you want the name to be reduce,
hope it was helpful like it was it for me
ps : sorry for my english
