How to fix code in Shopify Messaging?

Hi Team! I need help with the Shopify Messaging template on my store. My goal is to display all the line item of that order on messaging campaign I am sending to my customers when their order is fulfilled. However, it is not displaying the line item.

Here’s the current code of my messaging campaign:

Your Items:
    {% for item in order.line_items %}
  • {{ item.title }} {% if item.variant.title != 'Default Title' %} ({{ item.variant.title }})

    And this is how it looks like:

    Anything that needs to be corrected on the code? Thanks in advance!

There is no predefined order variable.

Look at https://help.shopify.com/en/manual/promoting-marketing/create-marketing/shopify-messaging/email/create-email/custom-liquid#supported-variables

Maybe customer.last_order would work?

No, it just gets the items of last order. Not for each order :((

Well, there is also customer.orders
Need to know your setup a bit better t get better ideas.

I think its about “Returns all of the orders that the customer has placed” as desc Shopify showed. Flow is i create messaging campaign in Messaging app. After that, i set up flow in Flow app and add that messaging campaign.

I think flow is right but Shopify don’t have supported variables abt the specific order items