I have been working in the recovery of a hacked Magento 1.9 installation, this site was destroyed and I managed to recover the database and make it work again with an updated version of the template/theme that was used originally (Milano).

There is a page, "store locator" that uses a external JS file that is called scriptstorelocator.js

This file was part of the old hacked filesystem, Which I have a backup, I copied the file to the same folder where it used to be to the new installation, but does not work. Somehow seems that the JS file is not loaded.

Not sure I have placed the file in the wrong folder:

I have stored it public_html/skin/frontend/default/milano/js/

or Im doing something wrong in the page settings?

I have tried to paste the JS inside the HTML editor (very naive) and it didnt work, is there a way to bypass this?

Thanks guys

I attach this images that show the settings:

settings snapshot 2

Page layout snapshot


Finally I managed to insert the JS file in the header using

       <![CDATA[<script type="text/javascript" src="http://www.example.com/js/scriptstorelocator.js"></script><script type="text/javascript"></script>]]>

thanks for your help

  • what hapen My answer not help you?? Sep 8, 2016 at 15:29

1 Answer 1


if you had write skin_js then you need to put js file in ,

skin/frontend/yourpackage/yourtheme/js in this folder you can put your js.

Hope This will help you

  • for completeness: check that the package/theme are what you think in 'System > Configuration > (General) Design' Sep 8, 2016 at 15:39
  • yes your theme which you are using .yes you will get detail in 'system->config.->design' Sep 8, 2016 at 15:40
  • The package is default and the theme Milano, the JS folder is in the folder /skin/frontend/default/milano/js/ but it doesnt pick up. Sep 8, 2016 at 15:43
  • replace with those name in my answer your package with default and theme with Milano Sep 8, 2016 at 15:44
  • I have tried nothing happens. I checked the browser console that it gives a error "BASE_URL is not defined" could this be related? Sep 8, 2016 at 15:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.