I am looking to edit my order confirmation and have a specific block of text display if the item ordered is for a specific sku. We have one product with two different variants and I am trying to add some text for one of them specifically.
{% if current_variant.sku == 'THE_SKU_IS_HERE %}> text text text> > {% endif %}
For some reason, it’s not working. Any suggestions as to what I am doing wrong here?
Also– just realized you’re on the order confirmation page. The example to lookup the product assumes you have a single product already defined. You might need to dig through the order:
{% for product in order.products %}
{% for variant in product.variants %}
{% if variant.sku == 'G2-SN-102021' %}
text text text
{% endif %}
{% endfor %}
{% endfor %}