Title: Total Items Ordered
Last modified: May 17, 2019

---

# Total Items Ordered

 *  Resolved [nctm](https://wordpress.org/support/users/noidcustommobile/)
 * (@noidcustommobile)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/total-items-ordered/)
 * Total Items Ordered does not show on invoices. This need to show similar to total
   $ amount on invoice

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/total-items-ordered/#post-11551158)
 * Hi! With the [Premium Templates extension](https://wpovernight.com/downloads/woocommerce-pdf-invoices-packing-slips-premium-templates/)
   you can do this by adding a row in the totals with the customizer:
 * Without the premium templates you will need to create a custom template and loop
   through the order items yourself to get the total quantity:
 *     ```
       <?php
       $total_qty = 0;
       foreach ($this->order->get_items() as $item_id => $item) {
       	$total_qty += $item->get_quantity();
       }
       echo $total_qty;
       ?>
       ```
   
 *  Thread Starter [nctm](https://wordpress.org/support/users/noidcustommobile/)
 * (@noidcustommobile)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/total-items-ordered/#post-11607786)
 * This did not work.
 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/total-items-ordered/#post-11607874)
 * Where did you place this code? Have you also selected the custom template in 
   the plugin settings?
 *  Thread Starter [nctm](https://wordpress.org/support/users/noidcustommobile/)
 * (@noidcustommobile)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/total-items-ordered/#post-11607932)
 * Theme editor and code snippet. Got an error.
 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/total-items-ordered/#post-11608001)
 * That explains – this was custom code to include in a custom template:
    [Creating a custom PDF template](https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/creating-a-custom-pdf-template/)

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Total Items Ordered’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices-packing-slips/assets/icon-256x256.
   png?rev=2189942)
 * [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/)

## Tags

 * [order quantity](https://wordpress.org/support/topic-tag/order-quantity/)
 * [total quantity](https://wordpress.org/support/topic-tag/total-quantity/)

 * 5 replies
 * 2 participants
 * Last reply from: [Ewout](https://wordpress.org/support/users/pomegranate/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/total-items-ordered/#post-11608001)
 * Status: resolved