This is a discussion on Replace "Product Model" with "Product Name" in Breadcrumb Trail within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Just a Simple way of replacing "Product Model" with "Product Name" at the end of your Breadcrumb Trail. ------------------------------------------------------ To ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| Just a Simple way of replacing "Product Model" with "Product Name" at the end of your Breadcrumb Trail. ------------------------------------------------------ To install: 1. Backup! your copy of /your_catalog_path/includes/application_top.php 2. Find in "application_top.php" this line (Around line 493) $breadcrumb->add($model['products_model'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $HTTP_GET_VARS['products_id'])); 3. Replace with: // $breadcrumb->add($model['products_model'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $HTTP_GET_VARS['products_id'])); 4. Find the last "}" (line 495) and isert at line 496: // add the products name to the breadcrumb trail if (isset($HTTP_GET_VARS['products_id'])) { $name_query = tep_db_query("select products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); if (tep_db_num_rows($name_query)) { $name = tep_db_fetch_array($name_query); $breadcrumb->add($name['products_name'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $HTTP_GET_VARS['products_id'])); } } ------------------------------------------------------ Thats it, Now the "Product Name" is at the end in your breadcrumb trail. -Ivaylo ;) More...
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Rplace "Product Model" with "Product Name" in Breadcrumb Trail | michael_s | New osCommerce Contributions | 0 | 03-12-2008 08:21 PM |
| Remove "Top" From Breadcrumb Trail | michael_s | New osCommerce Contributions | 0 | 07-16-2007 09:00 AM |
| "Create Order" having errors (downloadable product/accept cc #) | gheffron | osCMax v2 Installation issues | 3 | 05-14-2007 08:59 PM |
| Remove "QTPRO" for "Option Type Feature" | adam71o | osCMax v2 Customization/Mods | 3 | 01-10-2007 10:32 AM |
| "Price" and "Add to Cart" button inside | midwestwebsites | osCMax v2 Customization/Mods | 3 | 11-14-2005 05:13 AM |