jiju ani Posted May 2, 2014 Share Posted May 2, 2014 Hi, Can anyone tell me how can i know, that the prestashop are modules are called? Is there any file that defines the call of modules. eg: When you click on checkout what files are called and how it works? Regards Jiju Link to comment Share on other sites More sharing options...
NemoPS Posted May 2, 2014 Share Posted May 2, 2014 I am not sure I understand what you mean. Anyway modules are called when Module::hookExec is called. This will run every module hooked to the hook name specified in the function call 1 Link to comment Share on other sites More sharing options...
jiju ani Posted May 2, 2014 Author Share Posted May 2, 2014 Hi thank you for the reply. Actually i want to know the working of prestashop. That is when a user click on product image what happens in background, what are the process involved. When user clicks on add to cart button what happens in back-end and in database, Like wise, i want to know what are modules and files that works for each operation that happens at the front-end, when a customer clicks on each link.(may be menu, categories, featured products, contact, user account........ it goes on). Is there any pre written document in prestashop? Link to comment Share on other sites More sharing options...
vekia Posted May 2, 2014 Share Posted May 2, 2014 if you're just looking for modules that are called, go to modules > positions tab in back office you can find there list of hooks. for each hook you can attach module. you've got listing of modules there. for example, you can see there what modules are attached to footer section - this position name is displayFooter. Each module has got own .php file, it controlls all important things related to visible part of module (php file calling .tpl files) 1 Link to comment Share on other sites More sharing options...
jiju ani Posted May 2, 2014 Author Share Posted May 2, 2014 For eg: add to cart When user add to cart a product. 1. blockcart.php(in blockcart/) 2. cartcontroller.php(in controllers/front) 3. Cart.php(in classes) am i right? Is these are the only files that works in add to cart button click, or is there any other files? Link to comment Share on other sites More sharing options...
NemoPS Posted May 3, 2014 Share Posted May 3, 2014 I can't remember by heart at the moment, but unfortunately the only way is to inspect the code line by line (As far as I know). It should be those 3 only, at the moment. Link to comment Share on other sites More sharing options...
Recommended Posts