(0)

XT:Commerce navtrail – change display of article number to article name

The standard installation of XT:Commerce 3.04 SP2.1 will show only the article number in the navtrail bar. This is quite annoying and also not very SEO optimized. Therefore here’s a small hack that will display the name of the article in the navtrail instead of the – mostly irritating and ugly article number:

Open includes/application_top.php and find this line:


$breadcrumb->add($product->getBreadcrumbModel(), xtc_href_link(FILENAME_PRODUCT_INFO, xtc_product_link($product->data['products_id'], $product->data['products_name'])));

Change it to this line:


$breadcrumb->add($product->data['products_name'], xtc_href_link(FILENAME_PRODUCT_INFO, xtc_product_link($product->data['products_id'], $product->data['products_name'])));

That’s it :) Your shop now displays the article name in the navtrail ;)

Filed under: XT Commerce — admin @ 9:48 am
 

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

copyright © 2010 artViper designstudio, all rights reserved

Latest twitter news

web | Sun Mar 14

#Maultaschen http://www.fetchers.com - handmade Maultaschen

TweetMeme | Sun Feb 28

RT @nettuts Top 20+ MySQL Best Practices - Nettuts+ http://bit.ly/6C4FqG

TweetMeme | Wed Feb 24

RT @mashable Typekit Launches its Cloud-Based Web Font Service http://bit.ly/4w68Ub

Random posts

08-11-12 | tinyMCE - submit via AJAX problem ...

TinyMCE is a great editor, but if you try to use mootools or any other javascript framework to submit your post, the pos...

1-16 | artViper officially a registered trademark ...

It's official. artViper has become a legal trademark. It took us 13 month to achive this status.......

08-09-08 | mooImageInfoSlider - slide information about ...

Want to show additional information about an image but you're no fan of flash to have some nice bottom-up slide implemen...