PDA

View Full Version : Replace "Product Model" with "Product Name" in Breadcrumb Trail



michael_s
03-14-2008, 07:30 AM
I realy like your contrib. It is not only a good idea, but also good because of SEO.
After modification of my application_top.php file, I have realized that the contrib does not select the right language of product name.
If I have more than one languages installed it always selects the first one (english).

I have found an easy solution for this, only the sql query should be changed to:
$name_query = tep_db_query("select products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and language_id = '" . (int)$languages_id . "'");

So now it works perfectly.

More... (http://addons.oscommerce.com/info/5807)