久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

ecshop增加多個產品詳細描述編輯器的方法

在做商產品詳情的時候,經常會有選項卡類似的幾個產品說明,如:商品詳情,商品規格,參數列表,售后服務等,那么ecshop如何增加多個產品詳細描述的編輯器呢
在做商產品詳情的時候,經常會有選項卡類似的幾個產品說明,如:商品詳情,商品規格,參數列表,售后服務等。
Ecshop后臺里面默認只有一個編輯框(器),那么我們還得自己添加幾個,以下是ecshop如何增加產品描述編輯器個數的步驟:

1)在數據庫的表esc_goods里增加二個text的字段用來存儲新增的二個編輯框的內容,

如:goods_desc2,goods_desc3(可以用phpmyadmin)

2)修改生成編輯器的函數 找到 /admin/includes/lib_main.php 文件


function create_html_editor($input_name, $input_value = '')
修改為
function create_html_editor($input_name, $input_value = '',$fckid=0)
繼續向下找到
$smarty->assign('FCKeditor', $FCKeditor);
將它修改為
if ($fckid)
{
$smarty->assign('FCKeditor'.$fckid, $FCKeditor);
}
else
{
$smarty->assign('FCKeditor', $FCKeditor);
}
3)接下來要修改后臺商品處理頁 /admin/goods.php 文件

找到 create_html_editor('goods_desc', $goods['goods_desc']);
在它下面另添加2行
create_html_editor('goods_desc2', $goods['goods_desc2'],2);
create_html_editor('goods_desc3', $goods['goods_desc3'],3);

4)最后修改一下對應的后臺顯示文件 /admin/templates/goods_info.htm

找到下面這些代碼
<table width="90%" id="detail-table" style="display:none">
<tr>
<td>{$FCKeditor}</td>
</tr>
</table>
在下面復制粘貼2個并把(包括原來一個)這三個表格代碼修改為
<table width="90%" id="detail-table" style="display:none">
<tr>
<td width="80" align="right">商品詳情:</td>
<td>{$FCKeditor}</td>
</tr>
</table>
<table width="90%" id="desc2-table" style="display:none">
<tr>
<td width="80" align="right">售后服務:</td>
<td>{$FCKeditor2}</td>
</tr>
</table>
<table width="90%" id="desc3-table" style="display:none">
<tr>
<td width="80" align="right">買家必讀:</td>
<td>{$FCKeditor3}</td>
</tr>

</table>
修改頂部的導航:
找到<span class="tab-back" id="detail-tab">{$lang.tab_detail}</span>
后面加入
<span class="tab-back" id="desc2-tab">desc2</span>
<span class="tab-back" id="desc3-tab">desc3</span>

5)最后修改內容存儲進數據庫的文件,打開 /admin/goods.php

