Hey,
I’m trying to add a URL metafield to customer account page with no luck. The goal is to allow customers to re-download their digital products from the account page.
Here is the code I added to the account.liquid page:
{% for line_item in order.line_items %}> {{ line_item.title | link_to: product.metafields.my_fields.download | url }}
{% endfor %}>
The above successfully lists the purchased products on the account page with a link, but when you click on the product link, nothing happens (it just reloads the page).
I am not sure what I am missing? I assume I’m missing some code to callup the metafield data, but not sure how to go about it.
Any help would be greatly appreciated.
Thank you,