首页 > 运营 > 帮助中心 > 正文

ecshop标签模板风格教程学习一

2019-10-16 21:46:12
字体:
来源:转载
供稿:网友

 看到ecshop有许多网友强烈渴望得到标签,而ecshop管理层,对此贴置之不理,难道他们就靠这个吃饭…对此不在加以评论了。现在从今天开始,不定期整理ECSHOP的标签,由于水平有限,不当之处,请高手指点。

现在,开始我们的第一课:
先从index.php主页开始
页面关键字         {$keywords }
        
页面标题            {$page_title}
产品分类        
             父分类列表   {foreach from=$categories item=cat }
                  父分类超链接   <a href=”{$cat.url}”>{$cat.name|escape:html}</a>
             相对应子分类    {foreach from=$cat.children item=child}
                  子分类超链接 <a href=”{$child.url}”>{$child.name|escape:html}</a>
促销产品  {if $promotion_info}     检验是否存在促销产品,不存在就不显示相关信息
         促销产品列表    {foreach from=$promotion_info item=item key=key}     
         里面还有很多标签,没弄明白,以后在添加,修改
订单查询 {if empty($order_query)}      同上看下就知道了
            订单用户ID    {if $order_query.user_id}
            订单数量       {$lang.order_number}
            订单编号       {$order_query.order_sn}
      里面还有很多标签,没弄明白,以后在添加,修改
发货查询    {if $invoice_list}  当有完成的订单测显示
            发货列表         {foreach from=$invoice_list item=invoice} 
            订单号名称         {$lang.order_number}
            订单号               {$invoice.order_sn}
            发货单名称       {$lang.consignment}
            发货单号         {$invoice.invoice_no}
销售排行      {if $top_goods}      看看就知道
              销售列表       {foreach name=top_goods from=$top_goods item=goods}
              产品短名称     {$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}
              市场价名称        {$lang.market_price}
              市场价价格         {$goods.market_price}
              促销价名称       {$lang.promote_price}
              促销价价格       {$goods.promote_price}
              商店价名称        {$lang.shop_price}
              商店价价格       {$goods.shop_price}
大家看到了吗??{$lang.xxxx_xxxx}以lang开头的为相对应的名称
                           {$goods.xxxx_xxxx}以goods开头的为价格
写的好累啊,今天先介绍到这,明天将介绍
热卖商品            {if $hot_goods}
新货上市           {if $new_goods}
团购商品             {if $group_buy_goods}        
拍卖商品             {if $auction_list}
促销商品              {if $promotion_goods}
最新公告             {$shop_notice}
最新文章              {foreach name=new_articles from=$new_articles item=article}
品牌专区              {if $brand_list}
大家看看是否可以理解,如果可以理解将跳过此处。
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表