How to add cancel order to order.liquid?

New Member
3 0 0

Hi everyone,

I am currently working on to add 'cancel order' functionality to order.liquid.

I want to give customers more options to interact with their order(Ex: reorder, leave feedback, cancel, return...).

So far I was able to add reorder as such:

{% for line_item in order.line_items %}
              <tr>
                <td><a href="/cart/{{ line_item.variant_id }}:{{ line_item.quantity }}">Reorder Item</a></td>
              </tr>
{%endfor %}
I just need some help with 'cancel order'. If anyone could point me in right direction, that would be really helpful.
Thanks
0 Likes