Help editing the Order Printer App code

I am trying to make some changes to my template in the Order Printer App. There seems to be a lot of extra code that is very confusing. I would like to make 3 changes. 1. I would like the line items to be sorted in alphabetical order. 2. I would like for the order number to also appear in the footer before the social media icons. 3. I would like for the number of orders that the customer has placed to be on the page somewhere. We used to have it on the right hand side where the shipping profile and payment information is listed.

Hi Sylvia,

There’s a couple of options for customising the Order Printer templates, eg for sorting the output of an array you can use the sort filter. For adjusting the placement, you should be able to move elements into different positions and use CSS to customise how they’re displayed. To display a customers number of orders is should be as simple as adding the {{ customer.orders_count }} object.

There’s more info on customising the templates with Liquid in this doc: https://help.shopify.com/en/manual/fulfillment/managing-orders/printing-orders/shopify-order-printer/liquid-variables-and-filters-reference