• 七角七分博客欢迎大家光临

dedecms商品详细信息调取函数

随笔 七七 11年前 (2013-10-22) 0个评论

其实很多信息在dede默认模板中都可以找到的!

<div class=”infolist”>
<small>信息类型:</small><span>{dede:field.infotype/}</span>
<small>测试:</small><span>{dede:field.vocation/}</span>
<small>商品原价:</small><span>{dede:field.price/}元</span>
<small>优惠价格:</small><span class=”fc-f60″>{dede:field.trueprice/}元</span>
<small>品牌:</small><span>{dede:field.brand/}</span>
<small>单位:</small><span>{dede:field.units/}</span>
<small>上架日期:</small><span>{dede:field.pubdate function=”MyDate(‘y-m-d H:i’,@me)”/}</span>
<small>人气:</small><span><script src=”{dede:field name=’phpurl’/}/count.php?view=yes&aid={dede:field name=’id’/}&mid={dede:field name=’mid’/}” type=’text/javascript’ language=”javascript”></script></span>
##form id=”formcar” name=”formcar” method=”post” action=”{dede:field name=’phpurl’/}/posttocar.php”>
<input type=”hidden” name=”id” value=”{dede:field.id/}” />
<input type=”hidden” name=”title” value=”{dede:field.title/}” />
<input type=”hidden” name=”price” value=”{dede:field.trueprice/}” />
<input type=”hidden” name=”units” value=”{dede:field.units/}” />
<small>购物车:</small><span><a href=”{dede:field name=’phpurl’/}/car.php” target=”_blank”>查看购物车</a></span>
<small>购买:</small><span><button type=”submit” name=”button” class=”btn-2″>放入购物车</button></span>
##/form>

喜欢 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址