看到ecshop有許多網(wǎng)友強(qiáng)烈渴望得到標(biāo)簽,而ecshop管理層,對此貼置之不理,難道他們就靠這個(gè)吃飯…對此不在加以評論了。現(xiàn)在從今天開始,不定期整理ECSHOP的標(biāo)簽,由于水平有限,不當(dāng)之處,請高手指點(diǎn)。
現(xiàn)在,開始我們的第一課:
先從index.php主頁開始
頁面關(guān)鍵字 {$keywords }
頁面標(biāo)題 {$page_title}
產(chǎn)品分類
父分類列表 {foreach from=$categories item=cat }
父分類超鏈接 <a href=”{$cat.url}”>{$cat.name|escape:html}</a>
相對應(yīng)子分類 {foreach from=$cat.children item=child}
子分類超鏈接 <a href=”{$child.url}”>{$child.name|escape:html}</a>
促銷產(chǎn)品 {if $promotion_info} 檢驗(yàn)是否存在促銷產(chǎn)品,不存在就不顯示相關(guān)信息
促銷產(chǎn)品列表 {foreach from=$promotion_info item=item key=key}
里面還有很多標(biāo)簽,沒弄明白,以后在添加,修改
訂單查詢 {if empty($order_query)} 同上看下就知道了
訂單用戶ID {if $order_query.user_id}
訂單數(shù)量 {$lang.order_number}
訂單編號 {$order_query.order_sn}
里面還有很多標(biāo)簽,沒弄明白,以后在添加,修改
發(fā)貨查詢 {if $invoice_list} 當(dāng)有完成的訂單測顯示
發(fā)貨列表 {foreach from=$invoice_list item=invoice}
訂單號名稱 {$lang.order_number}
訂單號 {$invoice.order_sn}
發(fā)貨單名稱 {$lang.consignment}
發(fā)貨單號 {$invoice.invoice_no}
銷售排行 {if $top_goods} 看看就知道
銷售列表 {foreach name=top_goods from=$top_goods item=goods}
產(chǎn)品短名稱 {$goods.short_name}
看例子:
<!– {foreach name=top_goods from=$top_goods item=goods}–>
<li class=”top10-li-{$smarty.foreach.top_goods.iteration}”> <a href=”{$goods.url}” title=”{$goods.name|escape:html}”>{$goods.short_name}</a></li>
<!–{/foreach}–>
精品推薦 {if $best_goods} 看看就知道
精品推薦列表 {foreach from=$best_goods item=goods}
市場價(jià)名稱 {$lang.market_price}
市場價(jià)價(jià)格 {$goods.market_price}
促銷價(jià)名稱 {$lang.promote_price}
促銷價(jià)價(jià)格 {$goods.promote_price}
商店價(jià)名稱 {$lang.shop_price}
商店價(jià)價(jià)格 {$goods.shop_price}
大家看到了嗎??{$lang.xxxx_xxxx}以lang開頭的為相對應(yīng)的名稱
{$goods.xxxx_xxxx}以goods開頭的為價(jià)格
寫的好累啊,今天先介紹到這,明天將介紹
熱賣商品 {if $hot_goods}
新貨上市 {if $new_goods}
團(tuán)購商品 {if $group_buy_goods}
拍賣商品 {if $auction_list}
促銷商品 {if $promotion_goods}
最新公告 {$shop_notice}
最新文章 {foreach name=new_articles from=$new_articles item=article}
品牌專區(qū) {if $brand_list}
大家看看是否可以理解,如果可以理解將跳過此處。