adam3278 Posted November 25, 2022 Share Posted November 25, 2022 (edited) Hello, Im working on new theme for my Prestashop instance. I changed the hook names and modules assignments in config/theme.yml. Everything works fine after reenabling the theme, but the css for modules like searchbar or etc blog are not loading (compared pages from browser cache before and after the change). Moreover, there's no return at the moment - classic and other themes have the same issue. Tried cleaning the presta cache also with templates force rebuild, without any result. Is there anyone, who can help me? I lost about 3hours on resolving the issue, and don't want to spend another 10h. Thanks in advance Edited November 25, 2022 by adam3278 (see edit history) Link to comment Share on other sites More sharing options...
endriu107 Posted November 26, 2022 Share Posted November 26, 2022 What hooks you have change? Link to comment Share on other sites More sharing options...
adam3278 Posted November 27, 2022 Author Share Posted November 27, 2022 displayNav2 to displayTop2 and displayTop to displayTop1 This is just a beginning. I want to make more changes and completely rebuild the theme, but it must work as it is first. Those changes were made in config/theme.yml and templates/_partials/header.tpl. It’s quite strange the presta doesn’t work (load some internal and external modules css) even on untouched classic theme. Link to comment Share on other sites More sharing options...
endriu107 Posted November 27, 2022 Share Posted November 27, 2022 Did, you also change in those modules hooks name and reinstall them? Link to comment Share on other sites More sharing options...
adam3278 Posted November 27, 2022 Author Share Posted November 27, 2022 No, but why this change affect whole installation? Isn’t it theme only assignment? Link to comment Share on other sites More sharing options...
endriu107 Posted November 27, 2022 Share Posted November 27, 2022 No, if you change Hook name in theme you must edit module you want connect to it and reinstall module to register new Hook for this module. Only exception is when module use widget interface then is little easier change Hook for module. Link to comment Share on other sites More sharing options...
adam3278 Posted November 27, 2022 Author Share Posted November 27, 2022 Ok, I reversed the changes and there's still the issue with the css. I cleaned the cache and forced to rebuild the templates files in the options again. How to repair the broken functionality in my presta installation? I see the hooks are set up correctly in admin panel. Link to comment Share on other sites More sharing options...
endriu107 Posted November 27, 2022 Share Posted November 27, 2022 It's hard to say, please share url that we can see where really is problem. 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