/includes/init_includes/overrides/init_add_crumbs.php
(make a copy from init_includes if you don't have one in "overrides" already)
around line 54 you have this section:```
/**
- add the products model to the breadcrumb trail
*/
if (isset($_GET['products_id'])) {
$productname_query = "select products_name
from " . TABLE_PRODUCTS_DESCRIPTION . "
where products_id = '" . (int)$_GET['products_id'] . "'
and language_id = '" . $_SESSION['languages_id'] . "'";
$productname = $db->Execute($productname_query);
if ($productname->RecordCount() > 0) {
[B]//[/B] $breadcrumb->add($productname->fields['products_name'], zen_href_link(zen_get_info_page($_GET['products_id']), 'cPath=' . $cPath . '&products_id=' . $_GET['products_id']));
}
}
either add the slashes near the end as shown above, or to switch to model number, change 4 sections as shown below:
/**
- add the products model to the breadcrumb trail
*/
if (isset($_GET['products_id'])) {
$productname_query = "select [B]products_model[/B]
from " . [B]TABLE_PRODUCTS . "[/B]
where products_id = '" . (int)$_GET['products_id'] [B]. "'";[/B]
// and language_id = '" . $_SESSION['languages_id'] . "'";
$productname = $db->Execute($productname_query);
if ($productname->RecordCount() > 0) {
$breadcrumb->add($productname->fields['[B]products_model[/B]'], zen_href_link(zen_get_info_page($_GET['products_id']), 'cPath=' . $cPath . '&products_id=' . $_GET['products_id']));
}
}
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.