Jump to content

Change code so it wont reset after prestashop update?


avilet

Recommended Posts

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

  • 2 weeks later...

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
}

?>
  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...