Daaaaad Posted April 26, 2018 Share Posted April 26, 2018 (edited) Hello, I'm trying to figure out how to override the "adminXXX/themes/default/template/controllers/cart_rules/form.js" file... I already tried to place a new version in "override/controllers/admin/templates/cart_rules" but the file is not taken into consideration Is there a clean way to do such things? Regards, David. Edited April 26, 2018 by Daaaaad (see edit history) Link to comment Share on other sites More sharing options...
Daaaaad Posted May 22, 2018 Author Share Posted May 22, 2018 Up ! 😢 No one could help me? Link to comment Share on other sites More sharing options...
Guest Posted May 22, 2018 Share Posted May 22, 2018 Hi, I've never tried to edit the admin theme before, but maybe you should install Webpack in order to edit the theme's css/js files? Otherwise, you might just duplicate it and use that instead. Link to comment Share on other sites More sharing options...
Daaaaad Posted May 22, 2018 Author Share Posted May 22, 2018 Hi @mad_griffith, Thank you for your answer Can you expand a bit about Webpack? I fail to see the link between Webpack and Prestashop Thank you Link to comment Share on other sites More sharing options...
Guest Posted May 22, 2018 Share Posted May 22, 2018 Hi! Have a look at e.g. the classic theme, in the _dev folder. The sources of those files (JS and SCSS) are expected to be edited in WebPack, which then bundles them together in the final theme.js and theme.css files. You need NodeJS installed in order to run WebPack. The admin theme appears to be based on similar requirements (though more loosely: all I can see is a bundle.js with some references to WebPack in the code). 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