Yuto Posted June 12, 2017 Share Posted June 12, 2017 Hi all ! I have create a new table called "ps_product_avis" in my database to add a field of notation in my product. In ProductController.php : public function initContent() { global $smarty; $avis=Db::getInstance()->ExecuteS("select commentaire from "._DB_PREFIX_."product_avis");; $smarty->assign('avis',$avis); In product.tpl : <li>avis : {$avis}</li> This method dosn't work. Someone could tell me how add the fields of my new table in my website please ? I want create a list of opinions for each of my products. Thanks a lot in advance. Link to comment Share on other sites More sharing options...
Yuto Posted June 16, 2017 Author Share Posted June 16, 2017 Up :/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now