xiparos Posted April 22, 2015 Share Posted April 22, 2015 Hi All, I've read theses posts. https://www.prestashop.com/forums/topic/278900-how-to-use-ajax-call-in-a-moduleto-check-whether-the-mobile-phone-number-already-exists/ https://www.prestashop.com/forums/topic/184413-ccc-custom-css-and-js/ It related to ajax callback in tpl file. following the first post, I've successfully made a ajax callback in a tpl file in a module. Now I want to go further, with regard to CCC performance of the site. How could I put ajax callback function into a separate xxx.js file, which will be called by tpl file, ( not the way illustrated in second post ), more intuitively, the separated xxx.js file called by tpl file would be moved to the footer of the site so that all js files would be CCC by Prestashop into a single js file. Does anyone already made this ? Thanks for your reply. Best Regards Link to comment Share on other sites More sharing options...
xiparos Posted April 23, 2015 Author Share Posted April 23, 2015 Hi, I'd like to know anyone has already figured it out ? Link to comment Share on other sites More sharing options...
xiparos Posted April 24, 2015 Author Share Posted April 24, 2015 (edited) Perhaps @Vekia could help me figure this out ? Edited April 24, 2015 by xiparos (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now