ECSHOP商品页显示供货商名称

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

goods.php查找:$smarty->assign('goods',              $goods); 在他上方加上下面这句话:      if($goods['suppliers_id'])           {             $goods['suppliers_name']=$db->getOne("select suppliers_name from "            .$ecs->table('suppliers')." where suppliers_id=".$goods['suppliers_id']);            $goods['suppliers_desc']=$db->getOne("select suppliers_desc from "            .$ecs->table('suppliers')." where suppliers_id=".$goods['suppliers_id']);            }          goods.dwt:想要显示位置加上:      

  •       供货商:{$goods.suppliers_name}