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

幫助

商品參數新老版本使用方法詳解

2022-03-07 09:12 常見問題

商城中心的商品參數標簽

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

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

{/eyou:attribute}



早期產品中心的產品參數

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




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


標簽: 商城中心
QQ在線咨詢
AI智能客服 ×