DEDECMS首页调用商品价格
发布时间:2020-01-21
进入后台----内容模型管理----商品模型修改----字段管理----将《市场价》《优惠价》字段(使字段可以在列表的底层模板中获得...)打勾。(默认已经打勾)
代码如下:
{dede:arclist addfields='trueprice,price' channelid='6'col=5 typeid=6 row=10 titlelen=100 orderby='pubdate' imgwidth=100 imgheight=100}
[field:image/]
优惠价:[field:trueprice/]
市场价:[field:price/]
[field:title/]
{/dede:arclist}
注:addfields='trueprice,price' 是商品优惠价和市场价的字段,调用其他字段类似。
本文标签
:备案管家服务帮您把复杂流程变简单,解决您在进行网站备案过程中遇到的效率低下和成功率不高的问题。个人300/2个域名,企业500/5个域名,qq1650004.