Jump to content

birthday


Recommended Posts

I have a webshop in toys, and i let people, who are making their account, fill in the birthday date of their child, and because many of my customers have small children or babies i need to raise the date to 2020 or more, cause au the moment the date only goes up to 2000 how can i do this?

also for people with more than 1 child, how can i add more birthday dates on the account page?

Link to comment
Share on other sites

You'll need to change line 780 of classes/Tools.php (in PrestaShop v1.3.1):

for ($i = date('Y') - 10; $i >= 1900; $i--)



By default, the years are 1900 to 10 years before the current year. To make it go to the current year, change it to:

for ($i = date('Y')/* - 10*/; $i >= 1900; $i--)

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...