Viewing 5 replies - 1 through 5 (of 5 total)
  • I think this is only an issue when NOT already logged into the WordPress Dashboard. Correct ?

    Assuming I’m correct, logging into the WordPress Dashboard before clicking the email link should resolve the issue.

    To prevent any confusion, I’m not iThemes.

    • This reply was modified 5 years, 10 months ago by nlpro.
    Thread Starter cvanbemmel

    (@cvanbemmel)

    I think this is only an issue when NOT already logged into the WordPress Dashboard. Correct ?

    That’s correct indeed. However it would be easier if I could confirm a booking directly from the email without the separate login first ??

    Yes, that would definately be more practical. I just mentioned the option as a possible workaround.

    I don’t think there is any solution for this in the iTSec plugin.

    But I’ve looked into the Salon Booking System email template used to generate the email … (salon-booking-system/views/mail/_summary_content.php)

    It seems the link is being hard coded (twice!):

    href="<?php echo admin_url() ?>/post.php?post=<?php echo $booking->getId() ?>&action=edit"

    Do you have 2 failing links in the email ?

    First link with text:

    Click here to approve
    [Firstname] [Lastname]
    booking request.

    (Where [Firstname] should be substituted with the customer first name and [Lastname] with the customer last name).

    Second link with text:

    View this booking into administration.

    If running WordPress in Dutch language the above link texts will probably be translated into Dutch.

    Anyway because the Salon Booking System plugin is hard coding the links in the email template these links cannot be filtered.

    Basically the Salon Booking System plugin should make the email links filterable. I know that would make it work because I solved this issue for another plugin ??

    A temporary solution could be to customize the email template. A short piece of PHP code will then be added to the email template.

    If the iTSec plugin is active and the Hide Backend module is enabled it simply adds the required itsec-hb-token=[secret slug] url parameter to the email links (where [secret slug] will automatically be substituted with the secret slug you have chosen/set in the iTSec plugin).

    The disadvantage of this “solution” is that the customization will get lost when the
    Salon Booking System plugin is updated.

    So the solution needs to be reimplemented after any update to the Salon Booking System plugin.

    But it does make the email link(s) work properly ??

    Thread Starter cvanbemmel

    (@cvanbemmel)

    Do you have 2 failing links in the email ?

    Exactly! Both are failing when not logged in.

    So the solution needs to be reimplemented after any update to the Salon Booking System plugin.

    Thanks! For the time being it is a nice ‘solution’. Will ask the author of Salon to incorporate a real solution ??

    Because of our holidays I will not try it before next Monday or Tuesday, but I will keep you posted.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Salon booking system together with hide backend option’ is closed to new replies.