Łukasz Szcześniak
Łukasz Szcześniak

Reputation: 1444

How to override .js file in strange structure

I am working on prestashop 1.6. I have a .js file here: \modules\my_module\views\js\custom.js

And I want to override it in theme. I've tried for example: \themes\my_theme\modules\my_module\views\js\custom.js

It didn't work. Nor did \overrides\modules\my_module\views\js\custom.js

Where should this file be placed?

Upvotes: 1

Views: 473

Answers (1)

Florian Lemaitre
Florian Lemaitre

Reputation: 5748

You should place your file under:

\themes\[theme]\js\modules\[js_path_in_module]
\themes\my_theme\js\modules\my_module\views\js\custom.js

Upvotes: 1

Related Questions