天天看點

Destoon供應清單調用分類屬性值調用實作方法

有很多朋友在使用Destoon做開發的時候,對于供應子產品分類不滿足需求。需要加入獨立的産品分類屬性,下面小博分享下:Destoon供應清單調用分類屬性值調用實作方法

1、找到模闆在list-sell.htm中添加以下代碼

 <?php
 $a = $t[itemid];
 $b = $db->get_one("select value from destoon_category_value where itemid='$a'");
 echo $b[value];
 ?>
           

  2、看實際效果

Destoon供應清單調用分類屬性值調用實作方法

Destoon供應清單調用分類屬性值調用實作方法,截圖來自:( 水泥制品)

Destoon供應清單調用分類屬性值調用實作方法

Destoon供應清單調用分類屬性值調用實作方法

        這樣更新下緩存就出來了。可以參考下:www.ibixue.com/destoon/

下一篇: tag标簽檔案