blackarma Posted January 20, 2012 Share Posted January 20, 2012 Hello, I would like to rewrite a bit blockcontactinfos, basically just re arrange and add new field for FAX. I understand everything that module does and what goes where, but how would i add new row "TAX" for particular modules table? All i see in module file is that it does stuff like Configuration::updateValue('blockcontactinfos_address', '') What i want to add is something like Configuration::updateValue('blockcontactinfos_fax', '') Do i need to add table row or will prestashop will somehow dinamicly make save? EDIT: Oh i updated code and it magically saved my new fax value Could someone please explain how does value saving works for module? Link to comment Share on other sites More sharing options...
Richard S Posted January 20, 2012 Share Posted January 20, 2012 Configuration values are saved in special database table automatically by PrestaShop. It is an easy and quite comfortable way to have similar information for global usage. You should find in your database a table called configuration or with similar name - I do not remember it clearly. 1 Link to comment Share on other sites More sharing options...
blackarma Posted January 20, 2012 Author Share Posted January 20, 2012 Configuration values are saved in special database table automatically by PrestaShop. It is an easy and quite comfortable way to have similar information for global usage. You should find in your database a table called configuration or with similar name - I do not remember it clearly. Indeed it's very nice that i can just add new stuff to module without modifying databse. 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