WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce Print Invoice & Delivery Note
[closed] How can I add the total Qty amount for all products on Invoice? (3 posts)

  1. Mimi8
    Member
    Posted 1 year ago #

    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/

  2. ajamm
    Member
    Posted 1 month ago #

    Did you ever find a solution to this? - we are looking for the same function

  3. esmi
    Forum Moderator
    Posted 1 month ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.