Support » Plugin: WooCommerce Print Invoice & Delivery Note » [Plugin: WooCommerce Print Invoices & Delivery Notes] Order Total Won't Print

Viewing 9 replies - 1 through 9 (of 9 total)
  • I’m having the same issue (I think).

    Here’s a screenshot of it

    Thanks for the help!

    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.

    Plugin Contributor piffpaffpuff

    (@chabis)

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

    Plugin Contributor piffpaffpuff

    (@chabis)

    @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.

    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.

    Plugin Contributor piffpaffpuff

    (@chabis)

    it should be fixed in 1.4

    mcflieshaw

    (@mcflieshaw)

    This is still happening to me in the latest version

    je_123_au

    (@je_123_au)

    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!

    Plugin Contributor piffpaffpuff

    (@chabis)

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: WooCommerce Print Invoices & Delivery Notes] Order Total Won't Print’ is closed to new replies.