Frits van Leeuwen Posted August 25 Share Posted August 25 Hello everyone, I managed to get a module working in PrestaShop 1.7.8.11. Now I want to rebuild it so it works in PrestaShop 9 as well. I've used Copilot and Gemini for help. However, they say different things, and neither works. To see what I need to change, I thought I'd create a test module first. I want to get it right the first time. What I want is a module that I can install to start with. Once that's done, I want the module's name and description to be visible in the language selected in the back office. I'm calling my module 'testmodule'. Copilot tells me to place testmodule.php in the root of the module. But Gemini tells me to create a 'src' folder in the module and place testmodule.php in it. What's the correct answer, and what's the next step? Because now that I know this, I also want to ensure I can display labels in the back office, but I also want them in the language selected in the back office. Can anyone help me? Thanks in advance, Frits van Leeuwen Link to comment Share on other sites More sharing options...
Knowband Plugins Posted August 25 Share Posted August 25 The main module file will be in the root directory of the module, not in the src. The structure of the module files will be the same as in PS1.7 (Only some deprecated functions need to be done). 1 Link to comment Share on other sites More sharing options...
Frits van Leeuwen Posted August 25 Author Share Posted August 25 But it's strange. There are a few styles to code. I prefer the newest way, because I create a new module for PS 9. But when I search for it, I get mostly the old ways. 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