WP Rentals Help WP Rentals Help

  • Client Support
  • Video Tutorials
  • WpRentals
  • WpEstate
  • API
Home / Technical how to / Formulas used in WpRentals Invoices

Formulas used in WpRentals Invoices

7831 views

Formulas used:

total = (inter price + expenses + manual_expense ) – early bird + city fee+ cleaning fee + sec deposit

$early_bird_discount – doesn’t include extra guest, security, city fee, cleaning fee

$you_earn = $total_price – $security_deposit – floatval($city_fee) – floatval($cleaning_fee) – $service_fee;

$taxes = round ( $you_earn * $taxes_value/100,2);

$price_for_service_fee = $total_price – $security_deposit – floatval($city_fee) – floatval($cleaning_fee);

city fee % Doesn’t consider price for extra guest

city fee % Doesn’t consider extra expenses (added when owner issues invoice)

100% deposit includes automatically expenses (city fee / cleaning fee) – even if the option is set to NO


How to add a new item in booking formulas

There are many places where you need to do the changes and for that reason it’s difficult to give step by step instructions.
​
Start on wprentals-core plugin – file post-types/invoices.php – you have there function wpestate_super_invoice_details and wpestate_invoice_details functions that are used to create and display invoices.
Also a very important function is wpestate_booking_price in wprentals theme folder – file libs/help_functions.php
In this function we do all the math. So you can start by looking into this.
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