kingsinnersoul Posted July 12, 2013 Share Posted July 12, 2013 Hello, There is a small JavaScript that runs on page load on the Product-List tpl file. But when I use the Block Layared to filter products from the list it reloads the resulted product list without the JavaScript running after. Can someone please help me with finding where to put the Javascript code in order to make sure it runs after each time the filter is used? Thank you Link to comment Share on other sites More sharing options...
Krystian Podemski Posted July 12, 2013 Share Posted July 12, 2013 (edited) Hello, Please change your javascript to have your code in function and then place that function somewhere at the end of reloadContent() function in blocklayered.js (eg. after updateProductUrl()), this should help. blocklayered change DOM structure so scripts running on the old structure must be reloaded / restarted. Edited July 12, 2013 by Krystian Podemski (see edit history) 1 Link to comment Share on other sites More sharing options...
kingsinnersoul Posted July 12, 2013 Author Share Posted July 12, 2013 Thank you. That worked! Link to comment Share on other sites More sharing options...
Krystian Podemski Posted July 12, 2013 Share Posted July 12, 2013 Cool, happy PrestaShopping Link to comment Share on other sites More sharing options...
vekia Posted July 12, 2013 Share Posted July 12, 2013 thanks for solution Krystian i marked thread as [solved] regards Link to comment Share on other sites More sharing options...
karthiiiiiiiiiik Posted August 30, 2014 Share Posted August 30, 2014 (edited) i how can i add javascript to automatically filter COD type payment in order page of admin in ps 1.5.6.0 or how can i show only COD order type in admin order page , mainly in the listing of order .. i can filter it by using filter button but i want to do that automatically.. Edited August 30, 2014 by karthiiiiiiiiiik (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted August 30, 2014 Share Posted August 30, 2014 int's not a case of javascript, you have to modify controllers (AdminOrderController) create new topic, this topic is about js scripts. Link to comment Share on other sites More sharing options...
karthiiiiiiiiiik Posted September 1, 2014 Share Posted September 1, 2014 (edited) hi vekia, I am creating a custom order page, for that i have created a sepereate adminorder controller , in which part i have to change the admin order controller , is that with sql query of select statements . can tell me clearly.. ? Edited September 1, 2014 by karthiiiiiiiiiik (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