![]() |
Custom JS not loading
Hi, we have X-Cart 5.4.1.49 with Theme tweaker 4.5. I followed https://developer.x-cart.com/5.4/design_changes/adding_custom_javascript_code_to_the_page#custom-js-code-for-every-page
but the script I put in the custom JS code area (admin panel -> Look and feel -> Custom CSS and Custom JS -> Custom JS) doesn't show in the store. What did I do wrong here? |
Re: Custom JS not loading
Did you try rebuilding the store/cache?
|
Re: Custom JS not loading
Quote:
Yes, it still doesn't load. On the other hand, if I create a twig template under themetweaker, it loads. However, it turned out that my JS code wouldn't run in line anyway, so I needed to use the method getJSfile in a view class. But, if there is admin page for adding custom java script code, the java script added via the page should load... |
All times are GMT -8. The time now is 10:39 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.