Hi!
I have a module showing a banner, that has a couple of .js and .css files. The problem is my .js file need .css file url to initialize. Js file looks like:
...
current_lang : 'en',
theme_css: '../css/my-css-file-url-adress.css',
...
And surely enough it doesn't work. When I check the console, Prestashop tries to create the path like:
prestashop/en/css/my-css-file-url-adress.css
Even if I try to use something like /modules/mymodule/css/my-css-file-url.adress.css - It still doesn't work, because of that /en/ part inserted by Prestashop. I know that there should be a very simple solution, but I'm just not aware of it. What should I do to make my javascript file to find my css file all by itself?