进入后台----内容模型管理----商品模型修改----字段管理----将《市场价》《优惠价》字段(使字段可以在列表的底层模板中获得...)打勾。(默认已经打勾)
代码如下:
{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' 是商品优惠价和市场价的字段,调用其他字段类似。
本网刊登的文章均仅代表作者个人观点,并不代表本网立场。文中的论述和观点,敬请读者注意判断。
本文地址:http://www.xlkjgs.com/notes/web/7924.html