Jump to content

Birthdaypresent.php configuration


Maxxean

Recommended Posts

Hello,Bonjour
Sorry, i don't speak very well english.
Nobody on the french forum can answer to me.
On the birthdaypresent.php module i have this for a 1 year validity.
$voucher->date_from = date('Y-m-d');
$voucher->date_to = (date('y')+1).date('-m-d');
I would like to change, i want an 1 month validity, or 30 days.What should I change ?
Can you answer to me, do you have an answer ?
Thank you very much

Link to comment
Share on other sites

I'm by no means a hard-core coder, but I'd start by trying out different combinations:

what you have now:
$voucher->date_to = (date(‘y’)+1).date(’-m-d’);

try:

$voucher->date_to = (date(‘m’)+1).date;
$voucher->date_to = (date(‘d’)+30).date;

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