WordPress.org

Support

Support » Plugins and Hacks » WooCommerce Print Invoice & Delivery Note » How can I add the total Qty amount for all products on Invoice?

How can I add the total Qty amount for all products on Invoice?

  • I successfully added the total amount of products purchased to my new order email, I need this on the invoice print as well. This is the code I used for the woocommerce new order email….

    Total Qty of Items Purchased

    <?php $qty = 0;
    foreach ( $order->get_items() as $item )
    $qty += $item[‘qty’];
    echo $qty; ?>

    But I cant use it on the woocommerce_delivery_notes php it gives me an error. Any ideas?

    Just to be clear…

    Product > Quantity > $$Total
    product1 10 $10
    product2 5 $ 5

    qty total 15 <——this is what I need!
    sub-total $15
    total $15

    Thank you kindly!
    Mimi

    http://wordpress.org/extend/plugins/woocommerce-delivery-notes/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Did you ever find a solution to this? – we are looking for the same function

    esmi

    @esmi

    Forum Moderator

    If you require assistance then, as per the Forum Welcome, please post your own topic instead of tagging onto someone else’s topic.

    I am now closing this 11 month old topic as it references an older version of WordPress.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How can I add the total Qty amount for all products on Invoice?’ is closed to new replies.
Skip to toolbar