Hardik Patel Posted February 16, 2018 Share Posted February 16, 2018 (edited) How to override convertPrice method from classes/Tools.php by creating own method in module Edited February 16, 2018 by Hardik Patel (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted February 16, 2018 Share Posted February 16, 2018 Create a new file in override/classes and call it tools.php, then simply call the class as follows class Tools extends ToolCore And add the same method inside Link to comment Share on other sites More sharing options...
joseantgv Posted February 16, 2018 Share Posted February 16, 2018 http://doc.prestashop.com/display/PS16/Overriding+default+behaviors Link to comment Share on other sites More sharing options...
Hardik Patel Posted February 16, 2018 Author Share Posted February 16, 2018 Hi, NemoPS First of all thanks for your reply. I want to do method overriding in my custom module such way that can convert all product price simultaneously. Link to comment Share on other sites More sharing options...
NemoPS Posted February 16, 2018 Share Posted February 16, 2018 The only way to do it from a module is by having an override/classes/Tools.php override file in your own module's folder, prior to installing. It will be moved over to the main overrides as soon as you install 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