I've created a snippet that is "Bank Details", and I want it to only appear if the Payment Method chosen is Bank Transfer.
I've tried messing around with the IF function and the p.payment and p.payment_id variables, but I don't know how to get it to work.
Also, I do know the easiest method is to include the "payment instruction" variable. But the Payment Instructions also appears on the storefront, and I'd prefer to keep my bank details private until it's a confirmed order.
Does anyone know how to create rules or conditions for showing certain snippets or variables?
I've created a snippet that is "Bank Details", and I want it to only appear if the Payment Method chosen is Bank Transfer.
I've tried messing around with the IF function and the p.payment and p.payment_id variables, but I don't know how to get it to work.
Also, I do know the easiest method is to include the "payment instruction" variable. But the Payment Instructions also appears on the storefront, and I'd prefer to keep my bank details private until it's a confirmed order.
Does anyone know how to create rules or conditions for showing certain snippets or variables?
Hello!
{% if p.payment_id == ID %}
{{ snippet("bank_details") }}
{% endif %}
Did you try this?
What about "payment instruction" variable, you can check order status and display variable for the certain one.