jphuttun Posted April 9, 2011 Posted April 9, 2011 Hi!I have a problem adding correctly my selfmade module to Prestashop. I manage to add it by using "Add a module from my computer" ability in backoffice "Modules" tab (my development prestashop version is 184.108.40.206).In my module (that inherited from Module class), I have Install function. Install function calls my own "public function installExtension" using command $this->installExtension(). installExtension function adds 2 fields to MySQL database. I have tested that my installExtension function works. But when I try adding my module through "Add a module from my computer", it doesn't execute my installExtension function and add fields in database. If I add those fields manually, module works fine. With Uninstall function I have similar problem, but it should drop those fields when deleting module (and nothing happens).So, is Install function called when adding a new module or should I use some other function?I also tried to add my module to prestashop version 220.127.116.11, but in that case the whole module tab doesn't work anymore. What kind of changes have happened regarding adding modules? The actual shop is version 18.104.22.168, so is adding modules in 22.214.171.124 more similar to versions 1.4 or 1.2 (is installing a module in version 126.96.36.199 safe if it causes problems in version 1.2)? Share this post Link to post Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now