Hello everybody
in the file participate.php of my hook folder I have a code to send an email to the address entered in the "email_address" field every time a participant adds a record in the table "participated".
I would like to add a condition so that the sending of the e-mail works only if no more than 15 days have passed from the date of the event (set in the "event_date" field of the "participate" table).
Moreover I would also like that after 15 days from the date of the event the check box field "booking_active" passes from checked to uncheked (I think from 1 to 0).
Can anyone help me with the code?
Thanks!
Fabiano