• Resolved wiesiek01

    (@wiesiek01)


    Hi,

    There is in error in Discounts script in version 2.2.0.
    When selecting number of days qualifying for discount, the price and dates are not updated during the reservation.

    To fix this I changed the below line in file frontend-discounts.js

    Line 247 OLD:
    HTML.push(‘/’+(dataHours[‘enabled’] ? DOPBSPFrontEnd(ID, ‘discounts’, ‘byHour’):DOPBSPFrontEnd(ID, ‘discounts’, ‘byDay’)));

    Line 247 NEW:
    HTML.push(‘/’+(dataHours[‘enabled’] ? DOPBSPFrontEnd.text(ID, ‘discounts’, ‘byHour’):DOPBSPFrontEnd.text(ID, ‘discounts’, ‘byDay’)));

    https://ww.wp.xz.cn/plugins/booking-system/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author DOTonPAPER

    (@dotonpaper)

    Hello,

    Please send your Discount settings to check this issue.

    Thank you.

    Thread Starter wiesiek01

    (@wiesiek01)

    It doesn’t really matter, it’s a bug in the code.
    I just posted it to help others and help developers fix it for the next release. You can just forward it to them.

    Thanks

    Plugin Author DOTonPAPER

    (@dotonpaper)

    It does matter.
    Please send the discount settings.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error in Discounts script’ is closed to new replies.