gr4devel Posted September 9, 2014 Share Posted September 9, 2014 (edited) Hi community. Does anyone knows how can I handle multilanguages fields of a custom Model (i.e. custom class that extends the PS ObjectModel). I mean, I know how to declare the Model but am I supposed to create a separate table for the translations or does it gets created "automagically" by the framework? Thanks in advance to everyone one Cheers! Edited September 9, 2014 by gr4devel (see edit history) Link to comment Share on other sites More sharing options...
PhpMadman Posted September 9, 2014 Share Posted September 9, 2014 Do you mean in the modules configuration? Do you want a config that is multiple language? Link to comment Share on other sites More sharing options...
gr4devel Posted September 9, 2014 Author Share Posted September 9, 2014 Thanks for your support PhpMadman Actually I was trying to create a new class extending the ObjectModel that could handle a few multilanguage fields. Anyway I don't know how to initialize the tables underlying this new class ObjectModel Link to comment Share on other sites More sharing options...
murc134 Posted October 26, 2016 Share Posted October 26, 2016 (edited) http://blog.belvg.com/objectmodel-activerecord-in-prestashop.html Denis Urevich explained it very will in this blog Edited October 26, 2016 by murc134 (see edit history) 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