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


Leave a Reply