Rules don't work after update Status:

Home Forums Booking System PRO (WordPress Plugin) Rules don't work after update

This topic is: resolved

This topic contains 2 replies, has 2 voices, and was last updated by  Sabina 1 year, 6 months ago.

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

  • Hello,

    I have updated the plugin from 2.1.1 to 2.1.3 and rules don’t work now. I use two simple rules in two calendars (minimum of 3 hours and minimum of 4 hours), and they are assigned correctly. Extras, forms, taxs, discounts… work ok.

    Help me please.


    I have resolved the problem. There is a bug at the last version, in “assets/js/rules/frontend-rules.js” file, at this lines:

    return dataRules[‘id’] !== ‘0’
    && (!dataHours[‘enabled’] && dataDays[‘multipleSelect’]
    || dataHours[‘enabled’] && dataDays[‘multipleSelect’]) ? parseFloat(dataRules[‘rule’][‘time_lapse_min’]):0;

    The correct lines are:

    return dataRules[‘id’] !== ‘0’
    && ((!dataHours[‘enabled’] && dataDays[‘multipleSelect’])
    || (dataHours[‘enabled’] && dataHours[‘multipleSelect’])) ? parseFloat(dataRules[‘rule’][‘time_lapse_min’]):0;

    • This reply was modified 1 year, 6 months ago by  lorena.

    Sabina Support Team #64480


    The bug will be fixed in the next update.
    Thank you for the feedback.

    Best Regards,
    Support Team

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

The topic Rules don't work after update is closed to new replies.