We are currently creating a custom abandoned cart for our store using HTML and it is almost finished but we are having some difficulties pulling in data for a couple of line item properties. We need to add the line item compare at price (line.variant.compare_at_price) and the line url (line.url) but for some reason they are not working. We have already successfully added the line title (line.title) and line price (line.price) so I assume we have just missed a “capture” or “assign” somewhere. Please see our code below. Any help would be greatly appreciated.
{% for line in subtotal_line_items %}
{% if line.product.title %}
{% assign line_title = line.product.title %}
{% else %}
{% assign line_title = line.title %}
{% endif %}
{% if line.quantity < line.quantity %}
{% capture line_display %} {{ line.quantity }} of {{ line.quantity }} {% endcapture %}
{% else %}
{% assign line_display = line.quantity %}
{% endif %}
<table>
<table>
<table>
<tr>
<td>
</td>
</tr>
</table>
<table>
<tr>
<td>
{{ line_title }}
</td>
</tr>
</table>
<table>
<tr>
<td>
**{{ line.price | money }}** {{ line.compare_at_price | money }}
</td>
</tr>
</table>
<table>
<tr>
<td>
[View product](https://willos.co.uk/{{ line.url
}})
</td>
</tr>
</table>
</table>
</table>
<table>
<table>
<table>
<tr>
<td>
</td>
</tr>
</table>
<table>
<tr>
<td>
{{ line_title }}
</td>
</tr>
</table>
<table>
<tr>
<td>
**{{ line.price | money }}** {{ line.compare_at_price | money }}
</td>
</tr>
</table>
<table>
<tr>
<td>
[View product](https://willos.co.uk/{{ line.url
}})
</td>
</tr>
</table>
</table>
</table>
{% endfor %}
