Jump to content

[SOLVED]How to locate database table for module?


blackarma

Recommended Posts

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 :D

 

Could someone please explain how does value saving works for module?

Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...