ECSHOP首页显示调用自定义分类商品best, new, hot

2016-06-13 13:05 来源:www.chinab4c.com 作者:ecshop专家

ECSHOP首页显示调用自定义分类商品best, new, hot   首先介绍:首页 调用自定义商品分类精品 index.php $smarty->assign('cat_id19_best_goods', index_get_cat_id_goods_best_list(19,10)); 19是商品分类ID    10显示数量 然后index.dwt :

     

{$goods.name|escape}

              {$goods.promote_price}         {$goods.shop_price}              {$goods.market_price}
             另外一种: index.php加入:  $smarty->assign('new_goods1',       recommend_goods('new',24));   模板调用方法:                  
  •                
                   
                       
                            

    {$goods.name|truncate:11:"...":true}

                                                                                                                          

    净含量:{$property.value|escape:html}

                                                                                                                                     

    市场价{$goods.market_price}模板屋价{$goods.shop_price}

                                           
                   
               
  •