avilet Posted November 18, 2016 Share Posted November 18, 2016 Hi prestashop guys, i changed my customer registration form littlebit. After i updated to 1.6.1.9 the modifications were reset. Do i have to re-do my modificaitions after each update, or is there some more wiser method to do this, so the modifications will stay unchanged after update next time? Thanks in advance Link to comment Share on other sites More sharing options...
Rhobur Posted November 20, 2016 Share Posted November 20, 2016 Yes, don't change php files directly, learn to use overrides. Link to comment Share on other sites More sharing options...
Kogkalidis Posted November 29, 2016 Share Posted November 29, 2016 You have to use the folder /overrides and then make a file with exactly the same name and same position of the "original" one. Inside the file you have to make a class with a bit different name than the "original" one.E.g for class Product.php <?php class Product extends ProductCore{ //Here you put your custom functions or overrides of existing ones } ?> 1 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