Mando Posted November 30, 2015 Share Posted November 30, 2015 (edited) I'm developping an addon using his own class and SQL table, and I'd like to associate a language table to it, like 'product' and 'product_lang'. More precisely : I'm creating a module adding properties to products : I'm using an admin tab in the same way products, categories, etc, are managed, to view, create, edit my properties. I created a SQL table 'properties' and a 'properties_lang' one, but when I add a property using my form, it only fills the 'properties' table, not 'properties_lang'. Likewise, when I try to edit a property, only the datas from 'properties' are returned when I call $this->getFieldsValue($properties); method to pre-fill the form the the property datas. I miss something somewhere, but even when I dissect the Prestashop native classes to see how it's made, I can't find. Does someone have an idea ? Edited November 30, 2015 by Mando (see edit history) Link to comment Share on other sites More sharing options...
Mando Posted November 30, 2015 Author Share Posted November 30, 2015 Ok, I pulled an all-nighter and I finally figured out what's missing : I forgot 'multilang' => true, in my class definition. My bad. 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