benjaminabel Posted March 5, 2014 Share Posted March 5, 2014 Hi, everyone, Currently I am developing theme for Prestashop based on Foundation 5. Theme is almost ready, but I am facing one big problem now. My theme uses custom hooks and module positions. The problem is, I need to parse this theme to the existing shop. This shop has its own positions/modules, etc. As I guess, just uploading theme folder (with modified templates) and modules folder (with modified modules) will not give the exact result. How can I pass my own modules positions (but not settings! Because this shop have its own settings, like carers, payment systems and other useful data) to the existing install? Is there some configuration file that I can compile for theme? Thanks! Link to comment Share on other sites More sharing options...
TreeTheme Dev Posted March 5, 2014 Share Posted March 5, 2014 Hi You should use Import/export a theme module that comes by default. Check http://doc.prestashop.com/display/PS15/Managing+Modules+and+Themes#ManagingModulesandThemes-InstallingusingtheThemeInstallatormodule part about export theme. Note that you can disable modules that you don't want to show. P.S. Nice choice of using Foundation 5 :-) 1 Link to comment Share on other sites More sharing options...
benjaminabel Posted March 5, 2014 Author Share Posted March 5, 2014 (edited) Hi You should use Import/export a theme module that comes by default. Check http://doc.prestashop.com/display/PS15/Managing+Modules+and+Themes#ManagingModulesandThemes-InstallingusingtheThemeInstallatormodule part about export theme. Note that you can disable modules that you don't want to show. P.S. Nice choice of using Foundation 5 :-) Thank you! By the way, if I modifying any module, do I also need to include Modules folder from root of prestashop folder? If yes, does Theme import will handle replaces of .php files? Yep, I think so.) I started with a basic prestashop css and it was really horrible experience. Thanks god I had a great idea to install Foundation SASS and use its own grid.) Edited March 5, 2014 by benjaminabel (see edit history) Link to comment Share on other sites More sharing options...
TreeTheme Dev Posted March 5, 2014 Share Posted March 5, 2014 For module modufication you can override .tpl, .css and .js files in your theme. But if you change code in php module files it will not work. In that case you will need to create copy of module with different name, that have different modules class name and variables for configuration so it does not interfere with original module. Link to comment Share on other sites More sharing options...
benjaminabel Posted March 6, 2014 Author Share Posted March 6, 2014 For module modufication you can override .tpl, .css and .js files in your theme. But if you change code in php module files it will not work. In that case you will need to create copy of module with different name, that have different modules class name and variables for configuration so it does not interfere with original module. Okay, thanks a lot! I think I will just replave the original modules, because its one-time upgrade for the target site. Or there is will be a problem on modules update? Link to comment Share on other sites More sharing options...
TreeTheme Dev Posted March 6, 2014 Share Posted March 6, 2014 If you just replace original modules it will work. But those changes will be lost on module update, from back office modules page if new version of original module appears or if whole store is updated to newer version. So keep safe on side those modified modules to be sure. Link to comment Share on other sites More sharing options...
benjaminabel Posted March 7, 2014 Author Share Posted March 7, 2014 Then, I guess, I need to make them separate. Prestashop theming is one of the most challenging theming I ever experienced. Thanks god prestashop supports smarty... Otherwise it would be nightmare. Thanks a lot for the answers! 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