Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Ashanna

    (@morki)

    Hello,

    Are you sure you selected five days and not four ? Because if, for example, you book from September 24th to September 28th, it will look like you selected five days on the calendar, but it only makes 96 hours (four days).

    It works on my installation…

    Thread Starter Epaxido

    (@epaxido)

    ok, I understand that this is not an error, but for my needs if in the order will appear the booking from 24 to 28 I have to calculate also the first day of the booking, therefore 24 (1) 25 (2) 26 (3) 27 (4) 28 (5).

    What should I change in the files to calculate the first day of the booking (if possible without losing the changes to the next update of the plugin)

    Thanks in advance

    Thread Starter Epaxido

    (@epaxido)

    up

    Plugin Author Ashanna

    (@morki)

    Hello,

    In the datepick.js file, add “+ 86400000” at line 42. It will add a day in the calcultation. Be careful, the plugin uses the minified version of the js files, you will need to update that or to use the normal files (this is set in wc-ebs-plugin.php file, line 38 to 43).

    It will be erased if you update the plugin though.

    Thread Starter Epaxido

    (@epaxido)

    Morki excuse me if I ask you again, but since the last update you’ve changed several files and now I don’t know where to change the days calculation.

    Plugin Author Ashanna

    (@morki)

    Ok, if you have some time, I’ll release an update with the possibility to set the price depending on the number of days or the number of nights. I’ll do this during the day ??

    Plugin Author Ashanna

    (@morki)

    It should be fine, download the latest version and go to the setting page to set “Days” in the Calculation mode ??

    Thread Starter Epaxido

    (@epaxido)

    Perfect, it will be essential for rental purpose.

    Thank you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Error in calculation of the final price’ is closed to new replies.