Skip to content

tivuno/tvcore

Repository files navigation

Cornelius: Core PrestaShop module

compatibility

Description

It adds useful hooks, functions and libraries to PrestaShop

Use instructions

Let us assume that our module directory is named mymodule

1. Install tables

Tvcore::installTables('mymodule');

It will install

  1. The module mandatory tables, if the file /sql/tables.php exists
  2. Table overrides, if the file /sql/table_overrides.php exists
  3. Additional tables sorted by module directory name in the directory /sql/additional, given the fact that the respective modules are enabled

2. Uninstall tables

Tvcore::uninstallTables('mymodule');

It will revert the db schema back to its original condition (with the equivalent functions from the install function).

3. Install tabs

Tvcore::installTabs('mymodule');

4. Import data

Tvcore::importData('mymodule');

5. RegisterHooks

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 @ hi@tivuno.com if you have any questions or just to say hi!

About

It adds useful hooks, functions and libraries to PrestaShop

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages