• Resolved fadipet

    (@fadipet)


    Hi,
    I’m trying to edit “abstract-wcpdf-order-document-methods.php” file adding echo $shipping[‘tax’]; at line 776 to show shipping tax too. So, the “public function order_shipping” at line 773 is now
    public function order_shipping( $tax = ‘excl’ ) {
    $shipping = $this->get_order_shipping( $tax );
    echo $shipping[‘value’];
    echo $shipping[‘tax’];
    }
    Unfortunately nothing changes creating the Pdf Invoice. Only Shipping value is shown but not Shipping tax.
    My setting on Woocommerce=>Tax is

    Yes, I will enter prices inclusive of tax

    Which is the problem? How can i show that shipping tax value?

Viewing 1 replies (of 1 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    This is a core plugin file that should not be edited. The function you are calling is not used in the totals, the shipping totals are formatted by WooCommerce directly. You can get the total shipping tax with:

    
    <?php echo $this->order->get_shipping_tax(); ?>
    

    in a custom template. But if you really want full control over this, I recommend purchasing the Premium Templates extension. That way you can do everything from the settings without any code customizations!

Viewing 1 replies (of 1 total)
  • The topic ‘Editing abstract-wcpdf-order-document-methods.php but nothing change in Invoice’ is closed to new replies.