Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Remove Product Name From Breadcrumb?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-11-2010, 06:58 AM
 
Freakmode Freakmode is offline
 

X-Adept
  
Join Date: Jun 2003
Location: UK
Posts: 696
 

Default 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
__________________
X-Cart 4.7.12 (Live)
Redux Template
CDSEO
Reply With Quote
  #2  
Old 11-11-2010, 02:40 PM
 
Aqua Aqua is offline
 

Advanced Member
  
Join Date: Feb 2007
Location: Idaho, USA
Posts: 97
 

Default 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."
__________________
Aquaman
------------------------------------
X-Cart 4.7.4 Gold
Mods:Authorize.net DPM
CDSEO, xCMS, Rich Snippets, Custom Redirects
xBanners
One Page Checkout
Magic Scroll
Google Shopping export
Lumino Responsive Template
TSS Hosting
Reply With Quote
  #3  
Old 11-11-2010, 02:53 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default 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.
__________________
xcartmods.co.uk
Reply With Quote
  #4  
Old 11-12-2010, 01:33 AM
 
Freakmode Freakmode is offline
 

X-Adept
  
Join Date: Jun 2003
Location: UK
Posts: 696
 

Default Re: Remove Product Name From Breadcrumb?

Thanks Phil but that does not seem to work in 4.4 - comes back with an error.
__________________
X-Cart 4.7.12 (Live)
Redux Template
CDSEO
Reply With Quote
  #5  
Old 11-12-2010, 02:21 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: Remove Product Name From Breadcrumb?

Your signature says v4.3.1, so that's what I posted.
__________________
xcartmods.co.uk
Reply With Quote
  #6  
Old 11-12-2010, 02:40 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: Remove Product Name From Breadcrumb?

Comment out this chunk of code...
Code:
if (!empty($product_info)) { $location[] = array( $product_info['product'], '', ); }
__________________
xcartmods.co.uk
Reply With Quote

The following user thanks PhilJ for this useful post:
am2003 (03-26-2011)
  #7  
Old 11-12-2010, 02:41 AM
 
Freakmode Freakmode is offline
 

X-Adept
  
Join Date: Jun 2003
Location: UK
Posts: 696
 

Default 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
__________________
X-Cart 4.7.12 (Live)
Redux Template
CDSEO
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020