博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ecshop标签解析大全-网店建站必备
阅读量:6856 次
发布时间:2019-06-26

本文共 2851 字,大约阅读时间需要 9 分钟。

hot3.png

先从index.php主页开始
页面关键字 {$keywords }
页面标题 {$page_title}
产品分类 
父分类列表 {foreach from=$categories item=cat }
父分类超链接 [url==”{$cat.url}”>{$cat.name|escape:html}</a>
相对应子分类 {foreach from=$cat.children item=child}
子分类超链接 [url==”{$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}”> [url==”{$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开头的为价格
{$page_title} 网站标题
{$keywords} 
网站关键字标签
{$description} 网站描述标签
{$shop_notice} 商店公告
$new_articles 新文章
{$article.short_title} 调用文章标题
{foreach from=$new_articles item=article} 
循环的开始,
{/foreach} 循环的结束
item --> 具体意义和用法?
表格一行一行的循环
<table>
{foreach from=$new_articles item=article}
<tr><td>
{$article.short_title}
</td></td>
{/foreach}
</table>
from=$best_goods 表示循环的内容来自$best_goods
$best_goods 精品商品推荐的标签
{$goods.short_style_name} 表示goods 这个对象的商品名称
$new_goods 新品上市
$hot_goods 热卖商品
$categories 分类的标签
$goods_list 商品标签
商品图片: <img src= {$goods.goods_img} />
商品名称:{$goods.goods_style_name}
商品货号:{$goods.goods_sn}<br>
商品品牌: {$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}
红包个数金额

转载于:https://my.oschina.net/u/779687/blog/136915

你可能感兴趣的文章
What's the best Linux server for you? == 最佳Linux服务器发行版
查看>>
docker swarm英文文档学习-1-概述
查看>>
Bootstrap网格
查看>>
IM(XMPP)介绍
查看>>
HDU3188 Just A Triangle【水题】
查看>>
HDU3782 xxx定律【数学计算+水题】
查看>>
趣味程序之趣味系列
查看>>
8.使用下拉列表框进行多选
查看>>
@responseBody注解的使用
查看>>
用maven在eclipse中创建Web项目
查看>>
移动端web开发JS使用Date()的值为invalid Date或者为NaN
查看>>
聊一聊python的单例模式
查看>>
redis应用场景:实现简单计数器-防止刷单
查看>>
python——元组和字典学习笔记
查看>>
面试遇到的问题(被虐了就更新)
查看>>
Windows Phone 8.1 数据处理
查看>>
Jsp页面用table表格来让文字和文本框对齐
查看>>
nodejs加解密
查看>>
LeetCode | Set Matrix Zeroes
查看>>
Eclipse 安装 SVN 插件的两种方法
查看>>