Guest Posted April 16, 2018 Share Posted April 16, 2018 Hi, I am building a theme based on the Classic one. How can I override the core.js file in the theme's root folder safely (e.g. the best practices for overriding the many event bindings in that file)? Link to comment Share on other sites More sharing options...
Guest Posted April 17, 2018 Share Posted April 17, 2018 In particular, how can I override Prestashop's custom events? Such as prestashop.on('updateProduct', function() { }); Thank you Link to comment Share on other sites More sharing options...
guil182 Posted May 5, 2018 Share Posted May 5, 2018 Hi, Do you find the solution ? Regards Link to comment Share on other sites More sharing options...
jerem_ Posted November 30, 2018 Share Posted November 30, 2018 Hi, Up, cause i have the same question Link to comment Share on other sites More sharing options...
Guest Posted November 30, 2018 Share Posted November 30, 2018 Hey guys, you should follow the instructions reported here: https://www.prestashop.com/forums/topic/623913-17-corejs-uncompiled-version/ Link to comment Share on other sites More sharing options...
jerem_ Posted November 30, 2018 Share Posted November 30, 2018 (edited) Hello I actually found this thread before i up this one but i don't get how it can help me :s I just like to call a function of my own js when updateProduct event traitment is finished Edited November 30, 2018 by jerem_ (see edit history) Link to comment Share on other sites More sharing options...
mantas393 Posted January 9, 2019 Share Posted January 9, 2019 Maybe you found a solution? Link to comment Share on other sites More sharing options...
jerem_ Posted January 9, 2019 Share Posted January 9, 2019 No, sorry... Link to comment Share on other sites More sharing options...
J.Sahu Posted July 4, 2020 Share Posted July 4, 2020 Any solution to this? Link to comment Share on other sites More sharing options...
JBW Posted July 17, 2020 Share Posted July 17, 2020 On 11/30/2018 at 12:16 PM, jerem_ said: call a function of my own js when updateProduct event traitment is finished This is an example: prestashop.on('updatedProduct', function(e) { alert("Finished"); }); Check https://devdocs.prestashop.com/1.7/themes/reference/javascript-events/ 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