A while ago, I had a problem regarding the dates where it wasn’t possible to book the same start and end date. For example, I wanted to select from the 28th to the 28th, but it wasn’t feasible. To resolve this, I created my own plugin that uses JavaScript and PHP to modify the fields of the search and booking form, ensuring that the booking and search work correctly.
However, now I’ve noticed something. If you use the booking form on this page:
https://timiboat.com/listing/marsea-1/?boatId=2496
when you select the dates, it calculates 15% of the amount I should pay.
You can verify that the boat costs €160.00, but after the 21st, it costs €180.00. Now, let me explain the issue:
If you try to select two dates, such as from July 27th to July 28th, you can see that it calculates €54.00, which is 180 * 15/100 = 27 * 2 = 54. So that’s correct.
However, if I try to select just one day, for example, from July 27th to July 27th, you can see that it no longer calculates €27.00, but rather €24.00, which is 15% of €160.00 instead of €180.00. Meanwhile, the selected date range from the 27th to the 27th has a price of €180.00.