piotr.petrasz Posted July 28, 2015 Share Posted July 28, 2015 Hello, My name is Peter and I am a new Presta developer I would like to ask the advanced user about creating module for PrestaSHOP 1.6. I would like to create an advanced search, with my own options. I`ve created a form for my right column, with some fileds (select, input etc) I don`t know how to connect this form with presta database and include there for example category list, attribute list etc. Generally my problem concerns on MVC structure. Where I should put the php and mysql query to include data to form? in which file, catalog? How I should make the connections between files tpl/php... Please help me Thank you in advance. Peter Link to comment Share on other sites More sharing options...
prestatent Posted July 28, 2015 Share Posted July 28, 2015 Hi Peter Have a look here on how to create a module within PS. Helped me out a lot. http://doc.prestashop.com/display/PS16/Creating+a+PrestaShop+Module Cheers. Link to comment Share on other sites More sharing options...
piotr.petrasz Posted July 28, 2015 Author Share Posted July 28, 2015 Hi prestatent, Thank you for your answer. I can`t find the solutions in that tutorial.... ;( Regards, P Link to comment Share on other sites More sharing options...
prestatent Posted July 28, 2015 Share Posted July 28, 2015 This tutorial gives you the basics on how the methods, controllers, templates link together. Another doc gives you the basics for working with the database here: http://doc.prestashop.com/display/PS16/Best+Practices+of+the+Db+Class So, for instance in the controller file within the module, this is where you would place your database commands and output variables for the template to display. 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