Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking Feature request: Deposit of two nights
- This topic has 3 replies, 3 voices, and was last updated 2 years, 7 months ago by J. Davis.
- AuthorPosts
- January 4, 2021 at 11:04 am #1054477Make Customers AS – Mats HolmvikParticipant
Hi!
I want to be able to set the option to have deposits for two nights price.
Example 1: Customer rent a cabin for 7 days, I set deposit to be 2 days, different seasons have different prices. So it calculates this.
Example 2: Customer rents 2 nights, still get 2 nights deposit.
(Ps. my bookingrules states 2 night minimum stay)
I am currently trying to modify this with PHP in the plugin, but still in discovery mode both in Motopress Hotelbooking plugin and in Woocommerce gateway. If someone know how to bypass this please put me in the right direction.
January 4, 2021 at 2:11 pm #1054556Make Customers AS – Mats HolmvikParticipantI did find a place to override the deposit of percent:
In a file called booking.php in Hotel-Booking->includes->entities
In function: public function calcDepositAmount($total = null)
Got the total price, divided by days of stay, x2.
Not the best, but a way to fix it temporarily.
April 7, 2022 at 8:37 pm #1286632g wrParticipantsame thing for one night:
$deposit = $total / (DateUtils::calcNightsSinceToday($this->checkOutDate) - DateUtils::calcNightsSinceToday($this->checkInDate));
April 10, 2022 at 5:44 am #1287422J. DavisKeymasterHi,
Thanks for contacting us and for sorting this out on your own.
Note: we do not offer customization orders at the moment.best regards,
J. Davis - AuthorPosts
- You must be logged in to reply to this topic.