ECSHOP模板开发教程:(二)ECSHOP标签简易说明

(二)ecshop标签简易说明recommend_promotion.lbi 库文件 促销商品promotion_info.lbi 库文件 促销信息cart.lbi 库文件 购物车flow.dwt 模板文件 购物车和购物流程页activity.dwt 模板文件 活动列表页货到付款 打开运费到付的插件includes/modules/shipping/fpd.php42行/* 配送方式是否支持货到付款 */$modules[$i]['cod']= true;今日特价<!– #BeginLibraryItem "/library/recommend_promotion.lbi" –><!– #EndLibraryItem –><!–{foreach from=$promotion_goods item=goods name="promotion_foreach"}–>{if $smarty.foreach.promotion_foreach.index <= 5}<a href="{$goods.url}"><img src="{$goods.thumb}" border="0" alt="{$goods.name|escape:html}"/> </a><br /><p><a href="{$goods.url}" title="{$goods.name|escape:html}">{$goods.short_name|escape:html}</a></p>{$lang.promote_price}<font class="f1">{$goods.promote_price}</font>{/if}<!–{/foreach}–>history.lbi 库文件 商品浏览历史myship.lbi 库文件 配送方式批发方案页 首先进入 ECShop 的后台管理中心 -> 促销管理 -> 批发管理,进入批发管理页面wholesale_list.dwt 模板文件 批发方案页热卖商品 <!– #BeginLibraryItem "/library/recommend_hot.lbi" –><p>热卖商品</p><!–{foreach from=$hot_goods item=goods}–><div class="goodsItem"><span class="hot"></span><a href="{$goods.url}"><img src="{$goods.thumb}" alt="{$goods.name|escape:html}" class="goodsimg" /></a><br /><p><a href="{$goods.url}" title="{$goods.name|escape:html}">{$goods.short_style_name}</a></p><font class="f1"><!– {if $goods.promote_price neq ""} –>{$goods.promote_price}<!– {else}–>{$goods.shop_price}<!–{/if}–></font></div><!–{/foreach}–>compare.dwt 模板文件 商品比较页商品简单描述 <!– {if $goods.goods_brief} –>{$lang.goods_brief}{$goods.goods_brief}<!– {/if} –>category.dwt商品列表页brand.dwt 模板文件 商品品牌页商品数量控制 修改 lib_goods.php 中 get_recommend_goods 函数, $num = get_library_number($data);直接为$num赋值, 就跳过了模板对推荐数量的调用了如果要自定义一个数量,在get_recommend_goods函数后多加一个可选参数,$rec_number=0代码改为if($rec_number==0)$num = get_library_number($data);else$num = $rec_number;search.dwt 模板文件 商品搜索页goods.dwt 模板文件 商品详情页<!–{foreach from=$goods_list item=goods}–><!– {if $goods.goods_id} –><div class="goodsItem"><a href="{$goods.url}"><img src="{$goods.goods_thumb}" alt="{$goods.goods_name}" class="goodsimg" /></a><br /><p><a href="{$goods.url}" title="{$goods.name|escape:html}">{$goods.goods_name}</a></p><!– {if $show_marketprice} –>{$lang.market_prices}<font class="market_s">{$goods.market_price}</font><br /><!– {/if} –><!–{if $goods.promote_price neq "" } –>{$lang.promote_price}<font class="shop_s">{$goods.promote_price}</font><br /><!–{else}–>{$lang.shop_prices}<font class="shop_s">{$goods.shop_price}</font><br /><!–{/if}–><a href="javascript:collect({$goods.goods_id});" class="f6">{$lang.btn_collect}</a> |<a href="javascript:addToCart({$goods.goods_id})" class="f6">{$lang.btn_buy}</a> |<a href="javascript:;" id="compareLink"quotes"}','{$goods.type}')" class="f6">{$lang.compare}</a></div><!–{/if}–><!–{/foreach}–>网站公告{$shop_notice}article_cat.dwt模板文件 文章列表页article_pro.dwt 模板文件 文章内容页(如免责声明等)article.dwt 模板文件 文章内容页myship.dwt 模板文件 我的配送页message.dwt 模板文件 信息提示页user_passport.dwt用户安全页(包含:会员登录,会员注册,找回密码。)会员登录<form name="formLogin" action="user.php" method="post"><table width="100%" border="0" align="left" cellpadding="3" cellspacing="5"><tr><td width="15%" align="right">{$lang.label_username}</td><td width="85%"><input name="username" type="text" size="25" class="inputBg" /></td></tr><tr><td align="right">{$lang.label_password}</td><td><input name="password" type="password" size="15"class="inputBg"/><a href="user.php?act=get_password" class="f3">{$lang.get_password}</a></td></tr><!– 判断是否启用验证码{if $enabled_captcha} –><tr><td align="right">{$lang.comment_captcha}</td><td><input type="text" size="8" name="captcha" class="inputBg" /><img src="captcha.php?is_login=1&{$rand}" alt="captcha" style="vertical-align: middle;cursor: pointer;" /> </td></tr><!–{/if}–><tr><td> </td><td align="left"><input type="hidden" name="act" value="act_login" /><input type="hidden" name="back_act" value="{$back_act}" /><input type="submit" name="submit" value="" class="us_Submit" /></td></tr></table></form>user_transaction.dwt模板文件 用户中心页(包含:个人资料,我的红包,添加红包,我的订单,订单详情,合并订单,订单状态,商品列表,费用总计,收货人信息,支付方式,其他信息,会员余额。)站内快讯<!– #BeginLibraryItem "/library/new_articles.lbi" –><!– #EndLibraryItem –>指定分类下的子分类方法 <?php $this->assign('categories256',get_categories_tree(256));?><!–{foreach from=$categories256 item=cat}–><A href="{$cat.url}">{$cat.name|escape:html}</A><br/><!–{/foreach}–>把上面代码复制到你的模板中就可以实现,其中上面三个“256”要改成你指定的分类id。简单的就是这样,要正式应用还得结合实际对模板美化一下goods_attrlinked.lbi 库文件 属性关联的商品<!– #BeginLibraryItem "/library/goods_related.lbi" –><!– {if $related_goods} –><div class="box"><div class="box_1"><h3><span>{$lang.releate_goods}</span></h3><div class="boxCenterList clearfix"><!–{foreach from=$related_goods item=goods}–><ul class="clearfix"><li class="goodsimg"><a href="{$goods.url}"><img src="{$goods.goods_thumb}" alt="{$goods.goods_name}" class="B_blue" /></a></li><li><a href="{$goods.url}" title="{$goods.goods_name}">{$goods.short_name}</a><br /><!– {if $goods.promote_price neq 0} –>{$lang.promote_price}<font class="f1">{$goods.formated_promote_price}</font><!– {else} –>{$lang.shop_price}<font class="f1">{$goods.shop_price}</font><!– {/if} –></li></ul><!–{/foreach}–></div></div></div><div class="blank5"></div><!– {/if} –><!– #EndLibraryItem –>order_query.lbi 库文件 前台订单状况查询vote_list.lbi 库文件 在线调查auction_list.dwt 模板文件 拍卖商品页用户登录框随意用<!–$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$用户登录$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ –><?phpif (empty($_SESSION['user_id'])){?><form name="formLogin" action="user.php" method="post"><DD><div><input name="username" type="text" size="13" class="textType" /></div><div><input name="password" type="password" size="13"class="textType"/></div><DD><SPAN class=btn_findid><!–会员登录–><input type="hidden" name="act" value="act_login" /><input type="hidden" name="back_act" value="{$back_act}" /><input type="submit" name="submit" value="" class="us_Submitt"/></SPAN></form><?php}else{?><div style="line-height:25px;"><font style="position:relative; top:10px;">{$lang.hello},<font class="f4_b">{$username}</font><br>{$lang.welcome_return}!<a href="user.php?act=logout">{$lang.user_logout}</a></font></div><div class="blank5"></div><?php}?><!–$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$会员登录END$$$$$$$$$$$$$$$$$$$$$$$$$ –>文章分类<!– #BeginLibraryItem "/library/article_category_tree.lbi" –><!– #EndLibraryItem –>user_clips.dwt 模板文件 用户中心页 (包含:欢迎页,我的留言,我的标签,收藏商品,缺货登记列表,添加缺货登记。)幻灯片<!– #BeginLibraryItem "/library/index_ad.lbi" –><!– #EndLibraryItem –> 每个人的生命都是可以绽放美丽,只要你珍惜。

ECSHOP模板开发教程:(二)ECSHOP标签简易说明

相关文章:

你感兴趣的文章:

标签云: