X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Remove Product Name From Breadcrumb? (https://forum.x-cart.com/showthread.php?t=56517)

Freakmode 11-11-2010 06:58 AM

Remove Product Name From Breadcrumb?
 
Anyone know how to remove the product name from the breadcrumb trail?

I just need it to go as far as subcategory as my product names are a little long and clutter the layout.

Thanks

Aqua 11-11-2010 02:40 PM

Re: Remove Product Name From Breadcrumb?
 
Are you referring to speed bar management? If so, the link can be found in the Administration section titled "Speed bar."

PhilJ 11-11-2010 02:53 PM

Re: Remove Product Name From Breadcrumb?
 
Easily done...

product.php

Change...

Code:

$location[] = array($product_info["product"],"");

To...

Code:

# $location[] = array($product_info["product"],"");

ie. just comment out that line.

Freakmode 11-12-2010 01:33 AM

Re: Remove Product Name From Breadcrumb?
 
Thanks Phil but that does not seem to work in 4.4 - comes back with an error.

PhilJ 11-12-2010 02:21 AM

Re: Remove Product Name From Breadcrumb?
 
Your signature says v4.3.1, so that's what I posted.

PhilJ 11-12-2010 02:40 AM

Re: Remove Product Name From Breadcrumb?
 
Comment out this chunk of code...
Code:

if (!empty($product_info)) {
    $location[] = array(
        $product_info['product'],
        '',
    );
}


Freakmode 11-12-2010 02:41 AM

Re: Remove Product Name From Breadcrumb?
 
Yes sorry my mistake - live on 4.3 but in dev on 4.4 - hence why posting in the 4.4 template section.

That worked great - thanks Phil


All times are GMT -8. The time now is 08:43 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.