EC-Cubeでカテゴリ0の「全商品」の名前を変更
/data/class/pages/products/LC_Page_Products_List.php
// タイトル編集
$tpl_subtitle = “”;
$tpl_search_mode = false;if (!isset($_GET['mode'])) $_GET['mode'] = “”;
if (!isset($_POST['mode'])) $_POST['mode'] = “”;
if (!isset($_GET['name'])) $_GET['name'] = “”;
if (!isset($_REQUEST['orderby'])) $_REQUEST['orderby'] = “”;
if (empty($arrCategory_id)) $arrCategory_id = array(”0″);if($_GET['mode'] == ’search’){
$tpl_subtitle = “検索結果”;
$tpl_search_mode = true;
}elseif (empty($arrCategory_id)) {
$tpl_subtitle = “全商品”;
}else{
$arrFirstCat = $objDb->sfGetFirstCat($arrCategory_id[0]);
$tpl_subtitle = $arrFirstCat['name'];
}
/data/class_extends/page_extends/products/LC_Page_Products_List_Ex.php
// タイトル編集
$tpl_subtitle = “”;
if ($_GET['mode'] == ’search’) {
$tpl_subtitle = “検索結果”;
} elseif (empty($arrCategory_id[0])) {
$tpl_subtitle = “全商品”;
} else {
$arrFirstCat = $objDb->sfGetFirstCat($arrCategory_id[0]);
$tpl_subtitle = $arrFirstCat['name'];
}
$tpl_subtitle = “全商品”;の部分を任意の文字に書き換える。
Tags: Ec-Cube
