ecshop如何实现把商品属性变成编辑器分享.pdfVIP

  • 1
  • 0
  • 约5.12千字
  • 约 4页
  • 2021-12-10 发布于福建
  • 举报

ecshop如何实现把商品属性变成编辑器分享.pdf

如何实现把商品属性变成编辑器 1、 开发思路 第一找到后台那个编辑模板,把他改成一个编辑框,然后到数据库给它一个能存储的字段, 然后再到前台把他显示出来 过程: 找后台商品属性的编辑模板: admin\templates\goods_info.html 找到: !-- 属性与规格 -- {if $goods_type_list} table width=90% id=properties-table style=display:none align=center tr td id=tbody-goodsAttr colspan=2 style=padding:0 {$FCKeditor} /td /tr /table {/if} !-- 商品相册 -- 改: 把其中 {$FCKeditor} 改成我们自定义的表段的名字; {$shuxing} OK 完成第一步: 接下来: 找到: admin\ goods.php 代码: /* 创建 html editor */ create_html_editor(goods_desc, $goods[goods_desc]); 在他后面再写一句 create_html_editor(goods_shuxing,$goods[goods_shuxing],shuxing); 继续找代码: /* 入库 */ if ($is_insert) { if ($code == ) { $sql = INSERT INTO . $ecs-table(goods) . (goods_name, 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_on_sale, is_alone_sale, goods_desc, 在最后 goods_desc,的结尾加一个: goods_shuxing , 向下看 4 行: $warn_number, $_POST[integral], $give_integral, $is_best, $is_new, $is_hot, $is_on_sale, $is_alone_sale, . $_POST[goods_desc], 在$_POST[goods_desc], 后面加一句 $_POST[goods_shuxing], 继续 : 查找: $sql = INSERT INTO . $ecs-table(goods) . (goods_name, goods_name_style, goods_sn, . cat_id, brand_id, shop_price,

文档评论(0)

1亿VIP精品文档

相关文档