Forums / Templates, Stylesheets, Page Layout / Removing Product name from Breadcrumb

Removing Product name from Breadcrumb

Locked

Views: 1,295

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
27 Sep 2006, 4:11 PM
#1
crazycucumber avatar

crazycucumber

Zen Follower

Join Date:
Jan 2006
Posts:
403
Plugin Contributions:
0

Removing Product name from Breadcrumb

Hi , As my site has long product names , it tends to wrap on the breadcrumb bar , when viewing in smaller screen res , is there a way to only have categories in the breadcrumb bar ?

THanks

Various Zen cart sites !

28 Sep 2006, 6:12 AM
#2
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: Removing Product name from Breadcrumb

May be the topic below has the info you want.
Remove product from Bread Crumb Trail

.

A New Starter again

28 Sep 2006, 11:30 AM
#3
crazycucumber avatar

crazycucumber

Zen Follower

Join Date:
Jan 2006
Posts:
403
Plugin Contributions:
0

Re: Removing Product name from Breadcrumb

Thanks for that : For info :

Re: Remove product from Bread Crumb Trail
Magicpants is looking for this:

In init_add_crumbs.php, comment out the following code:

Quote:
/**

  • add the products model to the breadcrumb trail
    */
    if (isset($_GET['products_id'])) {
    $productname_query = "select products_name
    from " . TABLE_PRODUCTS_DESCRIPTION . "
    where products_id = '" . (int)$_GET['products_id'] . "'
    and language_id = '" . $_SESSION['languages_id'] . "'";

$productname = $db->Execute($productname_query);

if ($productname->RecordCount() > 0) {
$breadcrumb->add($productname->fields['products_name'], zen_href_link(zen_get_info_page($_GET['products_id']), 'cPath=' . $cPath . '&products_id=' . $_GET['products_id']));
}
}

Various Zen cart sites !