- This topic has 3 replies, 3 voices, and was last updated 1 year, 7 months ago by J. Davis.
- January 4, 2021 at 11:04 am #1054477Make Customers AS – Mats HolmvikParticipant
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 HolmvikParticipant
I 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 wrParticipant
same thing for one night:
$deposit = $total / (DateUtils::calcNightsSinceToday($this->checkOutDate) - DateUtils::calcNightsSinceToday($this->checkInDate));April 10, 2022 at 5:44 am #1287422J. DavisKeymaster
Thanks for contacting us and for sorting this out on your own.
Note: we do not offer customization orders at the moment.
- You must be logged in to reply to this topic.