Hide Catalog Number
To keep the catalog number from showing on the catalog, you can use the modification below.
Version 2.9-2.92:
-
Open the products_variables.php page in the /enc/ folder and comment out the area that displays the catalog number by changing:
// CREATE CATALOG NUMBER if (!function_exists("var_catnum")) { function var_catnum($varcatnum) { $varunitinfo = ""; if ($varcatnum) $varunitinfo = " #" .$varcatnum; return $varunitinfo; } }to:
// CREATE CATALOG NUMBER if (!function_exists("var_catnum")) { function var_catnum($varcatnum) { $varunitinfo = ""; //if ($varcatnum) //$varunitinfo = " #" .$varcatnum; return $varunitinfo; } } -
To also remove the catalog numbers from the keyword searches, open the sitesearch.php page in the /enc/ folder and comment out the area that displays the catalog number by changing the following:
echo "
- " . (!empty($keyrow['Catalog']) ? "#" .stripslashes($keyrow['Catalog']) .". " : "") . stripslashes($keyrow['Item']) ." ";
- " . stripslashes($keyrow['Item']) ." ";
-
Open the title.php file in the /enc/ folder, and change:
echo "" .$catalog_number .str_replace('&', '&', $pagetitle) ."";to:
echo "" .str_replace('&', '&', $pagetitle) ."";
to:
echo "
Version 2.84:
-
Open the products_variables.php page in the /enc/ folder and comment out the area that displays the catalog number by changing:
// CREATE CATALOG NUMBER if (!function_exists("var_catnum")) { function var_catnum($varcatnum) { $varunitinfo = ""; if ($varcatnum) $varunitinfo = " #" .$varcatnum; return $varunitinfo; } }to:
// CREATE CATALOG NUMBER if (!function_exists("var_catnum")) { function var_catnum($varcatnum) { $varunitinfo = ""; //if ($varcatnum) //$varunitinfo = " #" .$varcatnum; return $varunitinfo; } } -
To also remove the catalog numbers from the keyword searches, open the sitesearch.php page in the /enc/ folder and comment out the area that displays the catalog number by changing the following:
echo "
- " . (!empty($keyrow[1]) ? "#" .stripslashes($keyrow[1]) .". " : "") . stripslashes($keyrow[2]) ." ";
- " . stripslashes($keyrow[2]) ." ";
-
Open the title.php file in the /enc/ folder, and change:
echo "" .$catalog_number .str_replace('&', '&', $pagetitle) ."";to:
echo "" .str_replace('&', '&', $pagetitle) ."";
to:
echo "
Version 2.8-2.83:
-
Open the products_variables.php page in the /enc/ folder and comment out the area that displays the catalog number by changing:
// CREATE CATALOG NUMBER if (!function_exists("var_catnum")) { function var_catnum($varcatnum) { $varunitinfo = ""; if ($varcatnum) $varunitinfo = " #" .$varcatnum; return $varunitinfo; } }to:
// CREATE CATALOG NUMBER if (!function_exists("var_catnum")) { function var_catnum($varcatnum) { $varunitinfo = ""; //if ($varcatnum) //$varunitinfo = " #" .$varcatnum; return $varunitinfo; } } -
To also remove the catalog numbers from the keyword searches, open the sitesearch.php page in the /enc/ folder and comment out the area that displays the catalog number by changing the following:
if ($keyrow[1]) $itemlist .= "#$keyrow[1]. ";
to:
// if ($keyrow[1]) // $itemlist .= "#$keyrow[1]. ";
Version 2.7x or higher:
-
Open the products_variables.php page in the /enc/ folder and comment out the area that displays the catalog number by changing:
if (!empty($unitinfo)) $display_item = $unitinfo ." ".$stripitem; else
to:
// if (!empty($unitinfo)) // $display_item = $unitinfo ." ".$stripitem; // else
-
To also remove the catalog numbers from the keyword searches, open the sitesearch.php page in the /enc/ folder and comment out the area that displays the catalog number by changing:
if ($keyrow[1]) $itemlist .= "#$keyrow[1]. ";
to:
// if ($keyrow[1]) // $itemlist .= "#$keyrow[1]. ";
Version 2.5x:
Open the following pages in the "enc" directory and remove the code indicated:
-
itemlist.php - remove:
if ($listrow[1]) echo "#" .stripslashes($listrow[1]) .". ";
-
products_detail.php - remove:
if ($searchrow[1]) $unitinfo = " #$searchrow[1]"; else
and remove:
if ($searchrow[1]) echo "#$searchrow[1]. ";
-
products_list.php - remove:
if ($searchrow[0]) $stripitem = "#$searchrow[0]. " .$stripitem;
-
products_single.php - remove:
if ($searchrow[1]) $unitinfo = " #$searchrow[1]"; else
and remove:
if ($searchrow[1]) echo "#$searchrow[1]. ";
-
registry_showlist.php - remove:
if ($showrow[Catalog]) echo "#$showrow[Catalog]. ";
and remove:
if ($showrow[Catalog]) $unitinfo = " #$showrow[Catalog]"; else
-
sitesearch.php - remove:
if ($keyrow[1]) $itemlist .= "#$keyrow[1]. ";
-
products_multisingle.php - remove:
if ($searchrow[1]) $unitinfo = " #$searchrow[1]"; else
and remove:
if ($searchrow[1]) echo "#$searchrow[1]. ";