Hello, I am not a programmer but I have tried to edit the order confirmation template so that instructions are shown in the event that the customer purchases a service.
The code I have made works in several cases, but in some it doesn’t.
Ex:
It works when they buy service1
It works when they buy service2
It works when they buy other products that are not services
It works when they buy service1 or service2 if this is the first item
It does not work when a product appears in the shopping list above a service1 or service2 and shows else even though you have purchased the services.
{% for line in subtotal_line_items %}{% if line.product.title == 'service1' or line.product.title == 'service2' %}
{{ email_instructions}}
{% else %}
{{ email_body }}
{% endif %}{% break %}
{% endfor %}
Thanks in advance.