【ecshop标签大全】ECSHOP模板标签ecshop标签手册

来源:网站建设 文章作者:dushilianren.cn 3428人浏览

文章摘要:【ecshop标签大全】ECSHOP模板标签ecshop标签手册;先从index.php主页开始,页面关键字 {$keywords },页面标题 {$page_title},产品分类,父分类列表 {foreach from=$categories item=cat },父分类超链接 [url==”{$cat.url}”>{$cat.name|escape:html},相对应子分类 {foreach from=$cat.children item=child},子分类超链接 [url==”{$child.url}”>{$child.name|escape:html}

【ecshop标签大全】ECSHOP模板标签ecshop标签手册


先从index.php主页开始

页面关键字 {$keywords }

页面标题 {$page_title}

产品分类

父分类列表 {foreach from=$categories item=cat }

父分类超链接 [url==”{$cat.url}”>{$cat.name|escape:html}

相对应子分类 {foreach from=$cat.children item=child}

子分类超链接 [url==”{$child.url}”>{$child.name|escape:html}

[=#ff0000]促销产品 {if $promotion_info} 检验是否存在促销产品,不存在就不显示相关信息

促销产品列表 {foreach from=$promotion_info item=item key=key}

里面还有很多标签,没弄明白,以后在添加,修改

[=#ff0000]订单查询 {if empty($order_query)} 同上看下就知道了

订单用户ID {if $order_query.user_id}

订单数量 {$lang.order_number}

订单编号 {$order_query.order_sn}

里面还有很多标签,没弄明白,以后在添加,修改

[=#ff0000]发货查询 {if $invoice_list} 当有完成的订单测显示

发货列表 {foreach from=$invoice_list item=invoice}

订单号名称 {$lang.order_number}

订单号 {$invoice.order_sn}

发货单名称 {$lang.consignment}

发货单号 {$invoice.invoice_no}

[=#ff0000]销售排行 {if $top_goods} 看看就知道

销售列表 {foreach name=top_goods from=$top_goods item=goods}

产品短名称 {$goods.short_name}

看例子:

[url==”{$goods.url}” title=”{$goods.name|escape:html}”>{$goods.short_name}

精品推荐 {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开头的为价格

{$page_title} 网站标题

{$keywords} 网站关键字标签 

{$description} 网站描述标签

{$shop_notice} 商店公告

$new_articles 新文章

{$article.short_title} 调用文章标题

{foreach from=$new_articles item=article} 循环的开始,

{/foreach} 循环的结束

item --> 具体意义和用法?

表格一行一行的循环

{foreach from=$new_articles item=article}

{$article.short_title}

{/foreach}

from=$best_goods 表示循环的内容来自$best_goods

$best_goods 精品商品推荐的标签

{$goods.short_style_name} 表示goods 这个对象的商品名称

$new_goods 新品上市

$hot_goods 热卖商品

$categories 分类的标签

$goods_list 商品标签


商品名称:{$goods.goods_style_name}

商品货号:{$goods.goods_sn}

商品品牌: {$goods.goods_brand}

商品数量:{$goods.goods_number}

单位:{$goods.measure_unit}

添加时间:{$goods.add_time}

市场价格:{$goods.market_price}

本店价格:{$goods.shop_price_formated}

注册用户价格:{$rank_price.price}

注册用户价格:{$rank_price.price}

注册用户价格:{$rank_price.price}

商品id为1的商品

http://localhost/ecshop/goods.php?id=1

邮件模板管理

商城在进行某些操作时可以向用户发送邮件提示。在本页你可以定制自己个性化的邮件的模板。邮件主题为发送邮件的标题。邮件模板中有可以替换的内容都用{$_var}方式表示。以下将解释所有变量含义。

公共变量

{$shop_name}

网店名称

{$sent_date}

邮件发送时间

发送密码模板变量

{$user_name}

注册帐号名

{$password}

网店为用户生成的新密码

订单确认模板变量

{$order.consignee}

订单收货人姓名

{$order.order_time}

订单生成时间

{$order.order_sn}

订单序号

发货通知模板变量

{$order.consignee}

收货人姓名

{$order.shipping_time}

发货时间

{$confirm_url}

确认收货的链接地址

订单取消模板变量 

{$order.consignee}

收货人姓名

{$order.order_sn}

订单序号

订单无效模板变量

{$order.consignee}

收货人姓名

{$order.order_sn}

订单序号

发送红包模板变量

{$user_name}

用户注册名

{$count}

红包个数

{$money}

红包个数金额


{$ecs_css_path}为css加载路径

{insert_scripts files=’文件’}加载ECSHOP系统JS文件

$navigator_list.top:查看购物车 | 选购中心 | 标签云| 报价单(数组)

$nav.url:url地址

$nav.name:名称

顶部导航栏:自定义导航栏设置

$searchkeywords:热门搜索(数组)$val为起值

$lang.hot_search:热门搜索字样

$lang.all_category:所有分类字样

{$category_list}:产品分类列表(只有在使用下列框作用下才有限)

{$search_keywords|escape}:搜索框 VALUE的值

search.php?act=advanced_search高级搜索地址

$lang.advanced_search:高级搜索地址

$lang.home:首页字样

$nav.opennew:是否打开新窗口,在系统设置里设置

$nav.active:应该是一种设置

**********************品牌********************************************

$brand_list(数组):品牌列表

$brand.brand_logo:品牌图标

$brand.url:某品牌产品URL

$brand.brand_name:品牌名称

$brand.goods_num:某品牌下产品种类数量

********************精品推荐***************************************************

{$lang.best_goods}:精品推荐字样

$best_goods(数组):精品推荐

$goods.thumb:产品缩略图片地址

$goods.name:产品的名称

search.php?intro=best:获得更多精品产品地址

$goods.goods_img:产品的图片

$goods.short_style_name:产品的缩短名

$lang.promote_price:促销价字样

$goods.promote_price:促销价格

$lang.shop_price:本店售价字样

$goods.shop_price:本店价格

**************************销售排行****************

{$lang.top10}:销售排行字样

$goods.short_name:产品缩短名

**************************促销商品***************************

$promotion_goods(array):促销商品

$lang.promotion_goods:促销商品字样

{$goods.short_style_name}:缩短名

../search.php?intro=promotion: more的地址

*********************热销产品****************************************

$lang.hot_goods:热销产品字样

$cat_rec_sign:为加入推荐选择,在后台设置,如果被设置就为1,否则为0

$cat_rec[1-3](数组):被设置了推荐选择的产品分类,1为精品,2为新品,3为热销,

../search.php?intro=hot:更多地址

***********************新品****************************************

$new_goods:新品数组

{$lang.new_goods}:新品字样

../search.php?intro=new:跟多地址

*****************************团购*************************************

$group_buy_goods:团购数组

$lang.group_buy_goods:团购字样

***********************拍卖*****************************************

$auction_list:拍卖列表(数组)

$lang.auction_goods:拍卖字样

$auction.url:拍卖地址的URL

$auction.thumb:缩略图

$auction.goods_name:产品名称

$auction.short_style_name:缩写

$lang.au_start_price:起拍价字样

$auction.formated_start_price:起拍价格

auction.php:更多地址

**************************帮助******************************

$helps:帮助数组

$help_cat.cat_name:帮助的标题分类

$help_cat.article:详细帮助,数组,与$helps数组配合用

$item.url:地址

$item.title:帮助的标题

$item.short_title:帮助的缩写标题

**********************************友情链接************************************

$img_links:图片型(数组)

$link.url:地址

$link.name:友情网站名

$link.logo:logo

$txt_links:文字型(数组)

~~~~~~~~~~~~~~~~~~~~~~产品列表页~~~~~~~~~~~~~~

******************************商品分类树***************************************

{$lang.goods_category}:商品分类字样

$categories:商品分类数组

$cat.url:某个分支的URL

$cat.name:分类类别名称

$cat.cat_id:商品的顶级分类的数组,包含顶级分类下面的子分类

******************************浏览历史****************************

$lang.view_history:浏览历史字样

{insert name=’history’}:插入浏览历史列表

*******************************促销信息***********************************

$lang.promotion_info:促销信息字样

$promotion_info:促销信息数组

$item.type:促销类型

$item.act_name:促销信息的标题,题目

$item.time:促销时间

促销产品类型:{$lang.$item.type}

促销信息 (字样):{$lang.promotion_info}

夺宝奇兵:snatch (此为ECSHOP关键字,属于类型)

夺宝(字样):{$lang.snatch_promotion}

相关程序:snatch.php

团购: group_buy (此为ECSHOP关键字,属于类型)

团购(字样):{$lang.group_promotion}

相关程序:group_buy.php

拍卖:auction       (此为ECSHOP关键字,属于类型)

拍卖(字样):{$lang.auction_promotion}

相关程序:auction.php

优惠:favourable    (此为ECSHOP关键字,属于类型)

优惠(字样):{$lang.favourable_promotion}

相关程序:activity.php

促销地址:{$item.url}

活动商品名称:{$item.act_name}

活动时间:{$item.time}

********************************当前位置************************************

{$lang.ur_here}:当前位置字样

{$ur_here}:当前位置

******************************商品筛选*****************************************

{$lang.goods_filter}:商品筛选字样

$filter_attr_list:商品筛选数组:

该数组是先设置商品属性,再由商品分类是,选择筛选的商品属性

$filter_attr.filter_attr_name:为筛选项目

$filter_attr.attr_list:为被筛选的具体值数组

为数组,需要再$filter_attr_list循环下

{$attr.attr_value}:具体值

$attr.selected:判断是否被选中

{$attr.url}:URL地址

********************************商品列表**************************************

{$lang.goods_list}:商品列表字样

{$lang.btn_display}:显示方式字样

列表方式排列

            _act.gif”alt=”{$lang.display.list}”>

横向排列:

            _act.gif”alt=”{$lang.display.grid}”>

字有文字排列:

            _act.gif”alt=”{$lang.display.text}”> 

********************工具条***********************************

{html_optionsoptions=$lang.sort selected=$pager.sort}

{html_optionsoptions=$lang.order selected=$pager.order}


*******************************************************

{$lang.goods_brief}:产品描述字样

$goods.goods_brief:产品的描述

$lang.market_price:市场价字样

{$goods.market_price}:市场价

添加到购物车代码:addToCart,系统JS函数           

添加商品到收藏夹:collect,系统JS函数            

加入对比代码:Compare.add,系统JS函数

本文采摘于网络,不代表本站立场,转载联系作者并注明出处:https://www.dushilianren.cn/WebsiteNews/103.html

业务咨询

  • 官方微信

    官方微信

  • 商务合作

  • 官方微信

    官方微信

  • Copyright © 2018-2022 小程序开发 APP开发 网站建设 小程序定制 APP定制 All Rights Reserved. 网站地图
    电话咨询:18936104252
    在线客服咨询