bedford Posted September 26, 2020 Share Posted September 26, 2020 (edited) Hi, I'm still learning Prestashop (1.7.6.7). I've some proven PHP/MySQL/JQuery scripts I'm trying to import from an old OsCommerce site. It would be a huge work to make them compatible with MVC, so my idea is to show them in backoffice right pane and use the Prestashop functions. I've been able with a public function getContent(){include('views/templates/admin/myscript.php');} line to show on backoffice but the content is 100% of the page and shows partly under the backoffice left menu. Most important, they are daily use modules, I really need a direct link from left menu in backoffice and not from module management menu (too long). Could someone help me with this please ? Thank you Edited September 26, 2020 by bedford (see edit history) Link to comment Share on other sites More sharing options...
joseantgv Posted September 26, 2020 Share Posted September 26, 2020 Check this https://devdocs.prestashop.com/1.7/modules/concepts/controllers/admin-controllers/tabs/ Link to comment Share on other sites More sharing options...
bedford Posted September 26, 2020 Author Share Posted September 26, 2020 (edited) 6 minutes ago, joseantgv said: Check this https://devdocs.prestashop.com/1.7/modules/concepts/controllers/admin-controllers/tabs/ Hi joseantgv, thank you for your help. So far I could create a menu but could not create the module to include or execute my scripts on the right pane of prestashop's backoffice Edited September 26, 2020 by bedford (see edit history) Link to comment Share on other sites More sharing options...
joseantgv Posted September 26, 2020 Share Posted September 26, 2020 hace 1 minuto, bedford dijo: Hi joseantgv, I could create a menu but could not create the module to include or execute my scripts on the right pane of prestashop's backoffice Then check this: https://devdocs.prestashop.com/1.7/modules/concepts/controllers/admin-controllers/ Link to comment Share on other sites More sharing options...
bedford Posted September 26, 2020 Author Share Posted September 26, 2020 3 minutes ago, joseantgv said: Then check this: https://devdocs.prestashop.com/1.7/modules/concepts/controllers/admin-controllers/ Actually I tried for 2 days to create a module, couldn't find a way to simply run a PHP file inside the module and show on right pane the result. I'm probably too bad at programming Link to comment Share on other sites More sharing options...
Guest Posted September 28, 2020 Share Posted September 28, 2020 Can you take a screenshot and paint what you need? It is not entirely clear what you think. Link to comment Share on other sites More sharing options...
bedford Posted October 27, 2020 Author Share Posted October 27, 2020 Hi Guest, I want a simple table like the image below, without calling a view but directly from PHP code. The code is full working on another CMS, I want to use it on my admin pane and I don't care if it doesn't look "modern", I only want it functional and ready to import, so I only have to update the queries to access prestashop's database model. I can't find a way to do such a "simple" model, all tutorial I've found do uses the MVC and most of them don't even work with 1.7 Thank you Link to comment Share on other sites More sharing options...
Guest Posted October 28, 2020 Share Posted October 28, 2020 And where is the problem? Can't create a basic module and controller? Do you need a demo? Link to comment Share on other sites More sharing options...
Guest Posted November 1, 2020 Share Posted November 1, 2020 Mini module sample for Prestashop 1.7 Download sample module: dt_customorderdetail.zip Preview: Link to comment Share on other sites More sharing options...
bedford Posted August 24, 2022 Author Share Posted August 24, 2022 (edited) Hi, finally !!!! found the time to return to PS. Thank you for your reply. This module worked (had to change max version for 1.7.8.0). Thanks a lot, I can now continue my code. Edited August 24, 2022 by bedford (see edit history) 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