Feature request: Deposit of two nights

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1054477
    Make Customers AS – Mats Holmvik
    Participant

    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.

    #1054556
    Make Customers AS – Mats Holmvik
    Participant

    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.

    #1286632
    g wr
    Participant

    same thing for one night:

    $deposit = $total / (DateUtils::calcNightsSinceToday($this->checkOutDate) - DateUtils::calcNightsSinceToday($this->checkInDate));

    #1287422
    J. Davis
    Keymaster

    Hi,

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.