Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
I'm striking out in trying to figure out how to display an order cart note in a flow "fulfillment ready" > "send email" action. The != blank condition works in regular email notifications templates. How can this be done in flow?
I've tried all of the following and they are all returning true (printing "Note: " when there is no cart note on the order):
{%- if fulfillmentOrder.order.note != null -%}Note: {%- endif -%} {%- if fulfillmentOrder.order.note != nil -%}Note: {%- endif -%} {%- if fulfillmentOrder.order.note != blank -%}Note: {%- endif -%} {%- if fulfillmentOrder.order.note -%}Note: {%- endif -%} {%- if fulfillmentOrder.order.note != "nil" -%}Note: {%- endif -%} {%- if fulfillmentOrder.order.note != 'null' -%}Note: {%- endif -%} {%- if fulfillmentOrder.order.note != empty -%}Note: {%- endif -%} {%- unless fulfillmentOrder.order.note == empty -%}Note: {%- endunless -%} {%- unless fulfillmentOrder.order.note == blank -%}Note: {%- endunless -%} {%- unless fulfillmentOrder.order.note == nil -%}Note: {%- endunless -%} {%- unless fulfillmentOrder.order.note == false -%}Note: {%- endunless -%} {%- unless fulfillmentOrder.order.note == 0 -%}Note: {%- endunless -%} {%- if fulfillmentOrder.order.note == true -%}Note: {%- endif -%} {%- if fulfillmentOrder.order.note == false -%}No order note.{%- endif -%} {% for fulfillments_item in fulfillmentOrder.fulfillments %}{%if fulfillments_item.order.note != blank %}Note: {{fulfillments_item.order.note}}{% endif %}{% endfor %} {% for fulfillmentOrders_item in fulfillmentOrder.order.fulfillmentOrders %}{%if fulfillmentOrders_item.order.note != blank %}Note: {{fulfillmentOrders_item.order.note}}{% endif %}{% endfor %}
{%- if fulfillmentOrder.order.note != blank -%}Note: {%- endif -%}
This should work, although obviously you need to add the {{ fulfililmentOrder.order.note }} to output the note there
User | RANK |
---|---|
3 | |
2 | |
1 | |
1 | |
1 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023