Mickeel Posted November 11, 2014 Share Posted November 11, 2014 (edited) Hi, I'm making many modification for modules in prestashop. But what is currently in my mind is, how is really work. We have several location to override module or template: 1. from theme through "themes/themename/modules" 2. from override folder But in case we put modification of module AxA at override folder, then we install new theme that also override AxA, which override will be used? Is it the files inside override folder or inside themes folder? Thanks EDIT1: I just tried override a module class I just bought through /themes/[themename]/modules/[modulename]/(the original file is in /modules/[modulename]. But when I did that, the module doesnt work at all. Is this mean that we cant replace module class php file from theme folder? EDIT2: I just tried to move the override file to override/modules folder, but seems like it doesnt work. Is there any place where we can put modified files? because I want to keep all modification in separated folder for our development team. Edited November 11, 2014 by Mickeel (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted November 11, 2014 Share Posted November 11, 2014 You cannot override module php files. This folder is used to override module template files /themes/[themename]/modules/[modulename]/ You should probably read this http://doc.prestashop.com/display/PS16/Overriding+default+behaviors Link to comment Share on other sites More sharing options...
Mickeel Posted November 12, 2014 Author Share Posted November 12, 2014 You cannot override module php files. This folder is used to override module template files /themes/[themename]/modules/[modulename]/ You should probably read this http://doc.prestashop.com/display/PS16/Overriding+default+behaviors So only template and mail template that can be overridden? I read the doc already, but it doesnt specifically say that we can't module class php. Does this mean that we can only override prestashop core class and controller ? Link to comment Share on other sites More sharing options...
vekia Posted November 12, 2014 Share Posted November 12, 2014 So only template and mail template that can be overridden? I read the doc already, but it doesnt specifically say that we can't module class php. Does this mean that we can only override prestashop core class and controller ? yes, it means that you can override only prestashop core class and controllers (and modules .tpl / .css / .js files with theme) 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