Feature request: Deposit of two nights

  • This topic has 1 reply, 1 voice, and was last updated 9 months, 2 weeks ago by Make Customers AS – Mats Holmvik.
Viewing 2 posts - 1 through 2 (of 2 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.

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