WP Rentals Help WP Rentals Help

  • Client Support
  • Video Tutorials
  • WpRentals
  • WpEstate
  • API
Home / Technical how to / Technical: How to change number of days before payment due (Send Reminder Email)

Technical: How to change number of days before payment due (Send Reminder Email)

7993 views

The cron job responsible for sending the automatic “Send reminder email!” is named:

setup_wpestate_full_invoice_payment_reminder

What This Cron Does

  • It runs daily.

  • It sends 1 automatic email to users with confirmed bookings that are scheduled to start 3 days from the current day.

  • There is a maximum of 3 reminder emails allowed per booking:

    • 1 automatic email (via cron)

    • 2 manual emails (sent from the admin panel)

Cron Configuration

The cron details are set in the file: wprentals/libs/events.php

To change the number of days before check-in when the reminder is sent:
In the wpestate_full_invoice_payment_reminder_function, locate the line with this formula and change 3 to your preferred number of days:

To change the maximum number of reminder emails allowed, adjust the condition:

if ($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 the “My Bookings” dashboard page, bookings display a payment deadline, which by default is the start date of the booking.

To show an earlier date (e.g., 2 days before check-in):

Go to 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

Technical how to

Related Articles

  • How to change the background color and logo for admin login page
  • How to redirect Instant Booking Button to WooComemrce Checkout Page
  • Tehnical: Redirect to Page Not found/ White screen on listing submission or edit
  • Technical – Invoices from My Bookings

HELP CATEGORIES

  • 61. General
  • 102. Installation & Basic Setup
  • 93. Installation FAQ
  • 404. How Booking Works
  • 145. User dashboard pages
  • 20Advanced Search Options
  • 3Blog Post
  • 9Custom Page Templates
  • 18Elementor Compatibility
  • 13Email Notifications
  • 19FAQ
  • 10Menu Options
  • 26Multi-Languages - 3rd party
  • 9Owner
  • 25Property / Listing
  • 21Shortcodes
  • 11Submit Form
  • 4Supported Maps
  • 93Technical how to
  • 5Third Party plugins
  • 3Translation
  • 13Widgets
  • 2WooCommerce Payments
  • 13WP Rentals Payment
  • 77WP Rentals Theme Options

Join Us On

Powered by WP Estate - All Rights Reserved
  • Client Support
  • Video Tutorials
  • WpRentals
  • WpEstate
  • API