customer.orders not returning all orders.

New Member
3 0 0

I was able to make some modifications to the script, remove the ul/li part and was able to get the orders in the table as expected. But, I now have like 50 tables repeating themselves. Any suggestions? @Boots 




Shopify Partner
22 0 29

Sorry, the code I posted was not a "real world" example.  It was just to show that you could return more than 20 results.  Working it into your template is beyond the scope of this topic, but you only need to loop through the table rows of your table, not the whole table.  Something like this:

{% paginate customer.orders by 250 %}
			<th>Order #</th>
	{% for order in customer.orders %}
			<td><a href="{{ order.customer_url }}">{{ }}</a></td>
			<td>{{ order.created_at | date: "%m/%d/%Y" }}</td>
			<td>{{ order.financial_status_label }} / {{ order.fulfillment_status_label }}</td>
			<td>{{ order.total_price | money }}</td>
	{% endfor %}
{% endpaginate %}


Hopefully that will get you where you need to go.