crazydev
crazydev

Reputation: 1

How can I put condition in Bookly WordPress email notification template (bookly provided documentation is not sufficient)?

I'm trying to modify email notification for Bookly WordPress plugin. Below is given official example:

{#if payment_status} Here is if block data {/if}

I want to modify this code on the base of payment_status value. If it is pending or completed. I have tried many ways with no luck. One example is given below which didn't worked as well.

{#if payment_status === 'Pending'} Here is if block data {/if}

Thanks,

Upvotes: 0

Views: 204

Answers (1)

crazydev
crazydev

Reputation: 1

Thanks to @CBroe for suggestion, and it worked like a charm. Working code is as given below:

{#if payment_status == Pending} Here is if block data {/if}

Upvotes: 0

Related Questions