1> 找到如下代碼:
$sql = "INSERT INTO " . $ecs->table('goods') . " (goods_name,goods_model, goods_name_style, goods_sn, " .
"cat_id, brand_id, shop_price, market_price, is_promote, promote_price, " .
"promote_start_date, promote_end_date, goods_img, goods_thumb, original_img, keywords, goods_brief, " .
"seller_note, goods_weight, goods_number, warn_number, integral, give_integral, is_best, is_new, is_hot, " .
"is_home, is_on_sale, is_alone_sale, is_shipping, goods_desc
在后面加上 ,goods_desc2 ,goods_desc3 即如下代碼 $sql = "INSERT INTO " . $ecs->table('goods') . " (goods_name,goods_model, goods_name_style, goods_sn, " .
"cat_id, brand_id, shop_price, market_price, is_promote, promote_price, " .
"promote_start_date, promote_end_date, goods_img, goods_thumb, original_img, keywords, goods_brief, " .
"seller_note, goods_weight, goods_number, warn_number, integral, give_integral, is_best, is_new, is_hot, " .
"is_home, is_on_sale, is_alone_sale, is_shipping, goods_desc,goods_desc2 ,goods_desc3
在下面幾行,同理找到
"VALUES ('$_POST[goods_name]','$_POST[goods_model]', '$goods_name_style', '$goods_sn', '$catgory_id', " .
"'$brand_id', '$shop_price', '$market_price', '$is_promote','$promote_price', ".
"'$promote_start_date', '$promote_end_date', '$goods_img', '$goods_thumb', '$original_img', ".
"'$_POST[keywords]', '$_POST[goods_brief]', '$_POST[seller_note]', '$goods_weight', '$goods_number',".
" '$warn_number', '$_POST[integral]', '$give_integral', '$is_best', '$is_new', '$is_hot', '$is_home', '$is_on_sale', '$is_alone_sale', $is_shipping, ".
" '$_POST[goods_desc]', '" . gmtime() . "', '". gmtime() ."', '$goods_type', '$rank_integral', '$suppliers_id')"
改為: "VALUES ('$_POST[goods_name]','$_POST[goods_model]', '$goods_name_style', '$goods_sn', '$catgory_id', " .
"'$brand_id', '$shop_price', '$market_price', '$is_promote','$promote_price', ".
"'$promote_start_date', '$promote_end_date', '$goods_img', '$goods_thumb', '$original_img', ".
"'$_POST[keywords]', '$_POST[goods_brief]', '$_POST[seller_note]', '$goods_weight', '$goods_number',".
" '$warn_number', '$_POST[integral]', '$give_integral', '$is_best', '$is_new', '$is_hot', '$is_home', '$is_on_sale', '$is_alone_sale', $is_shipping, ".
" '$_POST[goods_desc]', '$_POST[goods_desc2]', '$_POST[goods_desc3]', '" . gmtime() . "', '". gmtime() ."', '$goods_type', '$rank_integral', '$suppliers_id')"
同理,又下面幾行
else
{
$sql =$sql = "INSERT INTO. $ecs->table('goods')
這一段中,作上面相同修改如下: $sql = "INSERT INTO " . $ecs->table('goods') . " (goods_name,goods_model, goods_name_style, goods_sn, " .
"cat_id, brand_id, shop_price, market_price, is_promote, promote_price, " .
"promote_start_date, promote_end_date, goods_img, goods_thumb, original_img, keywords, goods_brief, " .
"seller_note, goods_weight, goods_number, warn_number, integral, give_integral, is_best, is_new, is_hot, is_home, is_real, " .
"is_on_sale, is_alone_sale, is_shipping, goods_desc, goods_desc2, goods_desc3, add_time, last_update, goods_type, extension_code, rank_integral)" .
"VALUES ('$_POST[goods_name]','$_POST[goods_model]', '$goods_name_style', '$goods_sn', '$catgory_id', " .
"'$brand_id', '$shop_price', '$market_price', '$is_promote','$promote_price', ".
"'$promote_start_date', '$promote_end_date', '$goods_img', '$goods_thumb', '$original_img', ".
"'$_POST[keywords]', '$_POST[goods_brief]', '$_POST[seller_note]', '$goods_weight', '$goods_number',".
" '$warn_number', '$_POST[integral]', '$give_integral', '$is_best', '$is_new', '$is_hot', '$is_home', 0, '$is_on_sale', '$is_alone_sale', $is_shipping, ".
" '$_POST[goods_desc]', '$_POST[goods_desc2]', '$_POST[goods_desc3]', '" . gmtime() . "', '". gmtime() ."', '$goods_type', '$code', '$rank_integral')";

2 > 再往下幾十行,找到"goods_desc = '$_POST[goods_desc]', " .在其下方再添加二行 ,改成如下 "goods_desc = '$_POST[goods_desc]', " .

"goods_desc2 = '$_POST[goods_desc2]', " .

"goods_desc3 = '$_POST[goods_desc3]', " .

【網站聲明】本站除付費源碼經過測試外,其他素材未做測試,不保證完整性,網站上部分源碼僅限學習交流,請勿用于商業用途。如損害你的權益請聯系客服QQ:2655101040 給予處理,謝謝支持。

相關文檔推薦

ECShop是一款B2C獨立網店系統,適合企業及個人快速構建個性化網上商店。這篇文章主要介紹了ecshop添加菜單及權限分配,需要的朋友可以參考下
這篇文章主要介紹了Ecshop 后臺添加新功能欄目及管理權限設置教程,需要的朋友可以參考下
這篇文章主要介紹了Ecshop實現支付時傳送商品訂單號和商品名稱的方法,涉及Ecshop模板操作及底層代碼的修改相關技巧,需要的朋友可以參考下
phpcms v9在添加欄目的時候,欄目描述為多行文本,無法滿足有圖片,以及格式的修改調整,具體的實現如下,感興趣的朋友可以參考下
ECSHOP2.7版本的底部版權對于優化與安全都不是很好,所以好多朋友都想給刪除了,下面的具體的方法,都是加密過的所有不容易簡單的搜索.需要的朋友可以參考下。
首先聲明個人觀點:不建議大家去除別人的版權,請尊重知識產權,特別是這樣好的系統。
主站蜘蛛池模板: 亚洲精品18| 免费在线观看一区二区三区 | 亚洲自拍偷拍欧美 | 中文字幕高清免费日韩视频在线 | 日本黄色一级视频 | 亚洲精品无 | 亚洲国产一区二区三区在线观看 | 久久国产精品一区二区三区 | 999久久精品 | 久久国产麻豆 | 亚洲欧美一区二区三区在线 | 色婷婷综合网站 | 99精品欧美一区二区三区综合在线 | 天堂一区二区三区 | 黄色一级免费看 | 国产aⅴ爽av久久久久久久 | 成人在线视频网站 | 亚洲一区欧美 | 国产精品一区二区三区在线 | 日韩一区二区在线视频 | 不卡一区二区三区四区 | 国产成人99久久亚洲综合精品 | 情侣av| 日韩中文字幕 | 国产欧美一区二区三区另类精品 | 国产精品伦一区二区三级视频 | 另类一区| 亚洲综合一区二区三区 | 国产目拍亚洲精品99久久精品 | 久久爱一区 | 黄色精品 | 欧美在线a | 国产精品成人一区二区三区 | 亚洲a在线视频 | 蜜桃特黄a∨片免费观看 | 欧美日韩免费在线 | 日韩久久久久久 | 久久精品一区二区三区四区 | 亚洲一区在线日韩在线深爱 | 午夜在线视频一区二区三区 | 亚洲午夜av久久乱码 |