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

相关文章

文章浏览阅读483次。dedecms织梦频道模板中调用栏目分类并排...
文章浏览阅读284次。我们在用织梦建站的过程中,难免会遇到各...
文章浏览阅读152次。seo专题是seo优化必不可少的一环,对于网...
文章浏览阅读142次。在Dedecms中,在列表页调用文章摘要的方...
文章浏览阅读234次。织梦DedeCMS文章内容发布时可以选择“头...
文章浏览阅读701次。虽然织梦DedeCMS因为安全问题被人所诟病...