WP Rentals Help WP Rentals Help

  • Client Support
  • Video Tutorials
  • WpRentals
  • WpEstate
  • API
Home / Technical how to / Where the Early Bird fee is calculated? Where fees are calculated in Theme code ?

Where the Early Bird fee is calculated? Where fees are calculated in Theme code ?

6181 views

You should look in help_functions.php at function wpestate_booking_price (around line 557).

We use this function to calculate all the fees, discounts etc in 90% of the cases.

The early bird discounts are calculated around line 834

$early_bird_discount = wpestate_early_bird($property_id,$early_bird_percent,$early_bird_days,$from_date_discount,$total_price);

Please note that due to theme update the line numbers might change, but the code will remain the same.

Early bird discount is set in front end submit – edit property

Early Bird Discount – in % from the price per night.

Live demo https://demo1.wprentals.org/properties/2-bedrooms-condo/

You can set discount in % and the number of days in advance for discount to apply.

 

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