WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce Print Invoice & Delivery Note
[resolved] [Plugin: WooCommerce Print Invoices & Delivery Notes] Order Total Won't Print (10 posts)

  1. lturne12
    Member
    Posted 2 years ago #

    Hi, I LOVE this plug-in, but cannot get the Order Total to print on the invoice. Have installed and re-installed. Please help!

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

  2. callmesubtle
    Member
    Posted 2 years ago #

    I'm having the same issue (I think).

    Here's a screenshot of it

    Thanks for the help!

  3. Trevor Gehman
    Member
    Posted 2 years ago #

    Found a fix for this.

    Look in the file woocommerce-delivery-notes-print.php....

    Line 442.

    Change
    return $output;

    to
    return $totals;

    There is something wrong with the foreach loop that the author uses to strip the semi-colon from the labels. This is a temporary workaround until he releases an update.

  4. piffpaffpuff
    Member
    Plugin Author

    Posted 2 years ago #

    thanks. i'm looking into it. i will try to update the plugin tomorrow.

  5. piffpaffpuff
    Member
    Plugin Author

    Posted 2 years ago #

    @trevorgehman could you please explain the issue? which woocommerce and plugin versions do you use? what kind of product do you print? i'm asking because i can't reproduce the issue with wc 1.6.3 and wcdn 1.2.4.

  6. Trevor Gehman
    Member
    Posted 2 years ago #

    This was with WooCommerce 1.5.8 and 1.24 of your plugin. We haven't upgraded because we made a lot of changes and didn't want to have to re-do them.

  7. piffpaffpuff
    Member
    Plugin Author

    Posted 2 years ago #

    it should be fixed in 1.4

  8. mcflieshaw
    Member
    Posted 1 year ago #

    This is still happening to me in the latest version

  9. je_123_au
    Member
    Posted 1 year ago #

    I got the same problem.
    I changed the code and it works
    woocommerce-delivery-notes/woocommerce-delivery-notes.php

    change this function to following:

    if ( !function_exists( 'wcdn_get_order_totals' ) ) {
    function wcdn_get_order_totals() {
    global $wcdn;

    $totals=$wcdn->print->get_order()->get_total();
    return $totals;
    }
    }

    and go to the template file under print folder:
    print-delivery-notes.php order-summary div change to following

    <div id="order-summary">
    <table>
    <tfoot>
    <?php $total=wcdn_get_order_totals(); /*foreach( wcdn_get_order_totals() as $total ) : */?>
    <tr>
    <th class="description">Subtotal:<?php /*echo $total['label'];*/ ?></th>
    <td class="price"><?php echo $total; ?></td>
    </tr>
    <?php /*endforeach; */?>
    </tfoot>
    </table>
    </div><!-- #order-summery -->

    It works! good luck everyone!

  10. piffpaffpuff
    Member
    Plugin Author

    Posted 1 year ago #

    hmm, which woocommerce version do you use? please note that the plugin needs at least version 1.6.3

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.