It adds useful hooks, functions and libraries to PrestaShop
Let us assume that our module directory is named mymodule
Tvcore::installTables('mymodule');
It will install
- The module mandatory tables, if the file /sql/tables.php exists
- Table overrides, if the file /sql/table_overrides.php exists
- Additional tables sorted by module directory name in the directory /sql/additional, given the fact that the respective modules are enabled
Tvcore::uninstallTables('mymodule');
It will revert the db schema back to its original condition (with the equivalent functions from the install function).
Tvcore::installTabs('mymodule');
Tvcore::importData('mymodule');
Tvcore::registerHooks('mymodule');
There is a directory named /sql/demo where you can find examples for making your module work smoothly
Bonus: For module developers, you need to add index only in the basic module directory, and add the gist to your admin directory like any cronjob
Feel free to contact us @ [email protected] if you have any questions or just to say hi!