Email notification -- send after 1.5 year

I see it it possible top set email notification for up to 1 year after. But how can I make it 1.5 year or 2 years?

1

Comments

5 comments
Date Votes
  • Official comment

    Hello,

    Thank you for your message.

    Right now, the maximum period is 1 year.

    You can leave your request here: https://ideas.booking-wp-plugin.com/boards/feature-requests and if it gets enough votes, it might be implemented in the future release.

    Let us know if you have any other questions. 

  • Ok, can you please help me with pointing which file I should look at to see the options in the code? I might be able to just copy and change what I need.

    0
  • Hello,

    Thank you for your message.

    You can change it in wp-content/plugins/bookly-responsive-appointment-booking-tool/backend/components/dialogs/sms/templates/_settings.php:80

    Let us know if you have any other questions.

    0
  • Thanks!

    Just one last question :)

    This will do the job for 1.5 year and 2 years after, right?

                                <option value='13140'>1.5 <?php esc_html_e( 'year', 'bookly' ) ?>&nbsp;<?php esc_html_e( 'after', 'bookly' ) ?></option>
                                <option value='17520'>2 <?php esc_html_e( 'years', 'bookly' ) ?>&nbsp;<?php esc_html_e( 'after', 'bookly' ) ?></option>

     

    Or should I actually edit this part:

                                <?php foreach ( array_merge( range( 1, 24 ), range( 48, 336, 24 ), array( 504, 672 ) ) as $hour ) : ?>
                                    <option value="<?php echo esc_attr( $hour ) ?>"><?php echo esc_html( Utils\DateTime::secondsToInterval( $hour * HOUR_IN_SECONDS ) ) ?></option>
                                <?php endforeach ?>

     

    Thanks :)

    0
  • Hello,

    Thank you for your message.

    Please, add this code after line 83:

    <option value="7884000">1.5 <?php esc_html_e( 'years', 'bookly' ) ?></option>

    Let us know if it works for you. 

    0

Please sign in to leave a comment.

Didn't find what you were looking for?

New post