me_von_south Posted February 17, 2017 Share Posted February 17, 2017 Hi guys. I have a couple questions about themes. I have created a new theme from the back office and copied it from the default-theme. I have created my own module called "My module" and when I "override" mymodule.tlp in the theme ( I created /themes/my-new-theme/modules/mymodule/mymodule.tpl) it works. I just have question though, when I change from the default Prestashop theme to the new one I created it asked me what modules should be enabled. I'm confused by this. Are they asking whether the modules under /module/ in the root of Prestashop be disabled/enabled or are they asking wheter the "overrides" (like /themes/my-new-theme/blockbestsellers/modules) should be enabled? Oh and another thing there where it asked me which modules I would like to enable/disable for the theme, I don't see my newly created module in the list. That's also one thing i'd like to know. Then another thing, can a theme be considered an "override" of a modules tpl files with extra css and other goodies? Thanks Link to comment Share on other sites More sharing options...
GT ITECH Posted February 25, 2017 Share Posted February 25, 2017 I think Prestashop ask you if you want to enable/disable ovverride of modules ^^ If you don't see your own module, i think it's just because it pick default modules of Prestashop. Then yes a theme can override module tpl, js and css, but not the core code in php and override a module with a theme it's more an visual override than an features override. Link to comment Share on other sites More sharing options...
Xpert-Idea Posted February 27, 2017 Share Posted February 27, 2017 for 1.6.x.x : You have to need add your module name on your theme directory /themes/my-new-theme/config.xml file to install section. Yes you can override css,js files from your theme folder. For 1.7.x.x : You have to need add your module name on your theme directory /themes/my-new-theme/config/theme.yml file to install section. Yes you can override css,js files from your theme folder. 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