Order Printer App - Is is possible to show total number of product items ordered?

Highlighted
Tourist
4 0 1

Hi there,

I'm not good at fiddling with code and have managed my way around a few bits thanks to stalking on this forum but I'm a bit stuck now. I'm using the Order Printer App for my invoices. What I'd like to know if its possible is to add a "total qauntity of product items" to the invoice? It would be really helpful to speed up my fulfilment and inputting info into my courier shipments site. I couldn't see any templates that did this in the liquid code list.

Thank you for your help!

1 Like
Highlighted
Shopify Staff
Shopify Staff
1 0 0

Hey there, 

You can display the total quantity of items on an order in an Order Printer template using the value item_count . You can also see the full list of usable variables on this Docs page.

Alternatively, there is also a really handy app called Order Printer Templates - one of their team members can design templates for you at $29 a pop!

Christy

0 Likes
Highlighted
Tourist
4 0 1

Hi,

Thanks! I've tried using that and it won't work - nothing appears on the order invoice, its just blank.

 

0 Likes
Highlighted
New Member
11 0 0

Hi Gillian, I think we can help you with your problem. We are running the Printout Designer app that allows you to create and design custom templates using our simple drag and drop interface, so no coding is required. You can create invoices, packing slips, labels and more. You can also print, download or save your invoices directly to Dropbox. I think that we can help you to streamline your document generation process and make it more efficient.

You can try out the app for free for 14 days: https://apps.shopify.com/printout-designer

All the best,
Tanel from Printout Designer     

0 Likes
Highlighted
Shopify Partner
9 0 0

You could try PrintHero https://apps.shopify.com/printhero which generates professional invoices and packing slip. You may also conatct them if you want to have custom field.

0 Likes
Highlighted
Tourist
3 0 0

I know this was a while ago but it took some digging for me to find the answer on another message, so posting it here too. 

Quoted from user :

Put this somewhere on the top of the template:

{% assign totalProductsOrdered = 0 %}
{% for line_item in line_items %}
    {% assign totalProductsOrdered = totalProductsOrdered | plus: line_item.quantity %}
{% endfor %}

And then you can access the count anywhere under the snippet by using:

{{ totalProductsOrdered }}  

 Original post:

https://community.shopify.com/c/Shopify-Design/Order-Printer-I-simply-need-a-sum-of-Products-Ordered...

0 Likes