All things Shopify and commerce
Hi!
We have a few manual payment methods such as bank deposit, where the customer has to transfer the money to us and send a receipt before we start processing the order.
We would like to remind them this by including our bank details when choosing this payment method.
Our coding is extremely basic, can someone help?
Thanks in advance!
Hi
You could set it statically in that email but then all your customers would get bank details. Instead you are better off wrapping it around an if statement. Going by the docs https://shopify.dev/docs/themes/liquid/reference/objects/transaction#transaction-payment_details you probably want to try something like this:
{% for transaction in transactions %}
{% if transaction.gateway == "Bank Deposit" %}
<p>Bank details</p>
{% endif %}
{% endfor %}
Let me know if it doesn't work.
Regards
Tom
Hi Tom,
I am wondering if you could take a quick look at this if you don't mind 🙂
We have a product with two variants: A and B. When a customer chooses variant A they need to get the 'normal order confirmation', when a customer choose variant B they need to get 'order confirmation B'.
Here is the code we are using. I think it is correct but somehow it is not working.
----------------CODE BEGIN-------------------
{% for line in line_items %}
{% if line.variant.sku contains "Variant B.1" or line.variant.sku contains "Variant B.2" %}
<p>Dear {{ customer.first_name }},</p>
<p>Variant B text goes here</p>
{% endif %}
{% endfor %}
----------------CODE END-------------------
Thanks for your time!
Cheers!
hello @petit,
Did you ever find a solution for this? I'm in the same concern. Still getting confused.
Kindly please share your store URL so I will request access and take a look from my end.
Thank you
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024