vister Posted September 27, 2018 Share Posted September 27, 2018 HelloI have a problem with PrestaShop 1.7.I created additional columns in the database in the database and I would like them to be displayed.I do not know how to do it. Please help.I wrote this piece of code:classes / Feature.phpprivate function getProducts ($ id_product) { $ sql = 'SELECT * FROM'. _DB_PREFIX_. 'Example'; return Db :: getInstance (_PS_USE_SQL_SLAVE _) -> executeS ($ sql); }poroduct-detailis.php<dt class = "name"> Example </ dt> <dd class = "value"> {$ feature.getProducts} </ dd> 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