Hi I'm using Version 1.4.8 and am wondering how to exclude the Product Name from the Breadcrumb so it only displays Categories and Sub-Categories.
I was thinking I should be able to change the style of loop that generates the breadcrumb -- Maybe have it check for presence of a product (if that's possible) and then exclude it.
Any help is greatly appreciated.
open
and remove the following
Code: Select all
/catalog/controller/product/product.php
Code: Select all
$this->document->breadcrumbs[] = array(
'href' => $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/product' . $url . '&product_id=' . $this->request->get['product_id']),
'text' => $product_info['name'],
'separator' => $this->language->get('text_separator')
);
I have the same problem. however the code has changed abit since the last reply. I am curently running Version 2.1.0.1 and commenting out the following code seemed to do the trick for me. someone correct me if i did it wrong.
/* */ - i use these to comment out the code.
Code: Select all
$data['breadcrumbs'][] = array(
'text' => $product_info['name'],
'href' => $this->url->link('product/product', $url . '&product_id=' . $this->request->get['product_id'])
);
Who is online
Users browsing this forum: No registered users and 8 guests