Support » Plugin: WooCommerce PDF Invoices, Packing Slips, Delivery Notes and Shipping Labels » Incorrect amount displayed on invoice when coupon applied

  • Resolved Gowtham

    (@thejournallab)


    Hi
    The amount displayed on invoice when coupon applied seems to be incorrect. In the invoice the price, subtotal and the total values are all the same when there is a cart discount. Shouldn’t the value of price and subtotal be 100 and shouldn’t the total be 90 when a 10% discount is applied. All the values are printed as 90 in the invoice.

    Regards,
    Gowtham

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WebToffee

    (@webtoffee)

    Hi @thejournallab,

    Please add below code snippet in your active theme’s functions.php

    add_filter('wf_pklist_alter_subtotal', 'wf_pklist_subtotal', 10, 3);
    function wf_pklist_subtotal($sub_total, $template_type, $order)
    {
    	if($template_type=='invoice')
    	{
    		$sub_total=$order->get_subtotal();
    	}
    	return $sub_total;
    }
    Thread Starter Gowtham

    (@thejournallab)

    Hi @webtoffee
    Thanks for the response. I am using OceansWP theme. I have added the mentioned code in this theme’s functions.php file but the subtotal amount in the pdf invoice has still not changed while printing. Will there be any fix available in next plugin update.

    Plugin Author WebToffee

    (@webtoffee)

    Hi @thejournallab,

    Code is tested ok in our testing environments. We will include the fix in the coming update. If that is ok for you, please wait for the update.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Incorrect amount displayed on invoice when coupon applied’ is closed to new replies.