I need to send a order confiramtion with different instructions based on the vendor.
I am trying to use
line.product.vendor
How do I write this in liquid and check for vendor name?
My vendors are called “Texas” and “California”.
I need to send a order confiramtion with different instructions based on the vendor.
I am trying to use
line.product.vendor
How do I write this in liquid and check for vendor name?
My vendors are called “Texas” and “California”.
Hello @themule ,
{% if line.product.vendor == 'Texas' %}
Please follow the instructions specific to the Texas vendor.
{% elsif line.product.vendor == 'California' %}
Please follow the instructions specific to the California vendor.
{% else %}
Please follow the general instructions for this order.
{% endif %}
Replace the comments with your specific instructions for each vendor. This code will check the vendor name for each product in the order and display the corresponding instructions accordingly.
Thanks!
And I can include weblinks in this as well right? or does it have to be defined somewhere else?