网友真实露脸自拍10p,成人国产精品秘?久久久按摩,国产精品久久久久久无码不卡,成人免费区一区二区三区

幫助

商品參數(shù)新老版本使用方法詳解

2022-03-07 09:12 常見(jiàn)問(wèn)題

商城中心的商品參數(shù)標(biāo)簽

{eyou:attribute type='newattr' attrid='$eyou.field.attrlist_id'}

   {$attr.name}:{$attr.value}

{/eyou:attribute}



早期產(chǎn)品中心的產(chǎn)品參數(shù)

{eyou:attribute type='auto' attrid='$eyou.field.attrlist_id'}
   {$attr.name}:{$attr.value}
{/eyou:attribute}




attribute 商品參數(shù)列表
 
[基礎(chǔ)用法]
名稱(chēng):attribute
功能:獲取當(dāng)前商品的參數(shù)列表,僅在產(chǎn)品詳情頁(yè)、列表頁(yè)表用,更多調(diào)用方式在示例里。
語(yǔ)法:
{eyou:attribute type='newattr' attrid='$eyou.field.attrlist_id'}
   {$attr.name}:{$attr.value}
{/eyou:attribute}
參數(shù):
aid='' 文檔ID,在arclist標(biāo)簽、list標(biāo)簽之內(nèi),以及內(nèi)容頁(yè)模板中一般不需要指定aid屬性,系統(tǒng)會(huì)自動(dòng)獲取;
type='' 標(biāo)簽類(lèi)型,默認(rèn)是手動(dòng),具體可以參考教程底部的示例;
----type='newattr' 新版商城中心的商品參數(shù)
----type='auto' 早期產(chǎn)品中心的產(chǎn)品參數(shù);
empty='' 沒(méi)有數(shù)據(jù)時(shí)顯示的文案
mod='' 每隔N行輸出的內(nèi)容
id='' 可以任意指定循環(huán)里的變量名替代field,假設(shè)id='field1',模板調(diào)用如:{$field.title} 變成 {$field1.title}


標(biāo)簽: 商城中心
QQ在線咨詢(xún)
AI智能客服 ×