ecshop如何新增設定模板新增頁面

2021-06-11 02:42:21 字數 2079 閱讀 5271

第一步:

把根

目錄下 category.php 這個

檔案複製多乙個檔案,檔名自己起吧,我就以category2.php為例

同樣的方法開啟themes\default資料夾,category.dwt這個檔案也複製多乙個,改為category2.dwt

第二步

開啟這個檔案category2.php 打到以下行 大約是74行吧

if (!$smarty->is_cached('category.dwt', $cache_id)) 改為if (!$smarty->is_cached('category2.dwt', $cache_id))

大約是397行

$smarty->display('category.dwt', $cache_id);改為 $smarty->display('category2.dwt', $cache_id);

儲存第三步

開啟admin\includes\lib_template.php這個檔案

在「/* 可以

設定內容的

模板 *」 下面增加多一行

'category2.dwt',

在"/* 每個模板允許設定的庫專案 " 中

複製「

'category' => array(

'/library/ur_here.lbi' => 0,

'/library/search_form.lbi' => 0,

'/library/member.lbi' => 0,

'/library/category_tree.lbi' => 0,

'/library/top10.lbi' => 0,

'/library/history.lbi' => 0,

'/library/recommend_best.lbi' => 3,

'/library/recommend_hot.lbi' => 3,

'/library/goods_list.lbi' => 0,

'/library/pages.lbi' => 0,

'/library/recommend_promotion.lbi' => 3,

'/library/brands.lbi' => 3,

'/library/promotion_info.lbi' => 0,

'/library/cart.lbi' => 0,

'/library/vote_list.lbi' => 0

),複製** 」

並把'category' => array( 

這個改為 

'category2' => array( 

然後在"),

'compare' => array("

這兩行之間貼上

再開啟:languages\zh_cn\admin\template.php檔案

在「/* 每乙個模板檔案對應的語言 *」後面增加多一行$_lang['template_files']['category2'] = '新建商品首頁'; (這個檔名可以自定義)

訪問後台,設定模板》請選擇乙個模板:中看到了你的新增頁面吧!呵呵,

第四步

開啟「themes\default\libs.xml」編輯

複製73行至83行

cart

category_tree

filter_attr

price_grade

history

recommend_best

goods_list

pages

複製** 改為

cart

category_tree

filter_attr

price_grade

history

recommend_best

goods_list

pages

複製**

貼上在83行與84行之行.

到此全部ok。開啟後台模板就可以設定了,

新建更多的頻道首頁方法,重制剛才的步驟ok。

ecshop 後台模板設定 》設定模板

ecshop後台 設定模板 出現問題 問題1 不能出現特殊符號 錯誤 正確 問題2 warning file put contents themes liangxin index.dwt failed to open stream permission denied in ecmoban www a...

ecshop如何新增配送方式?

步驟1.開啟includes modules shipping資料夾,把sto express.php複製多乙份,重名為tt express.php 步驟2.開啟tt express.php,ctrl f調出 查詢替換框 將所有 sto express.php 替換成 tt express.php ...

ecshop管理新增加的模板庫檔案

ecshop開發過程中,總會遇到這樣的事情,ecshop如何管理新增加的模板庫檔案呢。這個問題一直讓人頭疼.下面我們將講述新增加的模板檔案neworderlist.lbi 1 在themes default library目錄中,我們把neworderlist.lbi檔案放進去.2 在themes ...