Jump to content

Override admin cart rule javascript?


Daaaaad

Recommended Posts

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 by Daaaaad (see edit history)
Link to comment
Share on other sites

  • 4 weeks later...

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...