Skip to content

Instantly share code, notes, and snippets.

@ADTC
ADTC / reorder-button.html
Last active September 29, 2023 15:04 — forked from magician11/reorder-button.html
How to create a reorder button in Shopify's Liquid
{% for order in customer.orders %}
...
{% liquid
assign reorder_url = ''
for line_item in order.line_items
assign reorder_url = reorder_url | append: line_item.variant_id | append: ':' | append: line_item.quantity | append: ','
endfor
-%}