The cron that checks the event for the automatic email “Send reminder email!” has the name:
setup_wpestate_full_invoice_payment_reminder
The cron runs daily and sends 1 automatic email to users who have a confirmed booking that starts 3 days before the current day.
There is a maximum limit of 3 emails that can be sent (1 automatic and 2 manual)
The cron details are set in the file:
wprentals/libs/events.php
The time (3 days before check in) is edited from below formula (change 3 to your value) in function wpestate_full_invoice_payment_reminder_function
To change the number of emails that are allowed to be sent (3 is maxed right now) change the “3” value in code:
sent_no<3
How to disable the cron
Comment this code from libs/events.php
How to change the number of days for “pay until”
In “My booking” dashboard page we have a list of bookings. In there a booking may have a message like the one in the image below. The date until the payment must be done is the day that the booking starts.
If you want to show an earlier date you could do that by changing the dashboard\templates\unit-templates\balance_display.php file
In there you have $booking_from_date that holds the actual date.
So you could try to do something like
$date = new DateTime($booking_from_date ); $date->modify('-2 days'); //Use the date in 'YYYY-MM-DD' format $new_date = $date->format('Y-m-d');
and use
$new_date instead of $booking_from_date in line 5 of that file