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
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024