Retrieving Cart Line Properties in Abandoned Cart

Hi,

We are selling Kitchen Hoods in our store. Each product have 30-50 configurations which are managed by custom app.

Now, we are sending these configurations as line items in add-to-cart. Everything is in sync.

While doing, Abandoned Checkout these lines are working as expected. But unfortunately these lines are not available in Abandoned Cart email feature - we tried custom liquid in mail template.

Here’s the code we using for Abandoned Checkout

{% for line in abandoned_checkout.line_items %}
<tr>
    <td style="padding:20px 0;border-bottom:1px solid #e5e5e5;">
      <table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td width="140" valign="top" style="padding-right:20px;">
            {% if line.properties._preview_cdn %}
            <img src="{{ line.properties._preview_cdn }}" width="140" alt="" style="display:block;width:140px;max-width:100%;height:auto;border:0;">
            {% endif %}
          </td>
          <td valign="top" style="font-size:15px;line-height:22px;color:#222222;">
            <div style="font-size:16px;font-weight:bold;margin:0 0 6px;">{{ line.title | remove: ' - Default Title' }}</div>
            <div style="color:#555555;margin:0 0 8px;">Qty: {{ line.quantity }}</div>
            {% for p in line.properties %}
              {% if p[0] != '_preview_url' and p[0] != '_preview_cdn' and p[0] != '_expivi_sku_keys' and p[0] != '_unit_price' and p[0] != '_unit_discount' and p[0] != '_expivi_configuration' and p[0] != '_expivi_product_id' %}
              <div style="font-size:13px;line-height:19px;color:#555555;"><strong>{{ p[0] }}:</strong> {{ p[1] }}</div>
              {% endif %}
            {% endfor %}
          </td>
        </tr>
      </table>
    </td>
  </tr>
{% endfor %}

How can we achieve this in Abandoned Cart?

Found this query: abandonment - GraphQL Admin

But it requires ID which we don’t know how to fetch.

The abandoned cart automation doesn’t expose line item properties in Liquid. In that automation, the available cart data is under abandoned_visit.products_added_to_cart, and each item only returns title, image_url, variant_title, and quantity.

I can submit a feature request on your behalf to make line item properties available in that automation.

In the meantime, you can display line item properties using abandoned_checkout.line_items in the abandoned checkout automation.

The abandonment query won’t expose custom line item properties for an abandoned cart either.

In a Shopify Flow workflow using the Customer left online store without making a purchase trigger, a custom app action can declare an abandonment_reference. Shopify Flow then passes the abandonment_id to that action.