• Resolved patjepony

    (@patjepony)


    Hi guys,

    First of all, I’m not a professional back-end coder. Although I have some knowledge about coding.

    What I’m trying to do is add the order fees into a pdf invoice creator. I’ve been struggling for a few days to get this done now. I’m working with yith pdf invoice.

    What I have so far;

    Top of the document: <?php global $ywpi_document, $woocommerce; ?>

    ——–

    <?php $order = new WC_Order( $order_id );
    $order_fees = $order->get_fees(); ?>

    <tr>
    <td class=”column-product”><?php _e( “Paypal fees” ); ?></td>
    <td class=”column-total”><?php var_dump($order_fees); ?></td>
    </tr>

    ——–

    The html is showing up like I expect it to, but the value is not showing up.

    What is the problem here?

    Thank you!

  • The topic ‘Adding order fee to PDF’ is closed to new replies.