DEDECMS首页调用商品价格

进入后台----内容模型管理----商品模型修改----字段管理----将《市场价》《优惠价》字段(使字段可以在列表的底层模板中获得...)打勾。(默认已经打勾)

代码如下:

{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' 是商品优惠价和市场价的字段,调用其他字段类似。

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/eafdb80f3f0a8d82032f2c9c53582395.html